Home > mpt > extras > auxiliary > mpt_ineq2eq.m

mpt_ineq2eq

PURPOSE ^

MPT_INEQ2EQ Detects inequality constraints whihc form equalities

SYNOPSIS ^

function [A, B, Aeq, Beq, ind_eq] = mpt_ineq2eq(A, B)

DESCRIPTION ^

MPT_INEQ2EQ Detects inequality constraints whihc form equalities

 [Ain, Bin, Aeq, Beq, ind_eq] = mpt_ineq2eq(A, B)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 For a system of inequalities A*x<=B, this function detects and returns those
 inequality constraints which form equalities. For instance:

 A = [1; -1; 1]; B = [1; -1; 2];

 The output will lead:
 Ain = [-1]; Bin = [2]; Aeq = [1]; Beq = 1;

 such that the original problem can be rewritten as:
   Ain*x <= Bin
   Aeq*x  = Beq

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 A, B        - system of inequalities

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 Ain,Bin     - new system of inequalities
 Aeq,Beq     - system of equalities
 ind_eq      - indicies of equality constraints. ind_eq(i, :)=[k m] indicates
               that inequalities A(k, :)-B(k) and A(m, :)-B(m) form one
               equality constraint

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003