Loaddc

Top  Previous  Next

This dollar command loads specified items from a GDX file with domain checking.  It is employed using the syntax

 

$Loaddc item1 item2 ...

 

and must be used in conjunction with the command $Gdxin.

Example:

(gdxintrnsport.gms)

$gdxin tran2

$Load

  Sets

       i   canning plants

       j   markets          ;

$Load i j

  Parameters

       a(i)  capacity of plant i in cases

       b(j)  demand at market j in cases;

$Load a=sup

$Loaddc b=dem

  Parameter d(i,j)  distance in thousands of miles;

$Load d

  Scalar f  freight in dollars per case per thousand miles   ;

$Load f

$gdxin

Notes:

Loaddc is an alternative form of $Load but checks to see if the set element names being loaded are in the associated sets (I.e. checks the domain).
All other features are the same as discussed under $Load