>> c=[-5,4,2]; 2 i+ s6 O) S# }$ y' A' ia=[6,-1,1;1,2,4]; * R9 N, c# u% V/ Zb=[8,10]; 0 o4 h: V7 l8 R0 nvlb=[-1,0,0]; # Z* ~& c- D" o( r- Bvub=[3,2]; 0 ?+ J% j- g" G8 D" q7 P[x,lam]=lp(c,a,b,vlb,vub) 8 ` `- S' Z J Y) ?' n( h% K??? Undefined function or method 'lp' for input arguments of type 'double'.2 u( n% D1 F5 w- x
) U0 p2 y [0 b( v>> [x,lam]=linprog(c,a,b,vlb,vub) 7 B7 \2 ~: e5 N8 `0 i% z; S1 f7 S??? Error using ==> linprog at 192! a& t% j+ g! {
The number of rows in Aeq must be the same as the length of beq. ' q$ J0 [% c! o# {这个错误的程序咋纠正啊,急急急急! % K1 o8 A0 F! k4 _/ Y$ Z% x注:用的是matlab2010b