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!