how to stop executing a function if its duration is too long ?

4 vues (au cours des 30 derniers jours)
genevois pierre
genevois pierre le 13 Déc 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

Réponse acceptée

Ameer Hamza
Ameer Hamza le 13 Déc 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.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by