BYU-PRISM / GEKKO

GEKKO Python for Machine Learning and Dynamic Optimization
https://machinelearning.byu.edu
Other
594 stars 104 forks source link

Could a state variabile be estimate? #99

Closed Antonio-Nappi closed 3 years ago

APMonitor commented 3 years ago

The initial condition of a state variable can be calculated with m.free_initial(x). You create an objective to align model (x) with measurement in IMODE=5 only with Controlled Variable CV type. Otherwise, you can define your own objective function such as m.Minimize((x-xm)**2) where xm is the measurement. If you have a specific code question, I recommend that you post it to StackOverflow with tag gekko.

Antonio-Nappi commented 3 years ago

Thank you for your answer