Académique Documents
Professionnel Documents
Culture Documents
Dhazn Gillig
&
Bruce A. McCarl
Are you sure that you know EXACTLY what is in the model?
GAMS can cause one to lose touch with the exact optimization
model being solved, especially when one has a big complicated
data set containing many data calculations.
! GAMSCHK
Model Inspection – Limrow / Limcol
Nonnegative shipments
Limrow / Limcol – Transportation problem illustration
Limrow / Limcol – Transportation problem illustration
For equations we get something like
Limrow / Limcol – Transportation problem illustration
Limrow / Limcol – Transportation problem illustration
Limrow / Limcol – Transportation problem illustration
For variables we get something like
Limrow / Limcol – Transportation problem illustration
Model Inspection – Limrow / Limcol
Alternatively,
errmsg = 0
error messages at the end of
*.lst file
errmsg = 2
no error messages
Common Error Messages
We have made an error in typing of a table. We have not aligned the data
under a column set name so GAMS does not know which data column a
number goes with and issues an error.
Common Error Messages
Dimension different
We forgot to include “San Diego” element in Source set, but this “San
Diego” is used later in the PARAMETERS. Therefore, an error arises.
Common Error Messages
Mismatched parentheses
(A)
(B)
We had an excess number of close “)” in (A) but we had an excess number of
open “(“ in (B). We can use to check for parenthesis.
Common Error Messages
Entering improper nonlinear expressions
We named a model “Tranpor”, but then later we solve the model called
“Transport”. Obviously, misspelled in the MODEL statement.
More Help on Error Messages
Double click on a
topic to view details
Hands On
Learning Objectives (handson4.gms):
Things To Do
1. Please run handson2.gms and then fix errors and re-run the problem.
to