Opened 6 years ago
Last modified 2 years ago
#15356 new enhancement
linear programming enhancements
Reported by: | jason | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-6.4 |
Component: | linear programming | Keywords: | |
Cc: | ncohen, mforets | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
I've been using the linear programming for class, and love it! Thanks! I noticed a few areas that would make it more user-friendly:
- it would be great if
p.get_variables()
returned the values of all of the variables by default, instead of insisting that you ask for a specific variable - Maybe a
p.show_solution()
method could be added that would print out the optimal objective function value and the values of all variables, if the problem was solved. - it would be cool if we wrapped the sensitivity analysis of various solvers. Like http://en.wikibooks.org/wiki/GLPK/Solution_information#Sensitivity_analysis_report for GLPK.
- the
maximization=False
parameter is a little awkward. Perhaps that parameter could be renamed totype="maximize"
ortype="minimize"
. Or perhaps we could also have aminimize=None
parameter, and if maximize and minimize are both None, the default is maximize (for compatibility), but if either is set, that is the problem, and if both are set to True, then we throw an error.
Change History (5)
comment:1 Changed 6 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:2 Changed 5 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:3 Changed 5 years ago by
comment:4 Changed 5 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:5 Changed 2 years ago by
- Cc mforets added
Note: See
TracTickets for help on using
tickets.
Note also that #14288 is positively reviewed!