查看: 282|回复: 4|关注: 0

[已解决] 1stOpt线性规划,没有报错但是不出结果

[复制链接]

新手

7 麦片

财富积分


050


2

主题

5

帖子

0

最佳答案

程序相对简单,主要是通过求和及循环写入线性规划中的各种约束,个人怀疑是语言写错了或者是破解版的问题导致不出结果

疑问:
1、本人用的是1.5的破解版,不知道是不是盗版的问题不出结果;
2、目标函数是264个变量x的求和,应该属于线性规划,但是却显示不能使用单纯形法;(改用其他算法后不出结果)
3、烦请各位大佬帮忙看看是不是程序语言写错了,包括循环嵌套以及求和等问题,感激不尽!

原程序如下:

//前面的是一些参数的赋值
Constant Qn(1:156)=[
7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64, 7363.64,
1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93, 1846.93,
3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44, 3433.44,
5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00, 5356.00,
2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14, 2215.14,
10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13, 10093.13,
1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07, 1525.07,
1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24, 1910.24,
1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14, 1712.14,
2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78, 2767.78,
1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65, 1250.65,
3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18, 3109.18,
4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00, 4750.00];

Constant W(1:264)=[
10901.09, 9846.14, 10901.09, 10549.44, 10901.09, 10549.44, 10901.09, 10901.09, 10549.44, 10901.09, 10549.44, 10901.09,
10472.54, 9459.07, 10472.54, 10134.72, 10472.54, 10134.72, 10472.54, 10472.54, 10134.72, 10472.54, 10134.72, 10472.54,
10017.22, 9047.81, 10017.22, 9694.08, 10017.22, 9694.08, 10017.22, 10017.22, 9694.08, 10017.22, 9694.08, 10017.22,
9883.30, 8926.85, 9883.30, 9564.48, 9883.30, 9564.48, 9883.30, 9883.30, 9564.48, 9883.30, 9564.48, 9883.30,
9722.59, 8781.70, 9722.59, 9408.96, 9722.59, 9408.96, 9722.59, 9722.59, 9408.96, 9722.59, 9408.96, 9722.59,
9588.67, 8660.74, 9588.67, 9279.36, 9588.67, 9279.36, 9588.67, 9588.67, 9279.36, 9588.67, 9279.36, 9588.67,
8999.42, 8128.51, 8999.42, 8709.12, 8999.42, 8709.12, 8999.42, 8999.42, 8709.12, 8999.42, 8709.12, 8999.42,
8544.10, 7717.25, 8544.10, 8268.48, 8544.10, 8268.48, 8544.10, 8544.10, 8268.48, 8544.10, 8268.48, 8544.10,
8544.10, 7717.25, 8544.10, 8268.48, 8544.10, 8268.48, 8544.10, 8544.10, 8268.48, 8544.10, 8268.48, 8544.10,
6696.00, 6048.00, 6696.00, 6480.00, 6696.00, 6480.00, 6696.00, 6696.00, 6480.00, 6696.00, 6480.00, 6696.00,
6160.32, 5564.16, 6160.32, 5961.60, 6160.32, 5961.60, 6160.32, 6160.32, 5961.60, 6160.32, 5961.60, 6160.32,
5892.48, 5322.24, 5892.48, 5702.40, 5892.48, 5702.40, 5892.48, 5892.48, 5702.40, 5892.48, 5702.40, 5892.48,
5544.29, 5007.74, 5544.29, 5365.44, 5544.29, 5365.44, 5544.29, 5544.29, 5365.44, 5544.29, 5365.44, 5544.29,
5356.80, 4838.40, 5356.80, 5184.00, 5356.80, 5184.00, 5356.80, 5356.80, 5184.00, 5356.80, 5184.00, 5356.80,
5088.96, 4596.48, 5088.96, 4924.80, 5088.96, 4924.80, 5088.96, 5088.96, 4924.80, 5088.96, 4924.80, 5088.96,
4553.28, 4112.64, 4553.28, 4406.40, 4553.28, 4406.40, 4553.28, 4553.28, 4406.40, 4553.28, 4406.40, 4553.28,
4017.60, 3628.80, 4017.60, 3888.00, 4017.60, 3888.00, 4017.60, 4017.60, 3888.00, 4017.60, 3888.00, 4017.60,
3589.06, 3241.73, 3589.06, 3473.28, 3589.06, 3473.28, 3589.06, 3589.06, 3473.28, 3589.06, 3473.28, 3589.06,
3481.92, 3144.96, 3481.92, 3369.60, 3481.92, 3369.60, 3481.92, 3481.92, 3369.60, 3481.92, 3369.60, 3481.92,
3374.78, 3048.19, 3374.78, 3265.92, 3374.78, 3265.92, 3374.78, 3374.78, 3265.92, 3374.78, 3265.92, 3374.78,
1473.12, 1330.56, 1473.12, 1425.60, 1473.12, 1425.60, 1473.12, 1473.12, 1425.60, 1473.12, 1425.60, 1473.12,
1285.63, 1161.22, 1285.63, 1244.16, 1285.63, 1244.16, 1285.63, 1285.63, 1244.16, 1285.63, 1244.16, 1285.63 ];

