use of optimization constraint mask in matlab fmincon or similar

1 view (last 30 days)
Hello, I know that fmincon uses expressions for describing constraints .
but i want my optimization function to use a value mask instead of expresson
how do i define fmincon so it will be as close as possible to some vector value.
IE my cost function will be as close as possible to some value mask
  1 Comment
Matt J
Matt J on 4 Feb 2022
If you already know what the value that your cost function is supposed to have, what is there to minimize?

Sign in to comment.

Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!