Changes between Initial Version and Version 1 of Ticket #11607


Ignore:
Timestamp:
08/23/11 03:43:16 (10 years ago)
Author:
john_perry
Comment:

I've attached a patch that gives something resembling the desired functionality, as well as a couple of related, useful methods. I also changed the description, to mirror the desired result. (I do not really want to create a new symbolic expression describing a constraint at the Cython level.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11607

    • Property Status changed from new to needs_review
    • Property Authors changed from to john_perry
  • Ticket #11607 – Description

    initial v1  
    55sage: lp.add_constraint(2*lp[1]-lp[0]-lp[2],max=1)
    66sage: lp.get_constraints()
    7 [(1,x_0-x_1),(2*x_1-x_0-x_2,1)]
     7[(1.0, ([1, 0],[-1.0, 1.0]), None),(None, ([2, 1, 0], [-1.0, 2.0, -1.0]), 1.0)]
    88}}}