Constant q(1:264)=[
2303.42, 2080.51, 2303.42, 2229.12, 2303.42, 2229.12, 2303.42, 2303.42, 2229.12, 2303.42, 2229.12, 2303.42,
2410.56, 2177.28, 2410.56, 2332.80, 2410.56, 2332.80, 2410.56, 2410.56, 2332.80, 2410.56, 2332.80, 2410.56,
535.68, 483.84, 535.68, 518.40, 535.68, 518.40, 535.68, 535.68, 518.40, 535.68, 518.40, 535.68,
401.76, 362.88, 401.76, 388.80, 401.76, 388.80, 401.76, 401.76, 388.80, 401.76, 388.80, 401.76,
535.68, 483.84, 535.68, 518.40, 535.68, 518.40, 535.68, 535.68, 518.40, 535.68, 518.40, 535.68,
1339.20, 1209.60, 1339.20, 1296.00, 1339.20, 1296.00, 1339.20, 1339.20, 1296.00, 1339.20, 1296.00, 1339.20,
5490.72, 4959.36, 5490.72, 5313.60, 5490.72, 5313.60, 5490.72, 5490.72, 5313.60, 5490.72, 5313.60, 5490.72,
2678.40, 2419.20, 2678.40, 2592.00, 2678.40, 2592.00, 2678.40, 2678.40, 2592.00, 2678.40, 2592.00, 2678.40,
803.52, 725.76, 803.52, 777.60, 803.52, 777.60, 803.52, 803.52, 777.60, 803.52, 777.60, 803.52,
803.52, 725.76, 803.52, 777.60, 803.52, 777.60, 803.52, 803.52, 777.60, 803.52, 777.60, 803.52,
6160.32, 5564.16, 6160.32, 5961.60, 6160.32, 5961.60, 6160.32, 6160.32, 5961.60, 6160.32, 5961.60, 6160.32,
348.19, 314.50, 348.19, 336.96, 348.19, 336.96, 348.19, 348.19, 336.96, 348.19, 336.96, 348.19,
348.19, 314.50, 348.19, 336.96, 348.19, 336.96, 348.19, 348.19, 336.96, 348.19, 336.96, 348.19,
441.94, 399.17, 441.94, 427.68, 441.94, 427.68, 441.94, 441.94, 427.68, 441.94, 427.68, 441.94,
441.94, 399.17, 441.94, 427.68, 441.94, 427.68, 441.94, 441.94, 427.68, 441.94, 427.68, 441.94,
409.80, 370.14, 409.80, 396.58, 409.80, 396.58, 409.80, 409.80, 396.58, 409.80, 396.58, 409.80,
441.94, 399.17, 441.94, 427.68, 441.94, 427.68, 441.94, 441.94, 427.68, 441.94, 427.68, 441.94,
441.94, 399.17, 441.94, 427.68, 441.94, 427.68, 441.94, 441.94, 427.68, 441.94, 427.68, 441.94,
409.80, 370.14, 409.80, 396.58, 409.80, 396.58, 409.80, 409.80, 396.58, 409.80, 396.58, 409.80,
1473.12, 1330.56, 1473.12, 1425.60, 1473.12, 1425.60, 1473.12, 1473.12, 1425.60, 1473.12, 1425.60, 1473.12,
1473.12, 1330.56, 1473.12, 1425.60, 1473.12, 1425.60, 1473.12, 1473.12, 1425.60, 1473.12, 1425.60, 1473.12,
1285.63, 1161.22, 1285.63, 1244.16, 1285.63, 1244.16, 1285.63, 1285.63, 1244.16, 1285.63, 1244.16, 1285.63 ];

