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

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

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 12 月 13 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2020 年 12 月 13 日

回答済み:

2020 年 12 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by