>> c=[-5,4,2];8 b! u5 F6 {/ h1 x. p O
a=[6,-1,1;1,2,4];$ B8 C! U! D+ A5 M# J
b=[8,10]; ; `% p2 P) \) gvlb=[-1,0,0]; 6 G2 h1 {7 j' Y8 ?3 Qvub=[3,2];; {, F7 }0 a8 k0 e+ B. J7 _
[x,lam]=lp(c,a,b,vlb,vub)4 ]2 U$ |5 Y. X; I
??? Undefined function or method 'lp' for input arguments of type 'double'." e' ?4 p0 g: R( I
; A: d3 {7 k8 D4 b8 ?4 x: P
>> [x,lam]=linprog(c,a,b,vlb,vub)8 U8 Z+ Q2 C7 w
??? Error using ==> linprog at 192 ) V8 g. X1 Q CThe number of rows in Aeq must be the same as the length of beq.( U: f: n( u* W }- B$ F( u
这个错误的程序咋纠正啊,急急急急!* j. u7 e* U/ F0 J
注:用的是matlab2010b