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!