Dear all,
I'm working with the optimization interface through LiveLink for Matlab. I would like to know how to specify the value type of the control variable.
The dependent variables in my problem are complex; and in the L2 norm of the misfit function I use the abs value of them. The control variable is real.
In the Optimization Module User's Guide/ Theory for the sensitivity interface/Issues to consider Regarding the Objective Function there is some comment on complex-valued objective functions: 'Sensitivity analysis can be applied only when the objective function is a real-valued differentiable function of the control variables.' ; I suppose this also applies when using the optimization interface; and they recommend to treat the real and imaginary part separately if this is not the case (the objective function is not real-valued differentiable).
Following these issues, I split the real and imaginary parts:
model.sol('sol1').feature('st1').set('splitcomplex', 'on');
and I also specify the complex character of the dependent variables,
model.physics('pde1_1').prop('ShapeProperty').set('valueType', 1, 'complex');
But then a complex character is also applied to the control variable.
If I use the same command to specify the real character of the control variable: model.physics('opt1').feature('cvar1').set('valueType', 1, 'real'); the Livelink for Matlab does not recognize it. Is there some command to specify the value type of the control variable?
Thank you.
I'm working with the optimization interface through LiveLink for Matlab. I would like to know how to specify the value type of the control variable.
The dependent variables in my problem are complex; and in the L2 norm of the misfit function I use the abs value of them. The control variable is real.
In the Optimization Module User's Guide/ Theory for the sensitivity interface/Issues to consider Regarding the Objective Function there is some comment on complex-valued objective functions: 'Sensitivity analysis can be applied only when the objective function is a real-valued differentiable function of the control variables.' ; I suppose this also applies when using the optimization interface; and they recommend to treat the real and imaginary part separately if this is not the case (the objective function is not real-valued differentiable).
Following these issues, I split the real and imaginary parts:
model.sol('sol1').feature('st1').set('splitcomplex', 'on');
and I also specify the complex character of the dependent variables,
model.physics('pde1_1').prop('ShapeProperty').set('valueType', 1, 'complex');
But then a complex character is also applied to the control variable.
If I use the same command to specify the real character of the control variable: model.physics('opt1').feature('cvar1').set('valueType', 1, 'real'); the Livelink for Matlab does not recognize it. Is there some command to specify the value type of the control variable?
Thank you.