如何用matlab或lingo求解多元函数的最小值?
求最优成本 minC,minC=X[ ]*P[ ],价格P固定,重量X变动为整数,如无法得出整数解,有小数解也可。
X[]=[x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12]
P[]=[6900,5330,4800,6500,6270,6200,6700,6200,6700,5000,5080,5470]
sumX=x1+x2+x+x4+x5+x6+x7+x8+x9+x10+x1+x12=2000
密度M为恒量,M[ ]=[m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11,m12]=[0.742,0.6667,0.63,0.809,0.695,0.7072,0.88,0.7072,0.88,0.63,0.8693,0.7409]
体积V[ ]=X/M=[v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12]=[x1/m1,x2/m2,x3/m3,x4/m4,x5/m5,x6/m6,x7/m7,x8/m8,x9/m9,x10/m10,x11/m11,x12/m12]
sumV= v1+v2+v3+v4+v5+v6+v7+v8+v9+v10+v11+v12
Vs=V/sumV=[v1/sumV,v2/sumV, v3/sumV, v4/sumV, v5/sumV, v6/sumV, v7/sumV, v8/sumV, v9/sumV, v10/sumV,v11/sumV, v12/sumV]
另有恒量:
B[ ]= [b