#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 |
-------------------------------------------------------------------------+--
Comment(by schilly):
Replying to [comment:6 jason]:
> How about we specify the solver options as a solver_options dictionary,
instead of just blindly passing on whatever is passed into the function on
to the solver?
Nice idea, but regarding the scip solver this doesn't work. It has another
way of specifying it's parameters:
{{{
s = scip.solver()
s.categoryX['keyY'].paramZ = value
}}}
see here [http://code.google.com/p/python-
zibopt/source/browse/trunk/src/zibopt/scip.py#251]
So, if you want to specify solver parameters, you would need a mechanism
where the users instantiates the solver class in an object, configures it,
and then passes it on inside the solve method! i.e.
{{{solve(instance=s)}}} and the code in this patch then uses that {{{s}}}
instead of instantiating its own solver.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8364#comment:8>
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.