Detects inequality constraints which form equalities
[An, bn, Ae, be, ind_e] = mpt_ineq2eq(A, b, tol)
A |
Matrix of inequality constraints in ![]() Class: double |
b |
Right hand side of inequalities in ![]() Class: double |
tol |
Working precision of the algorithm. Class: double Default: MPTOPTIONS.abs_tol |
An |
Matrix of new inequality constraints ![]() Class: double |
bn |
Right hand side of new inequality constraints in ![]() Class: double |
Ae |
Matrix of equality constraints ![]() Class: double |
be |
Right hand side of equality constraints in ![]() Class: double |
ind_e |
Rows of ![]() ![]() Class: double |
A = [1; -1; 1];
b = [1; -1; 2];To detect the equality, we use mpt_ineq2eq function
[An, bn, Ae, be] = mpt_ineq2eq(A,b)
An = 1 bn = 2 Ae = 1 be = 1
◀ | mpt | mpt_scale_matrix | ▶ |
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk
© 2006 Johan Loefberg: ETH Zurich , loefberg@control.ee.ethz.ch