>> c=[-5,4,2]; B9 b1 n, G# Ja=[6,-1,1;1,2,4];: m6 w* |4 i4 b( |* ]
b=[8,10];. V) h N% H6 A% c( Z
vlb=[-1,0,0]; 3 X: c8 x" Q) m- _" c2 a: |vub=[3,2];+ `4 G+ J: m' a7 j- G" v
[x,lam]=lp(c,a,b,vlb,vub) ( H/ C' N4 s( u* w- e0 G: ~' T* v??? Undefined function or method 'lp' for input arguments of type 'double'.! J5 X' }' o$ ]; i
( p6 S% R. w( s5 H8 u3 i7 _>> [x,lam]=linprog(c,a,b,vlb,vub) 9 Q Z4 o; M' Q4 @2 C??? Error using ==> linprog at 192 0 X* m8 U/ r7 ]# v5 bThe number of rows in Aeq must be the same as the length of beq.7 ~1 O; W% I& I1 |/ w3 G
这个错误的程序咋纠正啊,急急急急! + h8 \1 c; H. j" b+ o. w5 Y注:用的是matlab2010b