其他分享
首页 > 其他分享> > 数模学习笔记(1)——规划问题(更新中)

数模学习笔记(1)——规划问题(更新中)

作者:互联网

线性规划

	model:	
	sets:
	products/desks,tables,chairs/:interest,volume;
	materials/1..3/:capacity;
	links(products,materials):x;
	endsets
	data:
	interest=60,30,20;
	capacity=48,20,8;
	x=8,4,2
	6,2,1.5
	1,1.5,0.5;
	enddata
	max=@sum(products(i):interest(i)*volume(i));
	@for(materials(j):@sum(products(i):x(i,j)*volume(i))<=capacity(j));
	volume(2)<=5;
	end

标签:冒号,sum,更新,materials,volume,数模,products,笔记,interest
来源: https://www.cnblogs.com/Feihe177/p/14319443.html