GAMS Rev 149 x86_64/MS Windows 01/11/21 14:27:46 Page 1 G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m C o m p i l a t i o n 4 5 Option limrow = 999999 6 Option limcol = 999999 7 8 9 10 { syntax_version is the flag we use in the $if statements to compile in/out different bits of code. 11 Comment/uncomment to switch between the two syntax versions } 13 //$setglobal syntax_version complex 14 15 Sets 16 g "units" /unit1, unit2/ 17 y "years" /1999* 2020/ 18 ; 19 20 Alias (g,g2) 21 (y,y2) 22 23 Sets 24 26 simple(g,y) 27 { TODO - try adding multiple sets here to see if that affects anything } 29 ; 30 32 33 simple(g,y) = yes; 34 36 37 Variables 38 40 v_simple1(g,y) 41 v_simple2(g,y) 43 v_obj_z; 44 45 46 Positive Variables 48 v_simple1, v_simple2 50 ; 51 52 53 Equations 54 56 c_simple_lower(g,y) 57 c_simple_upper(g,y) 59 c_obj_z; 60 61 63 64 c_simple_lower(g,y)$simple(g,y) .. v_simple1(g,y) + v_simple2(g,y) =G= 10; 65 c_simple_upper(g,y)$simple(g,y) .. v_simple1(g,y) + v_simple2(g,y) =L= 20; 66 68 69 70 71 c_obj_z .. v_obj_z =E= 73 sum((g,y)$simple(g,y), v_simple1(g,y) + v_simple2(g,y)); 75 76 model demo / all /; 77 option lp = mosek; 78 demo.optfile = 1; 79 solve demo using lp minimizing v_obj_z; 80 81 execute_unload "modelDump"; COMPILATION TIME = 0.000 SECONDS 3 Mb WEX226-149 Dec 19, 2007 GAMS Rev 149 x86_64/MS Windows 01/11/21 14:27:46 Page 2 G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m Equation Listing SOLVE demo Using LP From line 79 ---- c_simple_lower =G= c_simple_lower(unit1,1999).. v_simple1(unit1,1999) + v_simple2(unit1,1999) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2000).. v_simple1(unit1,2000) + v_simple2(unit1,2000) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2001).. v_simple1(unit1,2001) + v_simple2(unit1,2001) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2002).. v_simple1(unit1,2002) + v_simple2(unit1,2002) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2003).. v_simple1(unit1,2003) + v_simple2(unit1,2003) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2004).. v_simple1(unit1,2004) + v_simple2(unit1,2004) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2005).. v_simple1(unit1,2005) + v_simple2(unit1,2005) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2006).. v_simple1(unit1,2006) + v_simple2(unit1,2006) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2007).. v_simple1(unit1,2007) + v_simple2(unit1,2007) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2008).. v_simple1(unit1,2008) + v_simple2(unit1,2008) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2009).. v_simple1(unit1,2009) + v_simple2(unit1,2009) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2010).. v_simple1(unit1,2010) + v_simple2(unit1,2010) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2011).. v_simple1(unit1,2011) + v_simple2(unit1,2011) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2012).. v_simple1(unit1,2012) + v_simple2(unit1,2012) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2013).. v_simple1(unit1,2013) + v_simple2(unit1,2013) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2014).. v_simple1(unit1,2014) + v_simple2(unit1,2014) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2015).. v_simple1(unit1,2015) + v_simple2(unit1,2015) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2016).. v_simple1(unit1,2016) + v_simple2(unit1,2016) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2017).. v_simple1(unit1,2017) + v_simple2(unit1,2017) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2018).. v_simple1(unit1,2018) + v_simple2(unit1,2018) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2019).. v_simple1(unit1,2019) + v_simple2(unit1,2019) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit1,2020).. v_simple1(unit1,2020) + v_simple2(unit1,2020) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,1999).. v_simple1(unit2,1999) + v_simple2(unit2,1999) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2000).. v_simple1(unit2,2000) + v_simple2(unit2,2000) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2001).. v_simple1(unit2,2001) + v_simple2(unit2,2001) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2002).. v_simple1(unit2,2002) + v_simple2(unit2,2002) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2003).. v_simple1(unit2,2003) + v_simple2(unit2,2003) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2004).. v_simple1(unit2,2004) + v_simple2(unit2,2004) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2005).. v_simple1(unit2,2005) + v_simple2(unit2,2005) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2006).. v_simple1(unit2,2006) + v_simple2(unit2,2006) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2007).. v_simple1(unit2,2007) + v_simple2(unit2,2007) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2008).. v_simple1(unit2,2008) + v_simple2(unit2,2008) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2009).. v_simple1(unit2,2009) + v_simple2(unit2,2009) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2010).. v_simple1(unit2,2010) + v_simple2(unit2,2010) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2011).. v_simple1(unit2,2011) + v_simple2(unit2,2011) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2012).. v_simple1(unit2,2012) + v_simple2(unit2,2012) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2013).. v_simple1(unit2,2013) + v_simple2(unit2,2013) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2014).. v_simple1(unit2,2014) + v_simple2(unit2,2014) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2015).. v_simple1(unit2,2015) + v_simple2(unit2,2015) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2016).. v_simple1(unit2,2016) + v_simple2(unit2,2016) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2017).. v_simple1(unit2,2017) + v_simple2(unit2,2017) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2018).. v_simple1(unit2,2018) + v_simple2(unit2,2018) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2019).. v_simple1(unit2,2019) + v_simple2(unit2,2019) =G= 10 ; (LHS = 0, INFES = 10 ****) c_simple_lower(unit2,2020).. v_simple1(unit2,2020) + v_simple2(unit2,2020) =G= 10 ; (LHS = 0, INFES = 10 ****) ---- c_simple_upper =L= c_simple_upper(unit1,1999).. v_simple1(unit1,1999) + v_simple2(unit1,1999) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2000).. v_simple1(unit1,2000) + v_simple2(unit1,2000) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2001).. v_simple1(unit1,2001) + v_simple2(unit1,2001) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2002).. v_simple1(unit1,2002) + v_simple2(unit1,2002) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2003).. v_simple1(unit1,2003) + v_simple2(unit1,2003) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2004).. v_simple1(unit1,2004) + v_simple2(unit1,2004) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2005).. v_simple1(unit1,2005) + v_simple2(unit1,2005) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2006).. v_simple1(unit1,2006) + v_simple2(unit1,2006) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2007).. v_simple1(unit1,2007) + v_simple2(unit1,2007) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2008).. v_simple1(unit1,2008) + v_simple2(unit1,2008) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2009).. v_simple1(unit1,2009) + v_simple2(unit1,2009) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2010).. v_simple1(unit1,2010) + v_simple2(unit1,2010) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2011).. v_simple1(unit1,2011) + v_simple2(unit1,2011) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2012).. v_simple1(unit1,2012) + v_simple2(unit1,2012) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2013).. v_simple1(unit1,2013) + v_simple2(unit1,2013) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2014).. v_simple1(unit1,2014) + v_simple2(unit1,2014) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2015).. v_simple1(unit1,2015) + v_simple2(unit1,2015) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2016).. v_simple1(unit1,2016) + v_simple2(unit1,2016) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2017).. v_simple1(unit1,2017) + v_simple2(unit1,2017) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2018).. v_simple1(unit1,2018) + v_simple2(unit1,2018) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2019).. v_simple1(unit1,2019) + v_simple2(unit1,2019) =L= 20 ; (LHS = 0) c_simple_upper(unit1,2020).. v_simple1(unit1,2020) + v_simple2(unit1,2020) =L= 20 ; (LHS = 0) c_simple_upper(unit2,1999).. v_simple1(unit2,1999) + v_simple2(unit2,1999) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2000).. v_simple1(unit2,2000) + v_simple2(unit2,2000) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2001).. v_simple1(unit2,2001) + v_simple2(unit2,2001) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2002).. v_simple1(unit2,2002) + v_simple2(unit2,2002) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2003).. v_simple1(unit2,2003) + v_simple2(unit2,2003) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2004).. v_simple1(unit2,2004) + v_simple2(unit2,2004) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2005).. v_simple1(unit2,2005) + v_simple2(unit2,2005) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2006).. v_simple1(unit2,2006) + v_simple2(unit2,2006) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2007).. v_simple1(unit2,2007) + v_simple2(unit2,2007) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2008).. v_simple1(unit2,2008) + v_simple2(unit2,2008) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2009).. v_simple1(unit2,2009) + v_simple2(unit2,2009) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2010).. v_simple1(unit2,2010) + v_simple2(unit2,2010) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2011).. v_simple1(unit2,2011) + v_simple2(unit2,2011) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2012).. v_simple1(unit2,2012) + v_simple2(unit2,2012) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2013).. v_simple1(unit2,2013) + v_simple2(unit2,2013) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2014).. v_simple1(unit2,2014) + v_simple2(unit2,2014) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2015).. v_simple1(unit2,2015) + v_simple2(unit2,2015) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2016).. v_simple1(unit2,2016) + v_simple2(unit2,2016) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2017).. v_simple1(unit2,2017) + v_simple2(unit2,2017) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2018).. v_simple1(unit2,2018) + v_simple2(unit2,2018) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2019).. v_simple1(unit2,2019) + v_simple2(unit2,2019) =L= 20 ; (LHS = 0) c_simple_upper(unit2,2020).. v_simple1(unit2,2020) + v_simple2(unit2,2020) =L= 20 ; (LHS = 0) ---- c_obj_z =E= c_obj_z.. - v_simple1(unit1,1999) - v_simple1(unit1,2000) - v_simple1(unit1,2001) - v_simple1(unit1,2002) - v_simple1(unit1,2003) - v_simple1(unit1,2004) - v_simple1(unit1,2005) - v_simple1(unit1,2006) - v_simple1(unit1,2007) - v_simple1(unit1,2008) - v_simple1(unit1,2009) - v_simple1(unit1,2010) - v_simple1(unit1,2011) - v_simple1(unit1,2012) - v_simple1(unit1,2013) - v_simple1(unit1,2014) - v_simple1(unit1,2015) - v_simple1(unit1,2016) - v_simple1(unit1,2017) - v_simple1(unit1,2018) - v_simple1(unit1,2019) - v_simple1(unit1,2020) - v_simple1(unit2,1999) - v_simple1(unit2,2000) - v_simple1(unit2,2001) - v_simple1(unit2,2002) - v_simple1(unit2,2003) - v_simple1(unit2,2004) - v_simple1(unit2,2005) - v_simple1(unit2,2006) - v_simple1(unit2,2007) - v_simple1(unit2,2008) - v_simple1(unit2,2009) - v_simple1(unit2,2010) - v_simple1(unit2,2011) - v_simple1(unit2,2012) - v_simple1(unit2,2013) - v_simple1(unit2,2014) - v_simple1(unit2,2015) - v_simple1(unit2,2016) - v_simple1(unit2,2017) - v_simple1(unit2,2018) - v_simple1(unit2,2019) - v_simple1(unit2,2020) - v_simple2(unit1,1999) - v_simple2(unit1,2000) - v_simple2(unit1,2001) - v_simple2(unit1,2002) - v_simple2(unit1,2003) - v_simple2(unit1,2004) - v_simple2(unit1,2005) - v_simple2(unit1,2006) - v_simple2(unit1,2007) - v_simple2(unit1,2008) - v_simple2(unit1,2009) - v_simple2(unit1,2010) - v_simple2(unit1,2011) - v_simple2(unit1,2012) - v_simple2(unit1,2013) - v_simple2(unit1,2014) - v_simple2(unit1,2015) - v_simple2(unit1,2016) - v_simple2(unit1,2017) - v_simple2(unit1,2018) - v_simple2(unit1,2019) - v_simple2(unit1,2020) - v_simple2(unit2,1999) - v_simple2(unit2,2000) - v_simple2(unit2,2001) - v_simple2(unit2,2002) - v_simple2(unit2,2003) - v_simple2(unit2,2004) - v_simple2(unit2,2005) - v_simple2(unit2,2006) - v_simple2(unit2,2007) - v_simple2(unit2,2008) - v_simple2(unit2,2009) - v_simple2(unit2,2010) - v_simple2(unit2,2011) - v_simple2(unit2,2012) - v_simple2(unit2,2013) - v_simple2(unit2,2014) - v_simple2(unit2,2015) - v_simple2(unit2,2016) - v_simple2(unit2,2017) - v_simple2(unit2,2018) - v_simple2(unit2,2019) - v_simple2(unit2,2020) + v_obj_z =E= 0 ; (LHS = 0) GAMS Rev 149 x86_64/MS Windows 01/11/21 14:27:46 Page 3 G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m Column Listing SOLVE demo Using LP From line 79 ---- v_simple1 v_simple1(unit1,1999) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,1999) 1 c_simple_upper(unit1,1999) -1 c_obj_z v_simple1(unit1,2000) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2000) 1 c_simple_upper(unit1,2000) -1 c_obj_z v_simple1(unit1,2001) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2001) 1 c_simple_upper(unit1,2001) -1 c_obj_z v_simple1(unit1,2002) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2002) 1 c_simple_upper(unit1,2002) -1 c_obj_z v_simple1(unit1,2003) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2003) 1 c_simple_upper(unit1,2003) -1 c_obj_z v_simple1(unit1,2004) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2004) 1 c_simple_upper(unit1,2004) -1 c_obj_z v_simple1(unit1,2005) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2005) 1 c_simple_upper(unit1,2005) -1 c_obj_z v_simple1(unit1,2006) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2006) 1 c_simple_upper(unit1,2006) -1 c_obj_z v_simple1(unit1,2007) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2007) 1 c_simple_upper(unit1,2007) -1 c_obj_z v_simple1(unit1,2008) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2008) 1 c_simple_upper(unit1,2008) -1 c_obj_z v_simple1(unit1,2009) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2009) 1 c_simple_upper(unit1,2009) -1 c_obj_z v_simple1(unit1,2010) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2010) 1 c_simple_upper(unit1,2010) -1 c_obj_z v_simple1(unit1,2011) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2011) 1 c_simple_upper(unit1,2011) -1 c_obj_z v_simple1(unit1,2012) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2012) 1 c_simple_upper(unit1,2012) -1 c_obj_z v_simple1(unit1,2013) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2013) 1 c_simple_upper(unit1,2013) -1 c_obj_z v_simple1(unit1,2014) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2014) 1 c_simple_upper(unit1,2014) -1 c_obj_z v_simple1(unit1,2015) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2015) 1 c_simple_upper(unit1,2015) -1 c_obj_z v_simple1(unit1,2016) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2016) 1 c_simple_upper(unit1,2016) -1 c_obj_z v_simple1(unit1,2017) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2017) 1 c_simple_upper(unit1,2017) -1 c_obj_z v_simple1(unit1,2018) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2018) 1 c_simple_upper(unit1,2018) -1 c_obj_z v_simple1(unit1,2019) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2019) 1 c_simple_upper(unit1,2019) -1 c_obj_z v_simple1(unit1,2020) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2020) 1 c_simple_upper(unit1,2020) -1 c_obj_z v_simple1(unit2,1999) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,1999) 1 c_simple_upper(unit2,1999) -1 c_obj_z v_simple1(unit2,2000) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2000) 1 c_simple_upper(unit2,2000) -1 c_obj_z v_simple1(unit2,2001) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2001) 1 c_simple_upper(unit2,2001) -1 c_obj_z v_simple1(unit2,2002) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2002) 1 c_simple_upper(unit2,2002) -1 c_obj_z v_simple1(unit2,2003) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2003) 1 c_simple_upper(unit2,2003) -1 c_obj_z v_simple1(unit2,2004) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2004) 1 c_simple_upper(unit2,2004) -1 c_obj_z v_simple1(unit2,2005) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2005) 1 c_simple_upper(unit2,2005) -1 c_obj_z v_simple1(unit2,2006) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2006) 1 c_simple_upper(unit2,2006) -1 c_obj_z v_simple1(unit2,2007) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2007) 1 c_simple_upper(unit2,2007) -1 c_obj_z v_simple1(unit2,2008) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2008) 1 c_simple_upper(unit2,2008) -1 c_obj_z v_simple1(unit2,2009) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2009) 1 c_simple_upper(unit2,2009) -1 c_obj_z v_simple1(unit2,2010) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2010) 1 c_simple_upper(unit2,2010) -1 c_obj_z v_simple1(unit2,2011) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2011) 1 c_simple_upper(unit2,2011) -1 c_obj_z v_simple1(unit2,2012) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2012) 1 c_simple_upper(unit2,2012) -1 c_obj_z v_simple1(unit2,2013) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2013) 1 c_simple_upper(unit2,2013) -1 c_obj_z v_simple1(unit2,2014) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2014) 1 c_simple_upper(unit2,2014) -1 c_obj_z v_simple1(unit2,2015) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2015) 1 c_simple_upper(unit2,2015) -1 c_obj_z v_simple1(unit2,2016) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2016) 1 c_simple_upper(unit2,2016) -1 c_obj_z v_simple1(unit2,2017) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2017) 1 c_simple_upper(unit2,2017) -1 c_obj_z v_simple1(unit2,2018) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2018) 1 c_simple_upper(unit2,2018) -1 c_obj_z v_simple1(unit2,2019) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2019) 1 c_simple_upper(unit2,2019) -1 c_obj_z v_simple1(unit2,2020) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2020) 1 c_simple_upper(unit2,2020) -1 c_obj_z ---- v_simple2 v_simple2(unit1,1999) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,1999) 1 c_simple_upper(unit1,1999) -1 c_obj_z v_simple2(unit1,2000) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2000) 1 c_simple_upper(unit1,2000) -1 c_obj_z v_simple2(unit1,2001) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2001) 1 c_simple_upper(unit1,2001) -1 c_obj_z v_simple2(unit1,2002) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2002) 1 c_simple_upper(unit1,2002) -1 c_obj_z v_simple2(unit1,2003) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2003) 1 c_simple_upper(unit1,2003) -1 c_obj_z v_simple2(unit1,2004) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2004) 1 c_simple_upper(unit1,2004) -1 c_obj_z v_simple2(unit1,2005) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2005) 1 c_simple_upper(unit1,2005) -1 c_obj_z v_simple2(unit1,2006) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2006) 1 c_simple_upper(unit1,2006) -1 c_obj_z v_simple2(unit1,2007) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2007) 1 c_simple_upper(unit1,2007) -1 c_obj_z v_simple2(unit1,2008) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2008) 1 c_simple_upper(unit1,2008) -1 c_obj_z v_simple2(unit1,2009) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2009) 1 c_simple_upper(unit1,2009) -1 c_obj_z v_simple2(unit1,2010) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2010) 1 c_simple_upper(unit1,2010) -1 c_obj_z v_simple2(unit1,2011) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2011) 1 c_simple_upper(unit1,2011) -1 c_obj_z v_simple2(unit1,2012) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2012) 1 c_simple_upper(unit1,2012) -1 c_obj_z v_simple2(unit1,2013) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2013) 1 c_simple_upper(unit1,2013) -1 c_obj_z v_simple2(unit1,2014) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2014) 1 c_simple_upper(unit1,2014) -1 c_obj_z v_simple2(unit1,2015) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2015) 1 c_simple_upper(unit1,2015) -1 c_obj_z v_simple2(unit1,2016) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2016) 1 c_simple_upper(unit1,2016) -1 c_obj_z v_simple2(unit1,2017) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2017) 1 c_simple_upper(unit1,2017) -1 c_obj_z v_simple2(unit1,2018) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2018) 1 c_simple_upper(unit1,2018) -1 c_obj_z v_simple2(unit1,2019) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2019) 1 c_simple_upper(unit1,2019) -1 c_obj_z v_simple2(unit1,2020) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit1,2020) 1 c_simple_upper(unit1,2020) -1 c_obj_z v_simple2(unit2,1999) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,1999) 1 c_simple_upper(unit2,1999) -1 c_obj_z v_simple2(unit2,2000) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2000) 1 c_simple_upper(unit2,2000) -1 c_obj_z v_simple2(unit2,2001) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2001) 1 c_simple_upper(unit2,2001) -1 c_obj_z v_simple2(unit2,2002) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2002) 1 c_simple_upper(unit2,2002) -1 c_obj_z v_simple2(unit2,2003) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2003) 1 c_simple_upper(unit2,2003) -1 c_obj_z v_simple2(unit2,2004) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2004) 1 c_simple_upper(unit2,2004) -1 c_obj_z v_simple2(unit2,2005) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2005) 1 c_simple_upper(unit2,2005) -1 c_obj_z v_simple2(unit2,2006) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2006) 1 c_simple_upper(unit2,2006) -1 c_obj_z v_simple2(unit2,2007) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2007) 1 c_simple_upper(unit2,2007) -1 c_obj_z v_simple2(unit2,2008) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2008) 1 c_simple_upper(unit2,2008) -1 c_obj_z v_simple2(unit2,2009) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2009) 1 c_simple_upper(unit2,2009) -1 c_obj_z v_simple2(unit2,2010) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2010) 1 c_simple_upper(unit2,2010) -1 c_obj_z v_simple2(unit2,2011) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2011) 1 c_simple_upper(unit2,2011) -1 c_obj_z v_simple2(unit2,2012) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2012) 1 c_simple_upper(unit2,2012) -1 c_obj_z v_simple2(unit2,2013) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2013) 1 c_simple_upper(unit2,2013) -1 c_obj_z v_simple2(unit2,2014) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2014) 1 c_simple_upper(unit2,2014) -1 c_obj_z v_simple2(unit2,2015) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2015) 1 c_simple_upper(unit2,2015) -1 c_obj_z v_simple2(unit2,2016) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2016) 1 c_simple_upper(unit2,2016) -1 c_obj_z v_simple2(unit2,2017) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2017) 1 c_simple_upper(unit2,2017) -1 c_obj_z v_simple2(unit2,2018) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2018) 1 c_simple_upper(unit2,2018) -1 c_obj_z v_simple2(unit2,2019) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2019) 1 c_simple_upper(unit2,2019) -1 c_obj_z v_simple2(unit2,2020) (.LO, .L, .UP, .M = 0, 0, +INF, 0) 1 c_simple_lower(unit2,2020) 1 c_simple_upper(unit2,2020) -1 c_obj_z ---- v_obj_z v_obj_z (.LO, .L, .UP, .M = -INF, 0, +INF, 0) 1 c_obj_z GAMS Rev 149 x86_64/MS Windows 01/11/21 14:27:46 Page 4 G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m Model Statistics SOLVE demo Using LP From line 79 MODEL STATISTICS BLOCKS OF EQUATIONS 3 SINGLE EQUATIONS 89 BLOCKS OF VARIABLES 3 SINGLE VARIABLES 89 NON ZERO ELEMENTS 265 GENERATION TIME = 0.000 SECONDS 4 Mb WEX226-149 Dec 19, 2007 EXECUTION TIME = 0.000 SECONDS 4 Mb WEX226-149 Dec 19, 2007 GAMS Rev 149 x86_64/MS Windows 01/11/21 14:27:46 Page 5 G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m Solution Report SOLVE demo Using LP From line 79 S O L V E S U M M A R Y MODEL demo OBJECTIVE v_obj_z TYPE LP DIRECTION MINIMIZE SOLVER MOSEK FROM LINE 79 **** SOLVER STATUS 1 NORMAL COMPLETION **** MODEL STATUS 1 OPTIMAL **** OBJECTIVE VALUE 440.0000 RESOURCE USAGE, LIMIT 0.046 1000.000 ITERATION COUNT, LIMIT 0 10000 MOSEK Link Dec 24, 2007 WEX.MK.MB 22.6 012.037.041.wei M O S E K version 5.0.0.67 (Build date: Nov 21 2007 13:23:33) Copyright (C) MOSEK ApS, Fruebjergvej 3, Box 16 DK-2100 Copenhagen, Denmark http://www.mosek.com ---- EQU c_simple_lower LOWER LEVEL UPPER MARGINAL unit1.1999 10.0000 10.0000 +INF 1.0000 unit1.2000 10.0000 10.0000 +INF 1.0000 unit1.2001 10.0000 10.0000 +INF 1.0000 unit1.2002 10.0000 10.0000 +INF 1.0000 unit1.2003 10.0000 10.0000 +INF 1.0000 unit1.2004 10.0000 10.0000 +INF 1.0000 unit1.2005 10.0000 10.0000 +INF 1.0000 unit1.2006 10.0000 10.0000 +INF 1.0000 unit1.2007 10.0000 10.0000 +INF 1.0000 unit1.2008 10.0000 10.0000 +INF 1.0000 unit1.2009 10.0000 10.0000 +INF 1.0000 unit1.2010 10.0000 10.0000 +INF 1.0000 unit1.2011 10.0000 10.0000 +INF 1.0000 unit1.2012 10.0000 10.0000 +INF 1.0000 unit1.2013 10.0000 10.0000 +INF 1.0000 unit1.2014 10.0000 10.0000 +INF 1.0000 unit1.2015 10.0000 10.0000 +INF 1.0000 unit1.2016 10.0000 10.0000 +INF 1.0000 unit1.2017 10.0000 10.0000 +INF 1.0000 unit1.2018 10.0000 10.0000 +INF 1.0000 unit1.2019 10.0000 10.0000 +INF 1.0000 unit1.2020 10.0000 10.0000 +INF 1.0000 unit2.1999 10.0000 10.0000 +INF 1.0000 unit2.2000 10.0000 10.0000 +INF 1.0000 unit2.2001 10.0000 10.0000 +INF 1.0000 unit2.2002 10.0000 10.0000 +INF 1.0000 unit2.2003 10.0000 10.0000 +INF 1.0000 unit2.2004 10.0000 10.0000 +INF 1.0000 unit2.2005 10.0000 10.0000 +INF 1.0000 unit2.2006 10.0000 10.0000 +INF 1.0000 unit2.2007 10.0000 10.0000 +INF 1.0000 unit2.2008 10.0000 10.0000 +INF 1.0000 unit2.2009 10.0000 10.0000 +INF 1.0000 unit2.2010 10.0000 10.0000 +INF 1.0000 unit2.2011 10.0000 10.0000 +INF 1.0000 unit2.2012 10.0000 10.0000 +INF 1.0000 unit2.2013 10.0000 10.0000 +INF 1.0000 unit2.2014 10.0000 10.0000 +INF 1.0000 unit2.2015 10.0000 10.0000 +INF 1.0000 unit2.2016 10.0000 10.0000 +INF 1.0000 unit2.2017 10.0000 10.0000 +INF 1.0000 unit2.2018 10.0000 10.0000 +INF 1.0000 unit2.2019 10.0000 10.0000 +INF 1.0000 unit2.2020 10.0000 10.0000 +INF 1.0000 ---- EQU c_simple_upper LOWER LEVEL UPPER MARGINAL unit1.1999 -INF 10.0000 20.0000 . unit1.2000 -INF 10.0000 20.0000 . unit1.2001 -INF 10.0000 20.0000 . unit1.2002 -INF 10.0000 20.0000 . unit1.2003 -INF 10.0000 20.0000 . unit1.2004 -INF 10.0000 20.0000 . unit1.2005 -INF 10.0000 20.0000 . unit1.2006 -INF 10.0000 20.0000 . unit1.2007 -INF 10.0000 20.0000 . unit1.2008 -INF 10.0000 20.0000 . unit1.2009 -INF 10.0000 20.0000 . unit1.2010 -INF 10.0000 20.0000 . unit1.2011 -INF 10.0000 20.0000 . unit1.2012 -INF 10.0000 20.0000 . unit1.2013 -INF 10.0000 20.0000 . unit1.2014 -INF 10.0000 20.0000 . unit1.2015 -INF 10.0000 20.0000 . unit1.2016 -INF 10.0000 20.0000 . unit1.2017 -INF 10.0000 20.0000 . unit1.2018 -INF 10.0000 20.0000 . unit1.2019 -INF 10.0000 20.0000 . unit1.2020 -INF 10.0000 20.0000 . unit2.1999 -INF 10.0000 20.0000 . unit2.2000 -INF 10.0000 20.0000 . unit2.2001 -INF 10.0000 20.0000 . unit2.2002 -INF 10.0000 20.0000 . unit2.2003 -INF 10.0000 20.0000 . unit2.2004 -INF 10.0000 20.0000 . unit2.2005 -INF 10.0000 20.0000 . unit2.2006 -INF 10.0000 20.0000 . unit2.2007 -INF 10.0000 20.0000 . unit2.2008 -INF 10.0000 20.0000 . unit2.2009 -INF 10.0000 20.0000 . unit2.2010 -INF 10.0000 20.0000 . unit2.2011 -INF 10.0000 20.0000 . unit2.2012 -INF 10.0000 20.0000 . unit2.2013 -INF 10.0000 20.0000 . unit2.2014 -INF 10.0000 20.0000 . unit2.2015 -INF 10.0000 20.0000 . unit2.2016 -INF 10.0000 20.0000 . unit2.2017 -INF 10.0000 20.0000 . unit2.2018 -INF 10.0000 20.0000 . unit2.2019 -INF 10.0000 20.0000 . unit2.2020 -INF 10.0000 20.0000 . LOWER LEVEL UPPER MARGINAL ---- EQU c_obj_z . . . 1.0000 ---- VAR v_simple1 LOWER LEVEL UPPER MARGINAL unit1.1999 . 10.0000 +INF . unit1.2000 . 10.0000 +INF . unit1.2001 . 10.0000 +INF . unit1.2002 . 10.0000 +INF . unit1.2003 . 10.0000 +INF . unit1.2004 . 10.0000 +INF . unit1.2005 . 10.0000 +INF . unit1.2006 . 10.0000 +INF . unit1.2007 . 10.0000 +INF . unit1.2008 . 10.0000 +INF . unit1.2009 . 10.0000 +INF . unit1.2010 . 10.0000 +INF . unit1.2011 . 10.0000 +INF . unit1.2012 . 10.0000 +INF . unit1.2013 . 10.0000 +INF . unit1.2014 . 10.0000 +INF . unit1.2015 . 10.0000 +INF . unit1.2016 . 10.0000 +INF . unit1.2017 . 10.0000 +INF . unit1.2018 . 10.0000 +INF . unit1.2019 . 10.0000 +INF . unit1.2020 . 10.0000 +INF . unit2.1999 . 10.0000 +INF . unit2.2000 . 10.0000 +INF . unit2.2001 . 10.0000 +INF . unit2.2002 . 10.0000 +INF . unit2.2003 . 10.0000 +INF . unit2.2004 . 10.0000 +INF . unit2.2005 . 10.0000 +INF . unit2.2006 . 10.0000 +INF . unit2.2007 . 10.0000 +INF . unit2.2008 . 10.0000 +INF . unit2.2009 . 10.0000 +INF . unit2.2010 . 10.0000 +INF . unit2.2011 . 10.0000 +INF . unit2.2012 . 10.0000 +INF . unit2.2013 . 10.0000 +INF . unit2.2014 . 10.0000 +INF . unit2.2015 . 10.0000 +INF . unit2.2016 . 10.0000 +INF . unit2.2017 . 10.0000 +INF . unit2.2018 . 10.0000 +INF . unit2.2019 . 10.0000 +INF . unit2.2020 . 10.0000 +INF . ---- VAR v_simple2 LOWER LEVEL UPPER MARGINAL unit1.1999 . . +INF EPS unit1.2000 . . +INF EPS unit1.2001 . . +INF EPS unit1.2002 . . +INF EPS unit1.2003 . . +INF EPS unit1.2004 . . +INF EPS unit1.2005 . . +INF EPS unit1.2006 . . +INF EPS unit1.2007 . . +INF EPS unit1.2008 . . +INF EPS unit1.2009 . . +INF EPS unit1.2010 . . +INF EPS unit1.2011 . . +INF EPS unit1.2012 . . +INF EPS unit1.2013 . . +INF EPS unit1.2014 . . +INF EPS unit1.2015 . . +INF EPS unit1.2016 . . +INF EPS unit1.2017 . . +INF EPS unit1.2018 . . +INF EPS unit1.2019 . . +INF EPS unit1.2020 . . +INF EPS unit2.1999 . . +INF EPS unit2.2000 . . +INF EPS unit2.2001 . . +INF EPS unit2.2002 . . +INF EPS unit2.2003 . . +INF EPS unit2.2004 . . +INF EPS unit2.2005 . . +INF EPS unit2.2006 . . +INF EPS unit2.2007 . . +INF EPS unit2.2008 . . +INF EPS unit2.2009 . . +INF EPS unit2.2010 . . +INF EPS unit2.2011 . . +INF EPS unit2.2012 . . +INF EPS unit2.2013 . . +INF EPS unit2.2014 . . +INF EPS unit2.2015 . . +INF EPS unit2.2016 . . +INF EPS unit2.2017 . . +INF EPS unit2.2018 . . +INF EPS unit2.2019 . . +INF EPS unit2.2020 . . +INF EPS LOWER LEVEL UPPER MARGINAL ---- VAR v_obj_z -INF 440.0000 +INF . **** REPORT SUMMARY : 0 NONOPT 0 INFEASIBLE 0 UNBOUNDED GAMS Rev 149 x86_64/MS Windows 01/11/21 14:27:46 Page 6 G e n e r a l A l g e b r a i c M o d e l i n g S y s t e m E x e c u t i o n EXECUTION TIME = 0.000 SECONDS 3 Mb WEX226-149 Dec 19, 2007 USER: Ira Shavel G090128:1328CS-WIN Charles River Associates DC60 **** FILE SUMMARY Input D:\Current\IHS\GEO\Rowan\syntax_investigation_combined_model\if_then_else.gms Output D:\Current\IHS\GEO\Rowan\syntax_investigation_combined_model\if_then_else.lst