Hello to the COMSOL experts,

is it possible in COMSOL Multiphysics to update the model parameters after an optimization based on the results of these optimization? (Ideally without using Livelink for Matlab due to license limitations.)

An example to illustrate: Say I have some model whose geometry depends on the global parameters a, b, c.

Case 1:

I run a standard Parametric Sweep over a, and for each a I run a nested Optimization to find an optimum b = b_opt to minimize some objective function X. Then for each a I have a b_opt. This works nicely!

Case 2:

Now I want to include another optimization for some objective function Y, using the parameter c. I don't want to optimize for X and Y at the same time with parameters b and c, because they are nearly independent. I rather want to optimize X with b, acquiring b_opt, and then Y with c while using the previously determined b_opt as value for b. This is computationally much quicker.

It is of course possible manually, i.e. running the first optimization, looking at the result and assigning b_opt to parameter b, but since I have the outer parametric sweep over a I would like to let COMSOL take care of this automatically.

tl;dr

What I want COMSOL to do:

for each value of parameter a (Sweep):

- Optimize objective X with parameter b, this delivers b_opt

- Assign b = b_opt (and keep constant) during following optimization

- Optimize objective Y with parameter c, this delivers c_opt

then for each a I would have one b_opt and one c_opt

Does somebody know how to accomplish this? Many thanks in advance!

Hermann

More Hermann Pommerenke's questions See All
Similar questions and discussions