set the a list steady function or expression in the ReducedFunctional parameters

Asked by Yi

dear developer,

I want to set a list of steady function or expression in the ReducedFunctional as parameters, i.e.:

reduced_functional = ReducedFunctional(J, [m1, m2, ...])

Is this possible m1, m2,..... as the different steady functions or expressions to be set? Because I have a function with the complex values' control and at the moment dolfin doesn't support the complex numbers, so I split the control as real part and imaginary part as TimeConstantParameter(m1) and TimeConstantParameter(m2).

Thanks at first!

Question information

Language:
English Edit question
Status:
Answered
For:
dolfin-adjoint Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Simon Funke (simon-funke) said :
#1

Hi Yi,

I *should* work in the way you described it, i.e.

reduced_functional = ReducedFunctional(J, [m1, m2, ...])

If not, could you send me a minimal example of your code please?

Simon

Can you help with this problem?

Provide an answer of your own, or ask Yi for more information if necessary.

To post a message you must log in.