lingo的数据拟合model:sets:xl/1..5/:n,y; endsets data:n=19,20,22,24,25; y=6,7,8,9,10; enddata @frmodel:sets:xl/1..5/:n,y;endsetsdata:n=19,20,22,24,25;y=6,7,8,9,10;enddata@free(a);@free(b);min=@sum((@log(y)*a-b-n)*(@log(y)*a-b-n));end这段程序
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 18:55:29
lingo的数据拟合model:sets:xl/1..5/:n,y; endsets data:n=19,20,22,24,25; y=6,7,8,9,10; enddata @frmodel:sets:xl/1..5/:n,y;endsetsdata:n=19,20,22,24,25;y=6,7,8,9,10;enddata@free(a);@free(b);min=@sum((@log(y)*a-b-n)*(@log(y)*a-b-n));end这段程序
lingo的数据拟合model:sets:xl/1..5/:n,y; endsets data:n=19,20,22,24,25; y=6,7,8,9,10; enddata @fr
model:
sets:
xl/1..5/:n,y;
endsets
data:
n=19,20,22,24,25;
y=6,7,8,9,10;
enddata
@free(a);@free(b);
min=@sum((@log(y)*a-b-n)*(@log(y)*a-b-n));
end
这段程序那里出错了?
lingo的数据拟合model:sets:xl/1..5/:n,y; endsets data:n=19,20,22,24,25; y=6,7,8,9,10; enddata @frmodel:sets:xl/1..5/:n,y;endsetsdata:n=19,20,22,24,25;y=6,7,8,9,10;enddata@free(a);@free(b);min=@sum((@log(y)*a-b-n)*(@log(y)*a-b-n));end这段程序
model:
sets:
xl/1..5/:n,y;
endsets
data:
n=19,20,22,24,25;
y=6,7,8,9,10;
enddata
@free(a);@free(b);
min=@sum(xl:(@log(y)*a-b-n)*(@log(y)*a-b-n));!用@sum求和需指明所属集合;
end