System of linear equations with constraints

11 Ansichten (letzte 30 Tage)
Arthur Stepchenko
Arthur Stepchenko am 9 Dez. 2012
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?

Antworten (1)

Matt J
Matt J am 9 Dez. 2012

Kategorien

Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by