Open hzgzh opened 3 years ago
What would this system do? Have the nonlinear systems be the constraints?
the system calculate the flow throught the turbine according the input and output pressure. yes, the nonlinear system be the optimization system constraint, can implement in ModelingToolkit?
Not right now.
I have a quation about transform NonlinearSystem and OptimizationSystem. I construct a system based on NonlinearSystem,a source and two turbine and a sink, change source.p and sink.p,we can get the flow through the system. if I want fix the flow to some const value, modify the source.p or sink.p, then need construct the optimization problem. so I want to know can I transform the nonlinearsystem to optimizationsystem, the I provide the loss function like
loss = abs(turbine1.a.m - 700.)
, and solve the optimization problem in ModelingToolkit.Did OptimizationSystem have signature like OptimizatonSystem(sys,loss,u,p)?