optimatika / ojAlgo

oj! Algorithms
http://ojalgo.org
MIT License
459 stars 207 forks source link

Get UNEXPLORED status after sometime, #525

Closed omidziaee closed 1 year ago

omidziaee commented 1 year ago

I am running almost the same problem each 5 minutes, just some inputs to the problem changes. At first it runs smoothly and after a while it times out (I set the abort time to 100 seconds) and get the UNEXPLORED status. Is there a flag or something that I need to set at the end of each round to fully restart the solver? Any help would be appriciated. Omid

apete commented 1 year ago

You have to give more details on how you do things. Are you using ExpressionsBasedModel? Which solver is used?

omidziaee commented 1 year ago

Yes I am using ExpressionsBasedModel and the default solver.

omidziaee commented 1 year ago

How do you set the solver? I assume ExpressionBasedModel selects the solver based on the problem. Am I wrong?

apete commented 1 year ago

Yes, ExpressionBasedModel selects an appropriate solver based on the problem type. There's a method addIntegration(Integration<?>) that allows you to add 3:d party solvers.