source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/modules/parametric/mpt_remove_equalities.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 640 bytes
Line 
1function  Matrices = mpt_remove_equalities(Matrices,remove);
2m  = size(Matrices.G,1);
3nu = Matrices.nu;
4nx = Matrices.nx;
5
6Matrices.G(remove,:) = [];
7Matrices.E(remove,:) = [];
8Matrices.W(remove,:) = [];
9
10% But add variable bounds (these where used to remove the rows)
11Matrices.G = [Matrices.G;eye(nu);-eye(nu);zeros(2*nx,nu)];
12Matrices.E = [Matrices.E;zeros(2*nu,nx);-eye(nx);eye(nx)];
13Matrices.W = [Matrices.W;Matrices.ub(1:nu);-Matrices.lb(1:nu);Matrices.ub(nu+1:end);-Matrices.lb(nu+1:end)];
14infbounds = find(isinf(Matrices.W) & (Matrices.W>0));
15Matrices.G(infbounds,:) = [];
16Matrices.E(infbounds,:) = [];
17Matrices.W(infbounds,:) = [];
Note: See TracBrowser for help on using the repository browser.