How can I using fmincon on both vector variables and matrix variables

5 views (last 30 days)
I have a optimization problem with two variables: x is a vector and U is a matrix. I want to solving it by fmincon. My question is, how I can write the fmincon. More exactly, how to write the objective function and constraints? Or I have to transform U into a vector variable.
Any suggestion is appreciated. Thanks!

Sign in to comment.

Accepted Answer

Alan Weiss
Alan Weiss on 16 Feb 2022
You might enjoy the problem-based approach, which does not require you to put all variables into one.
Alan Weiss
MATLAB mathematical toolbox documentation

More Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by