matRad icon indicating copy to clipboard operation
matRad copied to clipboard

error when running DAO - Direct Aperture Optimization

Open gleesoi opened this issue 2 years ago • 3 comments

I have ran a few cases with success but on this particular case it errors with the below warning. When I run the line:

resultGUI = matRad_directApertureOptimization(dij,cst,resultGUI.apertureInfo,resultGUI,pln);

It throws error: image

any help much appreciated thanks!

gleesoi avatar Mar 06 '24 11:03 gleesoi

Difficult to tell remotely what is going wrong, the error message is not that instructive. And it is very weird that it fails after 229 iterations.

It seems to fail in the constraint function calculation in matRad_OptimizationProblemDAO: https://github.com/e0404/matRad/blob/c3de378b7813611e619f7383f4498aedb618b0ce/optimization/%40matRad_OptimizationProblemDAO/matRad_constraintFunctions.m

But why, I don't know at the moment and I also can not investigate it from here. You can try to debug it with a breakpoint, but it is cumbersome to get to iteration 229 then.. There is a functionality to stop on error by typing dbstop if error in the command line before execution of your script, but I am not sure it will work in this case when running IPOPT.

wahln avatar Mar 06 '24 15:03 wahln

ok thanks. i dont think the problem is frequent enough for me to spend time looking into atm. it happened for me on 2 cases from a total of 224.

gleesoi avatar Mar 18 '24 13:03 gleesoi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 22 '24 08:04 stale[bot]

This issue was automatically closed because it has not seen any activity in four weeks. This happens usually when the issue has already been solved or it is no longer relevant. If this is not the case, feel free to reopen the issue.

github-actions[bot] avatar Jul 06 '24 01:07 github-actions[bot]