How to solve optimization problems with constraints of differential equations constraints ?

7 次查看(过去 30 天)
I want to use the fmincon function but I don't know how to write constraints with differential equations.

回答(1 个)

Sam Chak
Sam Chak 2024-8-30
Hi @xin
This optimization problem in this example has the following:
  • a linear equality constraint,
  • three linear inequality constraints,
  • a nonlinear equality constraint, and
  • two nonlinear inequality constraints.
Follow the example to correctly describe the constraints in your code. Start with a simple univariate problem before progressing to a multivariate problem.

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by