>> c=[-5,4,2]; 7 |. Y) k( S0 r% U- ?0 y2 ya=[6,-1,1;1,2,4];4 w8 k7 T, B' {' m5 A
b=[8,10];& _2 ?* j) W: S7 {5 N N
vlb=[-1,0,0]; 3 C3 ]+ a/ `8 B9 \ i, J0 Svub=[3,2];) z( v; v( F# A# J; z
[x,lam]=lp(c,a,b,vlb,vub)& l0 R0 Y& r$ l. b
??? Undefined function or method 'lp' for input arguments of type 'double'. ' B8 _2 E2 g H- _0 w ) }- M$ z- A9 u7 \' I
>> [x,lam]=linprog(c,a,b,vlb,vub) 7 H7 ?0 l( `8 Q; H& y' Y??? Error using ==> linprog at 1921 Q' c4 ~4 A+ N
The number of rows in Aeq must be the same as the length of beq. 8 q+ K7 X4 E" r Q5 u) E这个错误的程序咋纠正啊,急急急急!% T4 Z$ M' H+ [
注:用的是matlab2010b