I'm trying to solve a optimization problem with a couple of non-linear constraints. When solving the problem I get the following error:
Error using writeCompiledFun2VirtualFile
Too many output arguments.
I tried different constraints and functions and I noticed that the error appears whenever I use multiplication and/or division with two optimvars. This might be due ot optimvar only supporting ./ and .* . However, replacing / and * with ./ and .* did not solve the problem.
You can find my code attached.
Thanks in advance