怎么用lingo求解多目标规划呢,max =@sum(I(i):@sum(J(j):@sum(link(I,J):x(i)*w(j)*p(i,j)/d(i,j))));@for(I(i):@sum(J(j)|w(j)#eq#1:x(i)*p(i,j))>0);@for(I(i):@sum(J(j):x(i)*p(i,j)*c(j))>0);@for(J(j):@sum(link(I,J):x(i)*p(i,j)>=0));@for(l
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 13:12:21
怎么用lingo求解多目标规划呢,max =@sum(I(i):@sum(J(j):@sum(link(I,J):x(i)*w(j)*p(i,j)/d(i,j))));@for(I(i):@sum(J(j)|w(j)#eq#1:x(i)*p(i,j))>0);@for(I(i):@sum(J(j):x(i)*p(i,j)*c(j))>0);@for(J(j):@sum(link(I,J):x(i)*p(i,j)>=0));@for(l
怎么用lingo求解多目标规划呢,
max =@sum(I(i):@sum(J(j):@sum(link(I,J):x(i)*w(j)*p(i,j)/d(i,j))));
@for(I(i):@sum(J(j)|w(j)#eq#1:x(i)*p(i,j))>0);
@for(I(i):@sum(J(j):x(i)*p(i,j)*c(j))>0);
@for(J(j):@sum(link(I,J):x(i)*p(i,j)>=0));
@for(link(I,J):@bin(p));
@for(I(i):@bin(x));
end
如果将第一个目标函数作为约束该怎么写啊,写完总是报错,请各位指教,
怎么用lingo求解多目标规划呢,max =@sum(I(i):@sum(J(j):@sum(link(I,J):x(i)*w(j)*p(i,j)/d(i,j))));@for(I(i):@sum(J(j)|w(j)#eq#1:x(i)*p(i,j))>0);@for(I(i):@sum(J(j):x(i)*p(i,j)*c(j))>0);@for(J(j):@sum(link(I,J):x(i)*p(i,j)>=0));@for(l
求解出第一个目标以后 然后将
@sum(I(i):@sum(J(j):@sum(link(I,J):x(i)*w(j)*p(i,j)/d(i,j))))=?; 作为约束条件写进去即可