Changes between Version 1 and Version 2 of Ticket #20302
- Timestamp:
- 03/27/16 19:22:08 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20302 – Description
v1 v2 3 3 - `add_col` and `add_variable` both add a variable to the problem; but `add_col` only allows to add a column with no name; whereas `add_variable` only allows to add a column with no coefficients. There should be one function (`add_variable`, probably - see #20296 for a possible interface) that can do both; should then deprecate `add_col`. (Also compare with `add_linear_constraint`, which takes a zipped index/coefficient list, whereas `add_col` takes two parallel lists.) 4 4 5 - `variable_upper_bound`: This interface is bizarre. Can't remove an upper bound from a variable because `None` means both 'no upper bound' and 'get the upper bound'. Likewise `variable_lower_bound`. (Moreover, there's redundancy with `col_bounds`.)6 7 5 - `add_variables` and `add_linear_constraints` should have a default implementation in `GenericBackend`, like `add_linear_constraint_vector`. 8 6