-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIP: Several fixes regarding constant terms in the objective function #20337
Milestone
Comments
Commit: |
This comment has been minimized.
This comment has been minimized.
mkoeppe
changed the title
MIP backends: obj_constant_term should be exposed by a backend method
MIP: Several fixes regarding constant terms in the objective function
Apr 2, 2016
comment:3
do all backends support this? how do we know? |
comment:4
Objective constant terms are already part of the backend interface. #20323 addresses the issue of making the testing of backends more rigorous. |
comment:5
ok. |
Reviewer: Dima Pasechnik |
comment:6
Author name |
Author: Matthias Koeppe |
Changed branch from u/mkoeppe/mip_backends__obj_constant_term_should_be_exposed_by_a_backend_method to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Contrary to documentation, one cannot set a constantly zero objective function by passing 0 to
set_objective
.This ticket fixes that and actually allows any field number (which ends up in the
obj_constant_term
).Moreover, the backend slot
obj_constant_term
is accessed directly byMixedIntegerLinearProgram.show
; it should instead be exposed by a backend method, which this ticket adds as well.Finally, the
show
method added an extraneous blank line when a nonzeroobj_constant_term
was present. Fixed and doctest added.CC: @dimpase @videlec @jdemeyer
Component: numerical
Author: Matthias Koeppe
Branch/Commit:
ad40508
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/20337
The text was updated successfully, but these errors were encountered: