Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #15521: Deprecations: default LP variables will become real inst…
…ead of nonnegative Following the discussion on Sage-devel [1], default LP variables will become "real" instead of nonnegative as it is the case at the moment. The aim is to have 4 types available through `new_variable()` : binary, integer, nonnegative, and real. Right now, nonnegative does not exist, and "real" represents nonnegative variables. What this ticket does: - A warning has to be displayed when `new_variable()` is called without arguments, as the default behaviour will change. Users are advised to add `nonnegative=True` instead. - A warning has to be displayed when `new_variable(real=True)` is called, for it represents nonnegative variables at the moment and will represent real variables later. Users are advised to switch to `nonnegative=True` instead. Nathann [1] https://groups.google.com/d/msg/sage-devel/3vrPzUqFpM4/hKFp0RjV8poJ URL: http://trac.sagemath.org/15521 Reported by: ncohen Ticket author(s): Nathann Cohen Reviewer(s): Benjamin Jones
- Loading branch information
Showing
11 changed files
with
121 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.