I am running a lp optimization using lpSolve package. The $solution value show me only one result, but I know there are more than one optimal solution. How can I collect the others solutions?
Asked
Active
Viewed 167 times
1
-
might be relevant: https://stackoverflow.com/questions/28666795/r-lpsolve-binary-find-all-possible-solutions – chinsoon12 Feb 12 '20 at 01:08
-
Thank you for the answer. But, unfortunately, the results aren't binary. They are integer. – humbertosrlima Feb 14 '20 at 19:09
-
Use all.bin=TRUE – chinsoon12 Feb 14 '20 at 20:33
-
You can add a cut to forbid the current integer solution and resolve. However, the general integer cut is not that simple. Many modern solvers have something called a **solution pool**. They can give a set of alternative optimal integer solutions. LpSolve does not have this facility. – Erwin Kalvelagen Feb 15 '20 at 20:52