Constant aa(1:264)=[
0.9713, 0.9713, 0.9635, 0.9519, 0.9519, 0.9635, 0.9701, 0.9701, 0.9635, 0.9701, 0.9713, 0.9713,
0.9667, 0.9667, 0.9576, 0.9442, 0.9442, 0.9576, 0.9653, 0.9653, 0.9576, 0.9653, 0.9667, 0.9667,
0.9588, 0.9588, 0.9477, 0.9312, 0.9312, 0.9477, 0.9571, 0.9571, 0.9477, 0.9571, 0.9588, 0.9588,
0.9542, 0.9542, 0.9418, 0.9236, 0.9236, 0.9418, 0.9522, 0.9522, 0.9418, 0.9522, 0.9542, 0.9542,
0.9526, 0.9526, 0.9398, 0.9210, 0.9210, 0.9398, 0.9506, 0.9506, 0.9398, 0.9506, 0.9526, 0.9526,
0.9480, 0.9480, 0.9341, 0.9136, 0.9136, 0.9341, 0.9459, 0.9459, 0.9341, 0.9459, 0.9480, 0.9480,
0.9271, 0.9271, 0.9077, 0.8796, 0.8796, 0.9077, 0.9241, 0.9241, 0.9077, 0.9241, 0.9271, 0.9271,
0.9249, 0.9249, 0.9051, 0.8762, 0.8762, 0.9051, 0.9218, 0.9218, 0.9051, 0.9218, 0.9249, 0.9249,
0.9129, 0.9129, 0.8901, 0.8570, 0.8570, 0.8901, 0.9094, 0.9094, 0.8901, 0.9094, 0.9129, 0.9129,
0.8757, 0.8757, 0.8440, 0.7987, 0.7987, 0.8440, 0.8707, 0.8707, 0.8440, 0.8707, 0.8757, 0.8757,
0.8755, 0.8755, 0.8437, 0.7983, 0.7983, 0.8437, 0.8705, 0.8705, 0.8437, 0.8705, 0.8755, 0.8755,
0.9047, 0.9047, 0.8919, 0.8649, 0.8649, 0.8919, 0.9054, 0.9054, 0.8919, 0.9054, 0.9047, 0.9047,
0.8949, 0.8949, 0.8855, 0.8594, 0.8594, 0.8855, 0.8974, 0.8974, 0.8855, 0.8974, 0.8949, 0.8949,
0.8749, 0.8749, 0.8723, 0.8481, 0.8481, 0.8723, 0.8810, 0.8810, 0.8723, 0.8810, 0.8749, 0.8749,
0.8540, 0.8540, 0.8584, 0.8362, 0.8362, 0.8584, 0.8638, 0.8638, 0.8584, 0.8638, 0.8540, 0.8540,
0.8287, 0.8287, 0.8415, 0.8216, 0.8216, 0.8415, 0.8429, 0.8429, 0.8415, 0.8429, 0.8287, 0.8287,
0.8119, 0.8119, 0.8302, 0.8118, 0.8118, 0.8302, 0.8290, 0.8290, 0.8302, 0.8290, 0.8119, 0.8119,
0.8100, 0.8100, 0.8289, 0.8107, 0.8107, 0.8289, 0.8274, 0.8274, 0.8289, 0.8274, 0.8100, 0.8100,
0.7846, 0.7846, 0.8116, 0.7957, 0.7957, 0.8116, 0.8062, 0.8062, 0.8116, 0.8062, 0.7846, 0.7846,
0.7846, 0.7846, 0.8116, 0.7957, 0.7957, 0.8116, 0.8062, 0.8062, 0.8116, 0.8062, 0.7846, 0.7846,
0.7846, 0.7846, 0.8116, 0.7957, 0.7957, 0.8116, 0.8062, 0.8062, 0.8116, 0.8062, 0.7846, 0.7846,
0.7846, 0.7846, 0.8116, 0.7957, 0.7957, 0.8116, 0.8062, 0.8062, 0.8116, 0.8062, 0.7846, 0.7846 ];

