作业帮 > 综合 > 作业

lingo程序出错麻烦高手帮一下

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/10 07:57:33
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)
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 constraints;
@for(Person(i):[SUP]
@sum(Job(j):x(i,j))