早教吧 育儿知识 作业答案 考试题库 百科 知识分享

lindo程序求解x1到x10均为0-1变量,程序运行有误,如何改正?MAX1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10SUBJECTTO33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=3003678.8974x1+406.858x2-25056.0585x3

题目详情
lindo程序求解
x1到x10均为0-1变量,程序运行有误,如何改正?
MAX 1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10
SUBJECT TO
33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=300
3678.8974x1+406.858x2-25056.0585x3-13399.47x4-43847.565x5+48130.9115x6+102092.48x7+171447.3554x8-2944.533x9-262753.722x10=0
end
INTEGER x1,x2,x3,x4,x5,x6,x7,x8,x9,x10
▼优质解答
答案和解析
max 1.11x1+1.48x2+0.95x3+2.65x4+37.72x5+39.68x6+72.85x7+67.88x8+49.1x9+45.12x10
SUBJECT TO
33x1+33x2+33x3+33x4+33x5+70x6+86x7+77x8+68x9+70x10=300
3678.8974x1+406.858x2-25056.0585x3-13399.47x4-43847.565x5+48130.9115x6+102092.48x7+171447.3554x8-2944.533x9-262753.722x10=0
end
INT 10
不过你这个是没有最优解的.