> 其他 >
lingo程序出错麻烦高手帮一下
! 5 persons and 4 jobs Assignment Problem
sets:
Person/1..5/;
Job/1..4/;
Assign(Person,Job):c,x;
endsets
!Here are the parameters;
Data:
c =66.8,32.2,56.2,51.21;
enddata
!The objective;
[OBJ]min=@sum(Assign:c*x);
!The uppy constraints;
@for(Preson(i):[SUP]
@sum(Job(j):x(i,j)
人气:336 ℃ 时间:2020-09-23 04:46:42
解答
c应该有20个数 自己看好了sets:Person/1..5/;Job/1..4/;Assign(Person,Job):c,x;endsets!Here are the parameters;Data:!c =66.8,32.2,56.2,51.21;enddata!The objective;[OBJ]min=@sum(Assign:c*x);!The uppy const...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版