请问一个LINGO求解混合整数规划问题?
题目
请问一个LINGO求解混合整数规划问题?
我这建了一个数学模型,从8个供应商选择几个进行订货,X为订货量,Y为0-1变量,选择时为1不选时为0.用LINGO编程,运行时显示错误为:unexpected jacobian overflow.我的程序如下,我是初学者,
model1:
SETS:
m/p1,p2,p3,p4,p5,p6,p7,p8/:y,x,w,v,q,t;
ENDSETS
DATA:
w=0.233,0.544,0.329,0.780,0.533,0.454,0.762,0.303;
v=4000,2500,3500,1800,2500,2600,1800,2500;
q=0.022,0.015,0.024,0.032,0.02,0.018,0.03,0.02;
t=0.04,0.015,0.025,0,0.015,0.02,0.01,0.02;
D=5000;
Q=0.025;
t=0.025;
n=4;
ENDDATA
The objective;
max=@sum(m(j):v(j)*x(j));
The capacity constraints;
@for(m(j):x(j)≤v(j)*y(j));
The demand constraints;
@sum(m(j):x(j))≥D;
The quality constraints;
@sum(m(j):x(j)*q(j))≤Q*D;
The time constraints;
@sum(m(j):x(j)*t(j))≤T*D;
The number of suppliers constraints;
@sum(m(j):y(j))≤4;
@for(m(j):@bin(y(j)));
@for(m(j):@gin(x(j)));
end
答案
model: SETS: m/p1,p2,p3,p4,p5,p6,p7,p8/:y,x,w,v,q,t; ENDSETS DATA: w=0.233,0.544,0.329,0.780,0.533,0.454,0.762,0.303; v=4000,2500,3500,1800,2500,2600,1800,2500; q=0.022,0.015,0.024,0.03...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 英语喂鸡feed chicken中间要不要加the
- 引起植物光合午休的条件是光照,温度还是水啊?
- 三道数学应用题.(关于鸡兔同笼的.)别用方程解啊,
- he was about to tell me the news .someone patted him on the shoulder 用when连接
- 均值不等式
- 用数学归纳法证明1+1/2²+1/3²+...+1/n²<2-1/n n≥2
- 解方程!小学五年级数学
- 方程6x-3=4x的解是关于x的方程ax-9=0的解
- 鲁迅描写的儿童时期生活的百草园给你留下怎样的印象?表达了作者一种怎样的情感呢
- 已知数列a0,a1,a2,...,an,...,满足关系式(3-a(n+1))(6+an)=18,且a0=3,则1/a1+.+1/ai的值是多少
热门考点
- He got uo late yesterday,so he went to school w____ breakfast.
- 关于过去分词现在分词的习题
- 一定量碳(由C12和C13组成)和足量O2反应所得的CO2气体的分子量是44.99.则该碳中碳12和碳13的原子个数比?
- 已知矩形ABCD中,O为AC.BD的交点,OC等于BC,则角CAB
- 世有伯乐,然后有千里马.千里马常有,而伯乐不常有.联系生活说理解
- 土壤饱和含水率和田间持水量哪个大
- 电场强度、电势能、电势、电势差及等势面有什麽关系联系?
- 0.1mol/l 盐酸与0.1mol/l 碳酸钠等体积混合求PH.
- food,drink,ice cream都不可数名词,为什么all kinds of后可加foods,drinks而不可加ice creams?
- 贾人渡河整篇文章怎么读?