Cannot find feasible solution and programm killed after a long time

Answered

Comments

4 comments

  • Eli Towle

    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
    Comment actions Permalink
  • susanta samanta

    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
    Comment actions Permalink
  • Matthias Miltenberger

    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
    Comment actions Permalink
  • susanta samanta

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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk