Closed lucacarlone closed 1 year ago
As far as I see, there seem to be two issues:
Thank you for pointing out this issue, as well proposing a potential fix! That's always very helpful.
However, I seem unable to reproduce your error. In fact, the call
ach = double(subs(p,num2cell(vars).',num2cell(xopt).'));
does not appear in line 217 of my version of findbound. We have made some changes to findbound, but not since releasing v4.03 (see the lists of known bugs). Do you have the latest version of the codes installed?
thanks for the prompt reply @djagt ! I think the code I'm referring to is in the master branch, while you are probably referring to the SOSTOOLS400 branch. Switching to the latter seems to solve the issue on my side as well. If that makes sense to you, we can mark the issue as solved.
Indeed, the SOSTOOLS400 branch contains the most recent codes. I realize its a bit confusing, as one would assume the master branch to be the main one. Maybe I should rename these branches....
Either way, I will close this issue. Let me know if you encounter any other problems.
The following line (line 213 in findbound.m) throws an error in MATLAB R2020a on Mac:
Minimal example:
Error:
If I comment out lines 213 to 218 in findbound.m, the optimization runs and returns results without errors.