Constant Qm(1:264)=[
0.00, 0.00, 13.90, 0.00, 240.07, 0.00, 65.96, 46.51, 0.00, 0.00, 0.00, 0.00,
0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 6.27, 52.99, 70.43, 32.39, 0.00, 0.00,
8.68, 7.63, 8.31, 8.03, 5.20, 8.04, 6.27, 26.34, 19.62, 14.12, 0.00, 4.43,
17.37, 10.43, 0.00, 47.63, 29.46, 39.96, 39.08, 47.04, 36.06, 39.79, 44.84, 69.18,
17.37, 16.69, 23.40, 21.73, 14.22, 25.97, 11.10, 23.14, 22.03, 16.09, 7.59, 16.40,
242.85, 213.43, 163.90, 223.58, 210.28, 221.81, 266.42, 309.54, 306.61, 238.68, 26.55, 0.00,
615.58, 902.86, 991.34, 881.99, 446.91, 845.30, 814.39, 869.86, 829.04, 850.04, 691.57, 613.75,
0.00, 0.00, 0.00, 51.58, 62.72, 67.09, 70.51, 67.77, 40.59, 31.68, 50.63, 0.00,
129.00, 147.84, 151.43, 78.37, 73.92, 133.73, 117.34, 158.37, 158.40, 157.51, 154.12, 159.61,
200.00, 275.00, 258.00, 240.00, 226.00, 307.70, 326.06, 313.00, 284.00, 246.00, 226.00, 126.00,
1391.33, 1222.52, 1991.93, 1973.25, 1486.76, 1235.81, 1325.21, 1747.98, 1584.18, 1112.29, 1349.15, 1078.66,
88.75, 5.60, 92.46, 94.95, 73.52, 92.21, 79.37, 125.30, 108.71, 116.24, 107.61, 94.29,
19.31, 18.97, 17.30, 15.36, 9.41, 20.14, 17.88, 11.23, 5.44, 11.36, 13.54, 17.13,
0.00, 0.00, 0.00, 0.00, 0.00, 64.29, 67.08, 11.49, 0.00, 0.00, 77.64, 0.00,
0.00, 0.00, 28.43, 49.49, 32.30, 13.48, 0.00, 0.00, 0.00, 0.00, 0.00, 44.41,
0.00, 0.00, 74.91, 99.05, 28.74, 4.21, 0.00, 6.45, 0.00, 0.00, 0.00, 0.00,
0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
0.00, 0.00, 232.24, 213.22, 104.19, 177.83, 104.83, 0.00, 0.00, 0.00, 0.00, 38.65,
0.00, 89.11, 150.68, 112.81, 59.18, 61.81, 157.08, 17.98, 0.00, 0.00, 0.00, 0.00,
0.00, 282.36, 280.00, 288.72, 230.58, 297.29, 291.59, 158.17, 0.00, 0.00, 0.00, 113.05,
0.00, 90.68, 119.65, 149.09, 64.13, 137.55, 73.70, 0.00, 0.00, 41.54, 247.65, 154.97,
595.17, 675.40, 725.28, 686.67, 366.69, 509.09, 706.66, 76.89, 0.00, 0.00, 395.67, 439.06 ];
Constant Qh(1:4)=[30700, 23300, 13700, 5200];
Constant Qc(1:4)=[10000, 17000, 9650, 5000];
Constant b=0.9183;

  //开始运用编程模式

Parameter x(1:264)[0,];
Maximum;
StartProgram[Basic];
Sub MainModel

//目标函数
FunctionResult =sum i = 1 to 264 (x(i));

//以下是利用循环及求和写入的各种约束
ConstrainedResult =for i = 1 to 12  
sum j = 1 to 22
x(i+12*(j-1))/aa(i+12*(j-1))<=W(i)
next

ConstrainedResult = for k = 1 to 12
for i = 2 to 8
sum j = i to 22
((aa(k+12*(i-2)))*(x(k+12*(j-1)))/aa(k+12*(j-1)))<=W(k+12*(i-1))
next
next

ConstrainedResult = for k = 1 to 12
for i = 9 to 11
sum j = i to 11
((aa(k+12*(i-2)))*(x(k+12*(j-1)))/aa(k+12*(j-1)))<=W(k+12*(i-1))
next
next

ConstrainedResult = for k = 1 to 12
sum i = 12 to 22
((aa(k+12*(8-1)))*(x(k+12*(i-1)))/aa(k+12*(i-1)))<=W(k+12*(12-1))
next

ConstrainedResult = for k = 1 to 12
for i = 13 to 22
sum j = i to 22
((aa(k+12*(i-2)))*(x(k+12*(j-1)))/aa(k+12*(j-1)))<=W(k+12*(i-1))
next
next

ConstrainedResult = for i = 1 to 12
x(i)+x(i+12)+x(i+24)+x(i+36)+x(i+48)<=Qn(i);
x(i+60)<=Qn(i+12);
x(i+72)+x(i+84)<=Qn(i+24);
x(i+96)<=Qn(i+36);
x(i+108)<=Qn(i+48);
x(i+120)<=Qn(i+60);
x(i+132)+x(i+144)<=Qn(i+72);
x(i+156)+x(i+168)<=Qn(i+84);
x(i+180)<=Qn(i+96);
x(i+192)+x(i+204)<=Qn(i+108);
x(i+216)<=Qn(i+120);
x(i+228)+x(i+240)<=Qn(i+132);
x(i+252)<=Qn(i+144);

ConstrainedResult = for i = 1 to 264
x(i)>=Qm(i)
next

ConstrainedResult = for i = 1 to 264
x(i)<=q(i)
next

ConstrainedResult = sum i = 1 to 108
x(i)/aa(i)<=Qh(1)*b+Qc(1);
ConstrainedResult = sum i = 109 to 156
x(i)/aa(i)<=Qh(2)*b+Qc(2);
ConstrainedResult = sum i = 157 to 252
x(i)/aa(i)<=Qh(3)*b+Qc(3);
ConstrainedResult = sum i = 253 to 264
x(i)/aa(i)<=Qh(4)*b+Qc(4);
End Sub
EndProgram;

论坛优秀回答者

中级

1040 麦片

财富积分


5001500


0

主题

2543

帖子

225

最佳答案
  • 关注者: 146
发表于 2019-10-10 16:35:42 | 显示全部楼层 |此回复为最佳答案
错的地方不少,试着改了下,结果参考如下:

Objective Function(Min.): 47222.04

Best Estimated Parameters:
x1: 0
x2: 0
x3: 13.9
x4: 0
x5: 240.07
x6: 0
x7: 65.96
x8: 46.51
x9: 0
x10: 0
x11: 0
x12: 0
x13: 0
x14: 0
x15: 0
x16: 0
x17: 0
x18: 0
x19: 6.27
x20: 52.99
x21: 70.43
x22: 32.39
x23: 0
x24: 0
x25: 8.68
x26: 7.63
x27: 8.31
x28: 8.03
x29: 5.2
x30: 8.04
x31: 6.27
x32: 26.34
x33: 19.62
x34: 14.12
x35: 0
x36: 4.43
x37: 17.37
x38: 10.43
x39: 0
x40: 47.63
x41: 29.46
x42: 39.96
x43: 39.08
x44: 47.04
x45: 36.06
x46: 39.79
x47: 44.84
x48: 69.18
x49: 17.37
x50: 16.69
x51: 23.4
x52: 21.73
x53: 14.22
x54: 25.97
x55: 11.1
x56: 23.14
x57: 22.03
x58: 16.09
x59: 7.59
x60: 16.4
x61: 242.85
x62: 213.43
x63: 163.9
x64: 223.58
x65: 210.28
x66: 221.81
x67: 266.42
x68: 309.54
x69: 306.61
x70: 238.68
x71: 26.55
x72: 0
x73: 615.58
x74: 902.86
x75: 991.34
x76: 881.99
x77: 446.91
x78: 845.3
x79: 814.39
x80: 869.86
x81: 829.04
x82: 850.04
x83: 691.57
x84: 613.75
x85: 0
x86: 0
x87: 0
x88: 51.58
x89: 62.72
x90: 67.09
x91: 70.51
x92: 67.77
x93: 40.59
x94: 31.68
x95: 50.63
x96: 0
x97: 129
x98: 147.84
x99: 151.43
x100: 78.37
x101: 73.92
x102: 133.73
x103: 117.34
x104: 158.37
x105: 158.4
x106: 157.51
x107: 154.12
x108: 159.61
x109: 200
x110: 275
x111: 258
x112: 240
x113: 226
x114: 307.7
x115: 326.06
x116: 313
x117: 284
x118: 246
x119: 226
x120: 126
x121: 1391.33
x122: 1222.52
x123: 1991.93
x124: 1973.25
x125: 1486.76
x126: 1235.81
x127: 1325.21
x128: 1747.98
x129: 1584.18
x130: 1112.29
x131: 1349.15
x132: 1078.66
x133: 88.75
x134: 5.6
x135: 92.46
x136: 94.95
x137: 73.52
x138: 92.21
x139: 79.37
x140: 125.3
x141: 108.71
x142: 116.24
x143: 107.61
x144: 94.29
x145: 19.31
x146: 18.97
x147: 17.3
x148: 15.36
x149: 9.41
x150: 20.14
x151: 17.88
x152: 11.23
x153: 5.44
x154: 11.36
x155: 13.54
x156: 17.13
x157: 0
x158: 0
x159: 0
x160: 0
x161: 0
x162: 64.29
x163: 67.08
x164: 11.49
x165: 0
x166: 0
x167: 77.64
x168: 0
x169: 0
x170: 0
x171: 28.43
x172: 49.49
x173: 32.3
x174: 13.48
x175: 0
x176: 0
x177: 0
x178: 0
x179: 0
x180: 44.41
x181: 0
x182: 0
x183: 74.91
x184: 99.05
x185: 28.74
x186: 4.21
x187: 0
x188: 6.45
x189: 0
x190: 0
x191: 0
x192: 0
x193: 0
x194: 0
x195: 0
x196: 0
x197: 0
x198: 0
x199: 0
x200: 0
x201: 0
x202: 0
x203: 0
x204: 0
x205: 0
x206: 0
x207: 232.24
x208: 213.22
x209: 104.19
x210: 177.83
x211: 104.83
x212: 0
x213: 0
x214: 0
x215: 0
x216: 38.65
x217: 0
x218: 89.11
x219: 150.68
x220: 112.81
x221: 59.18
x222: 61.81
x223: 157.08
x224: 17.98
x225: 0
x226: 0
x227: 0
x228: 0
x229: 0
x230: 282.36
x231: 280
x232: 288.72
x233: 230.58
x234: 297.29
x235: 291.59
x236: 158.17
x237: 0
x238: 0
x239: 0
x240: 113.05
x241: 0
x242: 90.68
x243: 119.65
x244: 149.09
x245: 64.13
x246: 137.55
x247: 73.7
x248: 0
x249: 0
x250: 41.54
x251: 247.65
x252: 154.97
x253: 595.17
x254: 675.4
x255: 725.28
x256: 686.67
x257: 366.69
x258: 509.09
x259: 706.66
x260: 76.89
x261: 0
x262: 0
x263: 395.67
x264: 439.06

新手

7 麦片

财富积分


050


2

主题

5

帖子

0

最佳答案
 楼主| 发表于 2019-10-10 16:39:14 | 显示全部楼层
万分感谢!

新手

7 麦片

财富积分


050


2

主题

5

帖子

0

最佳答案
 楼主| 发表于 2019-10-10 16:41:35 | 显示全部楼层
大神能不能把修改过后的代码发我QQ邮箱呢,因为本人之前是用的lingo做的,国庆才刚接触1stOpt,一些语言的编写不是十分理解,十分感谢!QQ邮箱:1393290836@qq.com

新手

7 麦片

财富积分


050


2

主题

5

帖子

0

最佳答案
 楼主| 发表于 2019-10-10 18:32:29 | 显示全部楼层
shihe 发表于 2019-10-10 16:35
错的地方不少,试着改了下,结果参考如下:

Objective Function(Min.): 47222.04

大神能不能把修改过后的代码发我QQ邮箱呢,因为本人之前是用的lingo做的,国庆才刚接触1stOpt,一些语言的编写不是十分理解,十分感谢!

QQ邮箱:1393290836@qq.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /3 下一条

快速回复 返回顶部 返回列表