Skip to main content

Cannot find feasible solution and programm killed after a long time

Answered

Comments

4 comments

  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Susanta,

    If you set SolutionLimit to 1, Gurobi will terminate after the first feasible solution is found. If you want to run as long as possible to get the best solution so far, you should use the SolFiles parameter. This way, Gurobi will save every solution to disk and the last one will then be the best so far.

    To reduce memory usage (which is likely the reason for the crash), you might want to reduce the Threads parameter.

    Cheers,
    Matthias

    1
  • Eli Towle
    Gurobi Staff Gurobi Staff

    Hi Susanta,

    Are you just looking for a feasible solution? Gurobi finds a heuristic solution to this problem very early:

    Found heuristic solution: objective 61.0000000

    You could try setting the SolutionLimit parameter to 1. When you do this, Gurobi will terminate as soon as it finds the first solution to the problem.

    Have you monitored your machine's memory usage while Gurobi is running? It could be that Gurobi runs out of memory while solving.

    Thanks,

    Eli

    0
  • susanta samanta
    Gurobi-versary
    First Comment
    First Question

    Thanks Eli for your reply.

    Yes Gurobi runs out of memory while solving the problem. So if I set SolutionLimit parameter to 1, then it will not return the best optimized solution. Am I right?

    0
  • susanta samanta
    Gurobi-versary
    First Comment
    First Question

    Thanks Matthias for your details explanation. The SolFiles parameter will be very helpfull for me. Thanks

    0

Please sign in to leave a comment.