ldidx04.gms : $loadIdx - checking restrictions

Description

Check basic operation of $loadIdx.
Cannot $loadIdx from just any GDX file

Contributor: Steve Dirkse, Oct 2013


Small Model of Type : GAMS


Category : GAMS Test library


Main file : ldidx04.gms

$title $loadIdx - checking restrictions (ldidx04,SEQ=628)

$onText
Check basic operation of $loadIdx.
Cannot $loadIdx from just any GDX file

Contributor: Steve Dirkse, Oct 2013
$offText

sets
  i1 / 1 * 2 /
  i2 / 2 * 2 /
  j1, j2
  ;
parameters
  a2(i1,i2)
  b2(j1,j2)
  ;
$gdxIn trnsport
$loadIdx a2=d
$gdxIn
$if errorfree $abort 'Compiler should reject this: AAA'
$clearError

$gdxIn trnsport
$loadIdx b2=d
$gdxIn
$if errorfree $abort 'Compiler should reject this: BBB'
$clearError