Quantcast
Channel: Solving, solving\ - Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 3988

Simple optimization in comsol 5.0

$
0
0
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

Viewing all articles
Browse latest Browse all 3988

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>