#8364: Forward options like "solver" in all the functions using LP
-------------------------------------------------------------------------+--
Reporter: ncohen |
Owner: jkantor
Type: enhancement |
Status: needs_info
Priority: major |
Milestone: sage-4.4
Component: graph theory |
Keywords:
Author: |
Upstream: N/A
Reviewer: schilly |
Merged:
Work_issues: rebase on top of #7671, #7854, #7966, #8273, #8273, #8331 |
-------------------------------------------------------------------------+--
Changes (by ncohen):
* status: needs_review => needs_info
Comment:
Hello !!!!
Well, it is indeed cleaner, but it would give longer lines... Well, the
only two options I like to tune through this patch are "solver" or "log".
Most of the time, you just want your function to give you more output than
usual, and for the moment you can do it like this :
{{{
graphs.PetersenGraph.matching(log=1)
}}}
If you want to change the solver you use, it gives
{{{
graphs.PetersenGraph.matching(solver="GLPK")
}}}
I agree your version would be cleaner, but it would mean that getting more
output has to be said like this :
{{{
graphs.PetersenGraph.matching(solver_options = {"log" : 1})
}}}
Which begins to be quite long... Well, I'm just giving you my idea of it.
It you still want me to change it to solver_options, I'll do it
immediately, as it is indeed cleaner :-)
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8364#comment:7>
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.