#11607: read constraints from linear program
----------------------------------+-----------------------------------------
Reporter: john_perry | Owner: ncohen
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-4.7.2
Component: linear programming | Keywords: sd32
Work_issues: | Upstream: N/A
Reviewer: | Author: john_perry
Merged: | Dependencies:
----------------------------------+-----------------------------------------
Comment(by john_perry):
Replying to [comment:3 ncohen]:
> I mean, when would the user want to obtain the constraint corresponding
to a constraint he does not know already, for instance obtained through
your get_constraints method ?
In my case, I have a program that generates constraints based on a
polynomial system. I don't personally know what the constraints are, and
in fact I want to read the generated constraints. For example, I might
want to check in some easy circumstances that the program is generating
the correct constraints.
> I think those method, if you think they may beuseful by themselves,
would make more sense in the generic_backend module.
Would that be immediately accessible to someone who has a
`MixedIntegerLinearProgram` object?
> Instead of returning vectors of indces and coefficient, which is the
canonical form used by the solver's C API, what about returning a
dictionary associating to each symbolic its coefficient ?
I didn't necessarily want the overhead of a dictionary. I could see adding
that functionality, but if I were running a program where efficiency might
be of some concern, generating a dictionary every time I do this seems a
bit much.
Does that seem reasonable to you, or do you think I should generate the
dictionary anyway? Efficiency here isn't an actual concern of mine at the
moment, and might never be.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11607#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.