System of linear equations with constraints

12 views (last 30 days)
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?

Answers (1)

Matt J
Matt J on 9 Dec 2012

Categories

Find more on Systems of Nonlinear Equations 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!