Skip to content
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 backends: Make variable type consistent between add_variable, set_variable_type (with deprecation) #20362

Open
mkoeppe opened this issue Apr 5, 2016 · 0 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 5, 2016

Status quo:

Proposal (from #20354 discussion):

  • add_variable there should take a variable_type parameter, defaulting to 'continuous', with other possible values 'binary', 'integer'.
  • possibly deprecate the 3 switches
  • set_variable_type should take the same variable_type values 'continuous', 'binary', 'integer'.
  • definitely deprecate values 1, 0, -1.

There are similar idiosyncrasies elsewhere in the backend interface (should be made separate tickets)

  • Minimization is expressed as maximization=False in the constructor; as set_sense(-1); is queried by is_maximization
  • ...

CC: @dimpase @videlec @jdemeyer

Component: numerical

Issue created by migration from https://trac.sagemath.org/ticket/20362

@mkoeppe mkoeppe added this to the sage-7.2 milestone Apr 5, 2016
@mkoeppe mkoeppe removed this from the sage-7.2 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant