Optimal control of coupled ODE model with economic cost function #296
Unanswered
pavaninguva
asked this question in
Q&A
Replies: 1 comment
-
Hi @pavaninguva and welcome to the forum! Thanks for trying out InfiniteOpt!
Now at this point you are probably wondering why Ipopt is giving you an infeasible result. I have a few ideas here:
I hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Amazing work with the code! It seems really capable but I seem to have some issues getting started and would be grateful for any help.
I have been trying optimize the inputs of the following bioreactor model,
The model has 3 states$T,I_{s},V_{s}$ , 5 parameters $\mu, k_{1}-k_{4}$ and 2 decision variables / manipulated variables / inputs $D, T_{in}$ . I would like to optimize the following economic cost function (corresponding to maximum bioreactor output.
I am basing my code off the examples in the documentation (Consumption Savings Problem and Pandemic Control)
When I print the model i.e.
print(m)
, I get a formulation that looks quite sensible:However, when I run the optimizer, it seems to give some interesting behaviour. It would set$D$ to its maximum value and keep $T_{in}$ at zero which is very far from the optimal.
I get the following output
and the following plot for$D$ and $T_{in}$
Running the same optimization in other optimal control packages in Python e.g. Gekko gives me something much more sensible
So I have the following questions:
Thank you for the help!
Beta Was this translation helpful? Give feedback.
All reactions