颍川raining
颍川raining
关注数: 4
粉丝数: 15
发帖数: 147
关注贴吧数: 10
丹姿的供应链网络结构是怎么样的?求介绍。。。 想了解一下丹姿的产品从生产到到最终客户手中的整个流程,有谁比较了解?求介绍
用CPLEX求解MIP问题时,遇到Best Possible值和optimal值不一样! 希望获得best possible和optimal的值一样,所以进行了如下尝试: 1.我用 modelname.optcr=1e-007和modelname.optca=1e-007;还是不行 2.后来我建了一个cplex.opt文件,设置epagap 1e-20 epgap 1e-20这两个参数,结果还是没变化 求大神指点,在线等待。。。。 我还有另一个问题,在用Dicopt求解MINLP问题时,程序获得了整数解 8 integer solution,如何进行设置获得局部最优解,求思路,求想法、。。。。。
如何获得数组变量中,最大值对应的位置? 如有四个情景,我想求得最大情景,找出其对应的位置。该怎么编写程序呀
GAMS>>GDX>>Excel导出的一个例子(含多维数组的导出) Sets i canning plants / Seattle, San-Diego / j markets / New-York, Chicago, Detroit / p Property /attribute1,attribute2, attribute3/; Parameters a(i) capacity of plant i in cases / Seattle 350 San-Diego 600 / b(j) demand at market j in cases / New-York 325 Chicago 300 Detroit 275 / ; table u(i,j,p) attribute1 attribute2 attribute3 seattle.new-york 3 4 5 San-Diego.new-york 6 7 8 seattle.Chicago 9 10 11 San-Diego.Chicago 12 13 14 seattle.Detroit 15 16 17 San-Diego.Detroit 18 19 20 ; Table d(i,j) distance in thousands of miles New-York Chicago Detroit Seattle 2.5 1.7 1.8 San-Diego 2.5 1.8 1.4; scalar f freight in dollars per case per thousand miles/90/; Parameter c(i,j) transport cost in 1000s of dollars per case; c(i,j)= f*d(i,j)/1000; Variables x(i,j) shipment quantities in cases z total transportation costs in 1000s of dollars; Positive variables x; Equations cost define objective function supply(i) observe supply limit at plant i demand(j) satisfy demand at market j; cost..z=e= sum((i,j),c(i,j)*x(i,j)); supply(i).. sum(j,x(i,j))=l= a(i); demand(j)..sum(i,x(i,j))=g=b(j); model transport/all/; solve transport using lp minimizing z; display x.l, x.m; Execute_unload 'transport.gdx',c,x,z,u; execute 'gdxxrw transport.gdx o= transport.xlsx par=c rng= AA!a1:d3 rdim=1 cdim=1'; execute 'gdxxrw transport.gdx o=transport.xlsx var=x rng= AA!a5:d7' ; *execute 'gdxxrw transport.gdx o=transport.xlsx var=z rng= sheet1!e9' clear; execute 'gdxxrw.exe transport.gdx var=z rng= AA!e9 clear'; *下面两句代码解释了rdim&cdim的确切用法 execute 'gdxxrw.exe transport.gdx par=u rng= AA!a10 rdim=1 cdim=2'; execute 'gdxxrw.exe transport.gdx par=u rng= AA!a14 rdim=2 cdim=1';
GAMS:用DICOPT求解器求MINLP模型时,遇到的若干问题。求大神指教 当模型规模比较大时,运行结果为不可行。在解决这个问题时,一般的解决思路有几个? 本人想到的如下三种思路(但遇到了存在疑惑) 1.检查模型本身是否有问题(无疑惑) 2.对模型进行适当的scaling和初始值(无疑惑) 3.调整部分求解器规则(有很多疑惑) 我如何确定我所要求解的模型,是可以用调整后的求解器 比如说,我发现模型不可行,存在很多不可行的nlp子问题,那么我把infeasder这个参数改为1.那么求解的结果是我求解该模型最优值,可以接受的结果吗? 如果我解释的不清楚,大神可以加我的QQ:1553110095.在线等待!! 在此感谢了
关于模型中方程列表输出的LHS与INFES的含义,在线等待求解答!! 其中的LHS与INFES分别代表什么意思?****四个* 号又代表的什么意思?Warning吗?
急求 GAMS中 modelstat代表什么意思? 急求 GAMS中 modelstat代表什么意思?
求大神指点!!! 灰色预测中的白化方程是怎么得到的?????
急求大神指导!用lingo建的数学模型一直无最优解,该如何查找问 由于约束比较多,该怎么查找无最优解的原因?
急需大神指导!!! 由于程序有点多,所以只粘贴了部分程序,一直报错invalid put:a syntax error has occurred.并且指针一直在那个for语句的@上。 model: sets: time/1..3/:t,sgaex,drexfa,tr,didpay,drnwfa; scenario/1..9/:sp,s;!sp是s情景发生的概率; plant/1,2/:p,ij,sum_e; production/1..8/:pr; resource(plant,production):e,c_tr,pr_co_uni; asset(time,scenario):nts,rf,rm,fa,c,ra,inr,eq,stl,ltl,nopat,str,ltr,div,addre,cash,ta,exfa,nwfa,ca,cfp,nc,undc,niswc,ic,ccp,re,nis,nisfc,tl,wc,nos,mve,nltl,nstl,ebit; endsets data: str=7.00 7.00 7.00 7.00 7.00 7.00 7.00 7.00 7.00 5.60 5.60 5.60 7.00 7.00 7.00 8.40 8.40 8.40 5.30 5.60 5.90 6.70 7.00 7.40 8.00 8.40 8.80 ; tr=0.3 0.3 0.3;!the tax rate; ltr=4.00 4.00 4.00 4.00 4.00 4.00 4.00 4.00 4.00 3.00 3.00 3.00 4.00 4.00 4.00 5.00 5.00 5.00 2.70 3.00 3.30 3.60 4.00 4.40 4.50 5.00 5.50 ; enddata @for(time(t1):@for(scenario(s1):nopat(t1,s1)=(ebit(t1,s1)-str(t1,s1)*stl(t1,s1)-ltr(t1,s1)*ltl(t1,s1))*(1-tr(t1))));!constraint.3;
如何对四维集合的属性进行赋值? 如果是四维的,每一个点的值都不一样,如何通过赋值语句或其他便捷的方式赋值
本科信息管理与信息系统,保研14年物流工程,求指点 本人现在还是一名大四学生,本科专业信息管理与信息系统专业,想知道物流工程读研,要怎么学习,在哪方面努力等、、、、
做最美的自己 曾经说过如果我想减肥那么请给自己100天健康的瘦下来。。。。想要得到就要ACTION。。。明天要去沈阳了。。。一切开始了。。没有选择没有退路。。。
1
下一页