Dear Everyone, Could I ask how to set the intlinprog option in order to have BOTH MaxTime and LPMaxIter set to Inf (or as large as it can). Seems the two variables are interrelated (change one would effect the other). Thanks, Francis

 Réponse acceptée

Sean de Wolski
Sean de Wolski le 4 Nov 2014

0 votes

You cannot set them to inf but you can set them to a large number.
>> opts = optimoptions('intlinprog','MaxTime',inf,'LPMaxIter',inf)
opts =
intlinprog options:
Set by user:
LPMaxIter: Inf
MaxTime: Inf
Default:
...
Now whether that's a good idea or not...

Plus de réponses (1)

Ming-Fung Francis
Ming-Fung Francis le 5 Nov 2014

0 votes

Thanks Sean,
I tested it today. Discovered that the optimization will not start if the MaxTime is set to Inf. An appropriate choice would be 100,000 to 1,000,000.
Francis

Catégories

En savoir plus sur External Language Interfaces dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by