Hey Everyone I'm trying to do A simple optimization in Comsol 5.0
However it keeps giving me an error.
In the attached image you can se how I set it up.
A quick summary:
under definitions I have variables, domain 1, 2, 3 and 4.
In variables I have a variable called ratio1 which is basically domain 1 divided by domain 2.
Now in the optimization I try to maximize this variable ratio1
as parameters I have set 3 parameters which have a upper and lower constrain.
When I run this I get an errror saying:
Error in sweep. Failed to evaluate expression
Or it doesn't change the values I've set under Global->definitions->parameters
However it keeps giving me an error.
In the attached image you can se how I set it up.
A quick summary:
under definitions I have variables, domain 1, 2, 3 and 4.
In variables I have a variable called ratio1 which is basically domain 1 divided by domain 2.
Now in the optimization I try to maximize this variable ratio1
as parameters I have set 3 parameters which have a upper and lower constrain.
When I run this I get an errror saying:
Error in sweep. Failed to evaluate expression
Or it doesn't change the values I've set under Global->definitions->parameters