how to stop executing a function if its duration is too long ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
genevois pierre
am 13 Dez. 2020
Beantwortet: Ameer Hamza
am 13 Dez. 2020
Hi, the solve function (applied to a hard problem) still executes after a 30 minutes run ... Can it be stopped by the calling program after a fixed duration ? Thank you
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 13 Dez. 2020
solve() cannot return a partial solution. It either does return a solution or throws an error or warning if it cannot find one. You can only stop it by pressing the ctrl+C keys.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!