>> c=[-5,4,2]; & a; K. g% y# R8 Na=[6,-1,1;1,2,4];8 M! ?: j8 T: ]
b=[8,10]; c- W) `) O7 Q4 i' |# bvlb=[-1,0,0];. q4 E' O6 J/ z) x
vub=[3,2]; 7 R- o9 ]% m$ \' _( j[x,lam]=lp(c,a,b,vlb,vub) 0 w, c4 d$ @9 t. P$ n??? Undefined function or method 'lp' for input arguments of type 'double'.% a" l1 f# ]2 u7 I8 Q" s- R8 a! A! m* @
3 n ]$ [% h9 ]5 Y( O4 q3 `+ u
>> [x,lam]=linprog(c,a,b,vlb,vub) e" M: T- f' B
??? Error using ==> linprog at 192 . h3 i2 D; f/ r1 CThe number of rows in Aeq must be the same as the length of beq.$ F" ^5 ^& L8 Z$ A" ?; X+ b
这个错误的程序咋纠正啊,急急急急! 8 ]1 r- O( e8 M, J3 b注:用的是matlab2010b