Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1. * NLP written by GAMS Convert at 12/11/18 16:44:25
  2. *
  3. * Equation counts
  4. * Total E G L N X C
  5. * 60 58 1 1 0 0 0
  6. *
  7. * Variable counts
  8. * x b i s1s s2s sc si
  9. * Total cont binary integer sos1 sos2 scont sint
  10. * 66 66 0 0 0 0 0 0
  11. * FX 0 0 0 0 0 0 0 0
  12. *
  13. * Nonzero counts
  14. * Total const NL DLL
  15. * 187 76 111 0
  16. *
  17. * Warning: This is a scaled version of the original model
  18. * =======================================================
  19. *
  20. * Solve m using NLP maximizing x66;
  21.  
  22.  
  23. Variables x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19
  24. ,x20,x21,x22,x23,x24,x25,x26,x27,x28,x29,x30,x31,x32,x33,x34,x35,x36
  25. ,x37,x38,x39,x40,x41,x42,x43,x44,x45,x46,x47,x48,x49,x50,x51,x52,x53
  26. ,x54,x55,x56,x57,x58,x59,x60,x61,x62,x63,x64,x65,x66;
  27.  
  28. Equations e1,e2,e3,e4,e5,e6,e7,e8,e9,e10,e11,e12,e13,e14,e15,e16,e17,e18,e19
  29. ,e20,e21,e22,e23,e24,e25,e26,e27,e28,e29,e30,e31,e32,e33,e34,e35,e36
  30. ,e37,e38,e39,e40,e41,e42,e43,e44,e45,e46,e47,e48,e49,e50,e51,e52,e53
  31. ,e54,e55,e56,e57,e58,e59,e60;
  32.  
  33.  
  34. e1.. - 0.99*x12 - x32 =E= -60;
  35.  
  36. e2.. x13*x7 - ((x12 + x13)*x30 + x32*x33) =E= -24;
  37.  
  38. e3.. exp(x41*(1 - x55)) - x57 =E= 0;
  39.  
  40. e4.. -x55*x24 - x43 + x44 =E= 0;
  41.  
  42. e5.. ((154*x12 + 154*x13)/x23)**0.51*x43 - 0.015534173*(3480/x23)**0.32 =E= 0;
  43.  
  44. e6.. 255.915*(154*x12 + 154*x13)/(0.0003*x23)**0.22 - x24 =E= 0;
  45.  
  46. e7.. -3.14159265358979*x42**2 + 4*x23 =E= 0;
  47.  
  48. e8.. 8482.30016469244*x42**2*x22 - 232*x32 =E= 0;
  49.  
  50. e9.. log10(2794.41437201298*x22**2) - 0.852921557790304*(2.6551724137931*x21/
  51. x32)**0.25 =E= 0;
  52.  
  53. e10.. -(0.14286*x12 + 0.14286*x13)*x1 + x14 =E= 0;
  54.  
  55. e11.. -0.05*x13*x25 + x45 =E= 0;
  56.  
  57. e12.. -30.8*x13*(-303 + x34) + x6 =E= 0;
  58.  
  59. e13.. - 5*x2 + x6 =E= 0;
  60.  
  61. e14.. -200*x35*x15 + x6 =E= 0;
  62.  
  63. e15.. log(x58)*x15 - x47 =E= -10;
  64.  
  65. e16.. -(30.8*x12 + 30.8*x13)*(-303 + x36) + x16 =E= 0;
  66.  
  67. e17.. -30.8*x13*x48 + x16 =E= 0;
  68.  
  69. e18.. -100*x37*x17 + x16 =E= 0;
  70.  
  71. e19.. log(x53)*x17 - x49 + x50 =E= 0;
  72.  
  73. e20.. (x12 + x13)*x30 - x13*x7 - 0.99*x12 =E= 0;
  74.  
  75. e21.. (30.8*x12 + 30.8*x13)*x36 - 30.8*x12*x28 - 30.8*x13*x4 + x18 - x29 =E= 0;
  76.  
  77. e22.. 0.785398163397448*x38**2 - 1.71056075237363e-9*x18*x4 =E= 0;
  78.  
  79. e23.. -(0.99/x30 - 0.02/(1 - x30)) + x11 =E= 0;
  80.  
  81. e24.. -log(98.9999999999999*(1 - x7)/x7) + 0.693147180559945*x27 =E= 0;
  82.  
  83. e25.. x1*(1 - x8) - x8 - x27 =E= 0;
  84.  
  85. e26.. 0.75*(x31 - x11)/(1 + x31)**0.5668 + x8 =E= 0.75;
  86.  
  87. e27.. - 5*x10 + x29 =E= 0;
  88.  
  89. e28.. -300*x5*x9 + x29 =E= 0;
  90.  
  91. e29.. log(x54)*x9 - x46 + x52 =E= 0;
  92.  
  93. e30.. x18 - 500*x19 =E= 0;
  94.  
  95. e31.. -500*x39*x26 + x18 =E= 0;
  96.  
  97. e32.. x4 + x26 =E= 393;
  98.  
  99. e33.. exp(x59)*x7 + exp(x60)*(1 - x7) =E= 760;
  100.  
  101. e34.. 752.4/exp(x61) + 7.60000000000001/exp(x62) =E= 1;
  102.  
  103. e35.. - 0.2*x3 - 50*x20 + 0.2*x36 =E= -50;
  104.  
  105. e36.. exp(x63)*x30 + exp(x64)*(1 - x30) =E= 760;
  106.  
  107. e37.. x40*(0.01*x12 + x13) - x13*x7 =E= 0;
  108.  
  109. e38.. - 0.01*x12 - x13 + x21 =E= 0;
  110.  
  111. e39.. -x41*x44 + x25 =E= 0;
  112.  
  113. e40.. -7700*x12*(1 + x31) + x29 =E= 0;
  114.  
  115. e41.. - x34 + x47 =G= -588;
  116.  
  117. e42.. - x4 + x34 + x48 =E= 0;
  118.  
  119. e43.. x34 + x49 =E= 303;
  120.  
  121. e44.. x4 - x36 + x50 =E= 0;
  122.  
  123. e45.. - x28 + x51 =E= -298;
  124.  
  125. e46.. - x28 + x52 =E= -293;
  126.  
  127. e47.. - x28 + x46 =E= 230;
  128.  
  129. e48.. 760*x55*x13 - 608*x32 =E= 0;
  130.  
  131. e49.. - 608*x40 + 760*x56 =E= 0;
  132.  
  133. e50.. (x57 - x55)*(x33 - x56) - (1 - x55)*(0.4 - x56) =E= 0;
  134.  
  135. e51.. - x47 + 10*x58 =E= 0;
  136.  
  137. e52.. (-32.9 + x59)*(230 + x4) =E= -14300;
  138.  
  139. e53.. (-30.4 + x60)*(230 + x4) =E= -13800;
  140.  
  141. e54.. (-32.9 + x61)*x46 =E= -14300;
  142.  
  143. e55.. (-30.4 + x62)*x46 =E= -13800;
  144.  
  145. e56.. (-32.9 + x63)*(230 + x3) =E= -14300;
  146.  
  147. e57.. (-30.4 + x64)*(230 + x3) =E= -13800;
  148.  
  149. e58.. - x4 + x36 =L= 0;
  150.  
  151. e59.. -(600*x25*x42 + (363*x1*x38)**1.085 + 350*(x5**0.556 + x39**0.556 + x37**
  152. 0.556 + x35**0.556) + 1000*(x14**0.3 + x45**0.3)) + x65 =E= 0;
  153.  
  154. e60.. - 0.0635*x2 - 0.0635*x10 - 3056.9*x12 - 89.7*x14 - 35.2*x19 - 89.7*x45
  155. - 0.14286*x65 + x66 =E= -174000;
  156.  
  157. * set non default bounds
  158.  
  159. x1.lo = 1; x1.up = 500;
  160. x2.lo = 1; x2.up = 10000;
  161. x3.lo = 300; x3.up = 370.64;
  162. x4.lo = 300; x4.up = 370.64;
  163. x5.lo = 10; x5.up = 10000;
  164. x6.lo = 100; x6.up = 100000;
  165. x7.lo = 0.001; x7.up = 1;
  166. x8.lo = 0.001; x8.up = 1;
  167. x9.lo = 0.001; x9.up = 500;
  168. x10.lo = 1000; x10.up = 100000;
  169. x11.lo = 1E-6; x11.up = 100;
  170. x12.lo = 1; x12.up = 50;
  171. x13.lo = 1; x13.up = 50;
  172. x14.lo = 100; x14.up = 1000;
  173. x15.lo = 1E-6; x15.up = 100;
  174. x16.lo = 1000; x16.up = 100000;
  175. x17.lo = 1; x17.up = 100;
  176. x18.lo = 1000; x18.up = 1000000;
  177. x19.lo = 100; x19.up = 5000;
  178. x20.lo = 0.01; x20.up = 10;
  179. x21.lo = 10; x21.up = 500;
  180. x22.lo = 0.001; x22.up = 20;
  181. x23.lo = 0.1; x23.up = 50;
  182. x24.lo = 0.1; x24.up = 100;
  183. x25.lo = 5; x25.up = 1000;
  184. x26.lo = 1; x26.up = 100;
  185. x27.lo = 1; x27.up = 20;
  186. x28.lo = 200; x28.up = 600;
  187. x29.lo = 1000; x29.up = 1000000;
  188. x30.lo = 0.001; x30.up = 5;
  189. x31.lo = 1; x31.up = 20;
  190. x32.lo = 1; x32.up = 500;
  191. x33.lo = 1E-6; x33.up = 3;
  192. x34.lo = 10; x34.up = 500;
  193. x35.lo = 1; x35.up = 100;
  194. x36.lo = 303; x36.up = 500;
  195. x37.lo = 1; x37.up = 500;
  196. x38.lo = 0.001; x38.up = 10;
  197. x39.lo = 1; x39.up = 500;
  198. x40.lo = 1E-6; x40.up = 3;
  199. x41.lo = 1; x41.up = 300;
  200. x42.lo = 0.01; x42.up = 100;
  201. x43.lo = 1E-5; x43.up = 3;
  202. x44.lo = 1E-5; x44.up = 10;
  203. x45.lo = 20; x45.up = 1000;
  204. x46.lo = 100; x46.up = 600;
  205. x47.lo = 10; x47.up = 500;
  206. x48.lo = 20; x48.up = 500;
  207. x49.lo = -10; x49.up = -0.01;
  208. x50.lo = -50; x50.up = -0.01;
  209. x51.lo = 10; x51.up = 50;
  210. x52.lo = 10; x52.up = 50;
  211. x53.lo = 10; x53.up = 100;
  212. x54.lo = -100; x54.up = 100;
  213. x55.lo = -0.99; x55.up = 10;
  214. x56.lo = 0.01; x56.up = 10;
  215. x57.lo = 10; x57.up = 500;
  216. x58.lo = 0.01; x58.up = 10;
  217. x59.lo = 0.01; x59.up = 100;
  218. x60.lo = 1; x60.up = 100;
  219. x61.lo = 0.01; x61.up = 100;
  220. x62.lo = 1; x62.up = 100;
  221. x63.lo = 1; x63.up = 100;
  222. x64.lo = 1; x64.up = 100;
  223.  
  224. * set non default levels
  225.  
  226. x1.l = 29.2;
  227. x2.l = 848.5;
  228. x3.l = 353.1;
  229. x4.l = 370.4;
  230. x5.l = 61.3;
  231. x6.l = 16969;
  232. x7.l = 0.003;
  233. x8.l = 0.541;
  234. x9.l = 49.5;
  235. x10.l = 30316;
  236. x11.l = 3.339;
  237. x12.l = 20.8;
  238. x13.l = 50;
  239. x14.l = 213.2;
  240. x15.l = 2.7;
  241. x16.l = 74106;
  242. x17.l = 25.1;
  243. x18.l = 646277;
  244. x19.l = 1293;
  245. x20.l = 0.936;
  246. x21.l = 53.2;
  247. x22.l = 11.26;
  248. x23.l = 0.1185;
  249. x24.l = 0.473;
  250. x25.l = 18.9;
  251. x26.l = 22.6;
  252. x27.l = 12.876;
  253. x28.l = 338.1;
  254. x29.l = 606329;
  255. x30.l = 0.273;
  256. x31.l = 3.849;
  257. x32.l = 180.2;
  258. x33.l = 0.0011;
  259. x34.l = 299.3;
  260. x35.l = 62.11;
  261. x36.l = 333.8;
  262. x37.l = 14.77;
  263. x38.l = 0.74;
  264. x39.l = 285.85;
  265. x40.l = 0.0025;
  266. x41.l = 39.7;
  267. x42.l = 0.39;
  268. x43.l = 0.037;
  269. x44.l = 0.475;
  270. x45.l = 49.1;
  271. x46.l = 568.1;
  272. x47.l = 10;
  273. x48.l = 71.1;
  274. x49.l = -0.01;
  275. x50.l = -36.6;
  276. x51.l = 40.1;
  277. x52.l = 45.1;
  278. x53.l = 10;
  279. x54.l = 0.889135254988914;
  280. x55.l = 2.70977443609023;
  281. x56.l = 1;
  282. x57.l = 200;
  283. x58.l = 1;
  284. x59.l = 9.08254497001998;
  285. x60.l = 7.41532311792138;
  286. x61.l = 7.72837528604119;
  287. x62.l = 6.1085020242915;
  288. x63.l = 8.37590464757331;
  289. x64.l = 6.73339049905676;
  290.  
  291. * set non default marginals
  292.  
  293.  
  294. Model m / all /;
  295.  
  296. m.limrow=0; m.limcol=0;
  297.  
  298. Solve m using NLP maximizing x66;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement