Is it possible to find out an unknown variable within constraint which is not present in the objective for a optimization problem?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello all,
Suppose I have a objective function with unknown variable x(1). But my constraint is depend on unknown variable x(1) and x(2). Is it logically possible to find out a optimized value for x(2) using 'fmincon' command?
0 件のコメント
採用された回答
Matt J
2020 年 11 月 27 日
編集済み: Matt J
2020 年 11 月 27 日
Yes. It is not a problem if your objective only depends on a subset of variables. However, you must pass the full unknown vector x=[x1,x2] to your objective function and constraint code. You also must write your A,Aeq matrices to have two columns.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Optimization Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!