System of linear equations with constraints
11 ビュー (過去 30 日間)
古いコメントを表示
Hi! It's possible to solve system of linear equations with constraints?
Example:
1. equation: x1*0.45 + l = 0;
2. equation: x2*0.25 + l = 0;
1. constraint (equality): x1+x2 = 1;
2. constraint (inequality): x1+x2-0.09 >= 0
Without constraints code can be:
A = [0.45 0 1;
0 0.25 1;
1 1 0];
b = [0;0;1];
linsolve(A,b)
But with constraints?
0 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!