alteryx / alteryx/AlteryxPrescriptive

Input error handling

未关闭
#17 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
idea
主要语言
R
星标
3
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

## Matrix Mode:
### Input O:
- [ ] Missing required columns (variable, coefficient)
- [ ] Make certain columns optional (lb, ub, type) — set default values:
1. lb = 0
2. ub = Inf
3. type = C
- [ ] Handle wrong letter case
- [ ] Handle missing column names (but the number of columns and their order is correct)
- [ ] Column type:
1. **coefficient, lb, ub:** numbers (strings that can be cast to numbers)
2. **type:** must be “C”, “B” or “I”
### Input A:

**Slam matrix:**
- [ ] Missing required columns (i, j, v)
- [ ] Handle wrong letter case
- [ ] Handle missing column names (but the number of columns and their order is correct)
- [ ] Column type: all must be numbers (strings that can be cast to numbers)

**Dense matrix:**
- [ ] Check if number of columns = number of rows in **Input O**
- [ ] Column type: all must be numbers (strings that can be cast to numbers)
### Input B

This is an **optional** input, there is an option to combine integrate Input B to Input A:
- [ ] Missing required columns (i, j, v)
- [ ] Handle wrong letter case
- [ ] Handle missing column names (but the number of columns and their order is correct)
- [ ] Column type:
1. **dir**: only allows “<=”, “>=”, “=” —we also need to handle change “==” to “=”, in case some users accidentally use “==”
2. **rhs:** only allows numbers (string that can be cast to numbers)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。