#20351: sage.libs.ppl.MIP_Problem: Add support for integer variables
-------------------------------------+-------------------------------------
Reporter: mkoeppe | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-7.2
Component: numerical | Resolution:
Keywords: lp | Merged in:
Authors: Matthias Koeppe | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/mkoeppe/sage_libs_ppl_mip_problem_and_pplbackend__add_support_for_integer_variables|
9f35b65ae443d565bcf53319fc57751baf640fc8
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by mkoeppe):
The code in `add_to_integer_space_dimensions` matches the last example in
the documentation that you cited. I'm assuming it's correct. Besides, it
was copy-paste from elsewhere in ppl.pyx.
{{{
Alternatively, you can use try/finally which will also catch exceptions
raised by subroutines inside the try:
def try_finally_example():
sig_on()
try:
# (some long computation, potentially raising exceptions)
finally:
sig_off()
return something
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/20351#comment:14>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.