Opened 7 years ago
Closed 6 years ago
#14395 closed defect (fixed)
Bug in MixedIntegerLinearProgram.polyhedron
Reported by: | ncohen | Owned by: | ncohen |
---|---|---|---|
Priority: | major | Milestone: | sage-5.10 |
Component: | linear programming | Keywords: | |
Cc: | dimpase | Merged in: | sage-5.10.beta1 |
Authors: | Nathann Cohen | Reviewers: | Dmitrii Pasechnik |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Small problem in polyhedron when variables are unbounded in both direction (and not necessarily positive)
sage: p = MixedIntegerLinearProgram() sage: x,y = p['x'], p['y'] sage: p.set_min(x,None) sage: p.set_min(y,None) sage: p.add_constraint( x <= 1 ) sage: p.add_constraint( x >= -1 ) sage: p.add_constraint( y <= 1 ) sage: p.add_constraint( y >= -1 ) sage: p.polyhedron() TypeError: bad operand type for unary -: 'NoneType'
Nathann
Attachments (1)
Change History (5)
Changed 7 years ago by
comment:1 Changed 7 years ago by
- Status changed from new to needs_review
comment:2 Changed 6 years ago by
- Status changed from needs_review to positive_review
- Type changed from enhancement to defect
comment:3 Changed 6 years ago by
- Reviewers set to Dmitrii Pasechnik
comment:4 Changed 6 years ago by
- Merged in set to sage-5.10.beta1
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.