>> c=[-5,4,2];+ M1 f) L( ]1 @1 y9 O* Y
a=[6,-1,1;1,2,4];- w4 ^* G2 t* }4 }# t0 M0 B2 u5 D$ v- h
b=[8,10]; / Q$ ]4 G) \. P! u* w$ p/ Y/ M5 kvlb=[-1,0,0]; ! p6 B7 {* h( J uvub=[3,2]; S( n6 O* O& w5 |8 C" G3 X# f[x,lam]=lp(c,a,b,vlb,vub)% m7 U% b% q0 i) z4 d
??? Undefined function or method 'lp' for input arguments of type 'double'.3 m( \ C* s2 \
: a7 {9 V* H2 ^" P' l* U' I. C" A>> [x,lam]=linprog(c,a,b,vlb,vub): P3 h8 j% n6 l6 C" s- @* b3 G
??? Error using ==> linprog at 192& F8 `/ }: ~1 P5 }2 T
The number of rows in Aeq must be the same as the length of beq. 5 S( ^$ V/ a, Q" A# A这个错误的程序咋纠正啊,急急急急!) V; E2 @9 ?% z# @; x! D6 ^
注:用的是matlab2010b