-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
implement constructing the dual of a linear program #13141
Comments
comment:1
I've actually have a module that does construct duals, but it is a "from scratch" implementation of linear programs and simplex method steps for educational reasons. It is not yet ready for inclusion in Sage, but I am likely to teach linear optimization this fall and plan to post it for review by the end of the term or earlier. |
comment:2
Replying to @novoselt:
I hope it will be a solver backend rather than feature a yet another way to enter linear equations and inequalities into Sage. IMHO we need to initiate a major cleanup of these, as PPL backend, MILP backends, CVXOPT, and perhaps other places I am not aware of or don't recall each have its own way of accomplishing this task. And this certainly sucks from the userland point of view. |
comment:3
It cannot be a solver back-end: the point is not to have another algorithm of solving LPs, but to allow students using simplex method step-by-step without worrying about arithmetic. I also made the output match the lecture notes which we were using, and input is done by matrices/vectors. The standard way of constructing linear programs in Sage is, IMHO, extremely confusing for beginners. One of the first versions of the module was published here: |
comment:8
I think this is a dup of #7290. And I think explicitly constructing dual LPs from a given LP is something that one wouldn't do with a solver. Rather set solver parameters that explicit request the primal or dual simplex method, when available. That's why I'm marking this as "duplicate" |
comment:9
when I opened this I needed to construct Farkas certs of infeasibility, and that was (still is?) something that Sage could not do. (I have had a collection of small LP's that only PPL could solve properly, without scaling problems). |
comment:10
Please add your name to the author field (otherwise the patchbot will not check this ticket) |
comment:11
Replying to @videlec:
I better not, otherwise the patchbot might get confused by the absence of a branch on the ticket :-) |
Author: Dima Pasechnik |
Reviewer: Matthias Koeppe |
There is currently no support for constructing the classic LP dual of a linear program (LP).
It would be very useful for various reasons, last but not the least constructing certificates of
optimality and of infeasibility of an LP.
CC: @nathanncohen @ppurka
Component: linear programming
Author: Dima Pasechnik
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/13141
The text was updated successfully, but these errors were encountered: