On Mon, Jul 6, 2020 at 6:36 PM chandra chowdhury <pc.chandr...@gmail.com> wrote:
>
> Hi,
>  I am trying to solve  MILP using Sage. Problem is if there is no solution
> it gives an error. Instead of an error, I  want to change constraints
> (like if initial max=100 which does not give solution, new max=101 which may 
> give solution)
> and run the solver automatically.

it is hard to say without seeing your MILP what would be the best, but
you can always
just change the formulation in a loop, until you hit the solvable case.

>
> p = MixedIntegerLinearProgram(solver='GLPK')
> ....
> p.solve()
>
> sage.numerical.mip.MIPSolverException: GLPK: Problem has no feasible
> solution
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/CAC3pSBKK9fcBy0wfyJfpjo4O7uB1pCvBH8hotq4GNez_VwJR9A%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq2zMXhZHPrSmWTwHvpBRQeaLs0m_NQxEaWO88AvoRBLww%40mail.gmail.com.

Reply via email to