how to stop executing a function if its duration is too long ?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Ameer Hamza
2020-12-13
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!