Ticket #7311 (closed defect: fixed)
Improve the add_constraint method from MixedIntegerLinearProgram
| Reported by: | ncohen | Owned by: | jkantor |
|---|---|---|---|
| Priority: | critical | Milestone: | sage-4.4 |
| Component: | numerical | Keywords: | |
| Cc: | abmasse | Author(s): | Nathann Cohen |
| Report Upstream: | N/A | Reviewer(s): | Alexandre Blondin Massé |
| Merged in: | sage-4.4.alpha0 | Work issues: |
Description (last modified by ncohen) (diff)
The min and max arguments should accept variables too, and not just real values or None. This is now possible, along with more complex expressions inside of add_constraint and without even using min/max ( which are still the most efficient way to define constraints )
Also fixes an important bug (copy was used instead of deepcopy, which produced wrong results)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

