>> c=[-5,4,2];1 Q; S+ O: b/ u& |' [1 E! |9 b
a=[6,-1,1;1,2,4];/ x9 ^* [- E8 P1 [
b=[8,10];3 X9 w! |( ]* _! r: B+ T# ~
vlb=[-1,0,0];/ M: P1 y [8 n6 ?6 p
vub=[3,2];! P: n+ B! M; P3 H2 C) |. Y
[x,lam]=lp(c,a,b,vlb,vub)5 V) C0 b# C- ~, v; a
??? Undefined function or method 'lp' for input arguments of type 'double'./ l7 \6 W/ K( G
. ^% r( V1 Z* u4 R5 o5 K; Q9 S! f2 S>> [x,lam]=linprog(c,a,b,vlb,vub) 6 j, c. f* |" O+ X4 U) V% U3 R??? Error using ==> linprog at 1922 _3 i5 s5 [1 C3 i9 ]
The number of rows in Aeq must be the same as the length of beq.+ Z" a; e& D$ F; j+ T( h
这个错误的程序咋纠正啊,急急急急! - p+ ?- L# Z, z" a! Z注:用的是matlab2010b