首页 > 中学考试杂题 > 题目详情
lingo程序出错麻烦高手帮一下! 5 persons and 4 jobs Assignment Problemset
题目内容:
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)
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)
! 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)
本题链接: