> gams whouse
GAMS Rev 133 Copyright (C) 1987-2002 GAMS Development. All rights reserved
Licensee: Stephen Billups-Mathematics Dept. G021028:0915AS-LNX
University of Colorado at Denver DC1553
--- Starting compilation
--- whouse.gms(45) 1 Mb 2 Errors
*** Status: Compilation error(s)
>
43 Model swp simple warehouse problem / all /; 44 45 Solve swp minimizing cost using lp; **** $246 $257 46This indicates two errors that were detected when the GAMS interpreter reached the solve statement. The error codes $246 and $257 are described later in the file:
Error Messages 246 Objective variable is not a free variable 257 Solve statement not checked because of previous errors **** 2 ERROR(S) 0 WARNING(S) COMPILATION TIME = 0.012 SECONDS 3 Mb LEX220-143 Jul 27, 2005Here we see from error message $246 that we should not have declared the objective variable cost to be a positive variable. So we need to go back and fix this in the whouse.gms file. I.e., we should change the line
Positive Variables stock,sell,buy,costto
Positive Variables stock,sell,buy
> gams whouse
GAMS Rev 133 Copyright (C) 1987-2002 GAMS Development. All rights reserved
Licensee: Stephen Billups-Mathematics Dept. G021028:0915AS-LNX
University of Colorado at Denver DC1553
--- Starting compilation
--- whouse2.gms(45) 1 Mb
--- Starting execution
--- whouse2.gms(41) 1 Mb
--- Generating model swp
--- whouse2.gms(45) 1 Mb
--- 5 rows, 13 columns, and 28 non-zeroes.
--- Executing CPLEX
GAMS/Cplex Jun 14, 2002 LNX.CP.CP 20.7 022.024.040.LNX For Cplex 7.5
Cplex 7.5.0, GAMS Link 22
Licensed for 1 use of lp, mip and barrier.
Reading data ...
Starting Cplex...
Tried aggregator 1 time.
LP Presolve eliminated 5 rows and 13 columns.
All rows and columns eliminated.
Presolve time = 0.00 sec.
Optimal solution found.
Objective : -600.000000
--- Restarting execution
--- whouse.gms(45) 0 Mb
--- Reading solution for model swp
*** Status: Normal completion
>
Success! You can now look at the .lst to see the output. Click
here to see the new whouse.lst file.