>> c=[-5,4,2]; % I+ P3 e* x6 `a=[6,-1,1;1,2,4]; 0 D3 }5 z# l5 U3 A& U' ^- P `b=[8,10]; / T( O3 j, G& S) p' _vlb=[-1,0,0];+ H( \. C# q6 g1 h' \) }
vub=[3,2]; $ b& M6 B: Q' f: y6 ^[x,lam]=lp(c,a,b,vlb,vub)$ x* u% R! f" C& s) w. D# W
??? Undefined function or method 'lp' for input arguments of type 'double'.# |. u- G- m9 S& _+ J/ S) X
' n) j* A1 _$ G7 q7 a9 l>> [x,lam]=linprog(c,a,b,vlb,vub)' l" u$ B. P' v9 M/ I
??? Error using ==> linprog at 192+ r; R( M1 j0 ^+ e
The number of rows in Aeq must be the same as the length of beq.9 i3 W7 o* n" B' x# }) B. Y. ?' J
这个错误的程序咋纠正啊,急急急急! ( s0 x7 @: w, w& \- M: [( ]4 S9 K注:用的是matlab2010b