how to escape while searching optimal solution for "intlinprog" after 10 seconds?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ha Lim LEE
am 14 Feb. 2018
Kommentiert: Ha Lim LEE
am 21 Feb. 2018
If an optimal solution exists, it takes less than 2 seconds for solving my "intlinprog". But, when it doesn't, searching for the optimal solution won't end forever. I want to stop searching after 10 seconds of searching whatever the result is. Please help me.
0 Kommentare
Akzeptierte Antwort
Achyutha Hosahalli
am 20 Feb. 2018
You can use "MaxTime" option.
For example :
options = optimoptions('intlinprog','MaxTime',10);% where MaxTime is a Positive real value that is the maximum time in seconds that intlinprog runs.Default value is 7200
And then run intlinprog with options
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Robotics finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!