#12823: Allow constants for objective function & deletion of rows in
MixedIntegerLinearProgram
------------------------------------------+---------------------------------
Reporter: john_perry | Owner: ncohen
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: linear programming | Resolution:
Keywords: solver objective | Work issues: failing doctests
Report Upstream: N/A | Reviewers:
Authors: john_perry, ncohen | Merged in:
Dependencies: #12220, #12736, #12833 | Stopgaps:
------------------------------------------+---------------------------------
Comment (by dcoudert):
That's much better ! now tests are ok for glpk_backend.pyx and
cplex_backend.pyx.
I can't test coin or gurobi.
However, the following test fails:
{{{
compote:/path-to-sage/devel/sage-myclone> ../../sage -t -optional
sage/numerical/mip.pyx
sage -t -optional "devel/sage-myclone/sage/numerical/mip.pyx"
IBM ILOG License Manager: "IBM ILOG Optimization Suite for Academic
Initiative" is accessing CPLEX 12 with option(s): "e m b q ".
**********************************************************************
File "/path-to-sage/devel/sage-myclone/sage/numerical/mip.pyx", line 1578:
sage: p.solver_parameter("CPX_PARAM_TILIM", 60) # optional - CPLEX
Exception raised:
Traceback (most recent call last):
File "/path-to-sage/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/path-to-sage/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/path-to-sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_29[4]>", line 1, in <module>
p.solver_parameter("CPX_PARAM_TILIM", Integer(60)) # optional -
CPLEX###line 1578:
sage: p.solver_parameter("CPX_PARAM_TILIM", 60) # optional - CPLEX
File "mip.pyx", line 1599, in
sage.numerical.mip.MixedIntegerLinearProgram.solver_parameter
(sage/numerical/mip.c:8173)
File "glpk_backend.pyx", line 1525, in
sage.numerical.backends.glpk_backend.GLPKBackend.solver_parameter
(sage/numerical/backends/glpk_backend.cpp:9375)
KeyError: 'CPX_PARAM_TILIM'
**********************************************************************
1 items had failures:
1 of 9 in __main__.example_29
***Test Failed*** 1 failures.
For whitespace errors, see the file /home/dcoudert/.sage//tmp/mip_25176.py
[1.5 s]
----------------------------------------------------------------------
The following tests failed:
sage -t -optional "devel/sage-myclone/sage/numerical/mip.pyx"
Total time for all tests: 1.5 seconds
}}}
Sorry about that.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12823#comment:45>
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.