DPex1.gms : Test expert level Delphi (pure) API to read and write GDX

Description

Contributor: Lutz Westermann, October 2012


Small Model of Type : Delphi


Category : GAMS API library


Main file : DPex1.gms

$title 'Test expert level Delphi (pure) API to read and write GDX' (DPEX1,SEQ=8)

$onText
Contributor: Lutz Westermann, October 2012
$offText


$set srcRoot %gams.sysdir%apifiles%system.dirsep%Delphi%system.dirsep%

$if not set dcomp $set dcomp MSBuild
$if %system.platform% == WEX
$if not set flags $set flags  -t:rebuild -p:Configuration=Release -p:Platform="Win64"

$call rm -rf demanddata.gdx

$call %dcomp% "%srcRoot%xp_example1dp.dproj" %flags%
$if errorlevel 1 $abort 'Problem compiling xp_example1dp.dpr'
$call ="%srcRoot%xp_example1dp" "%gams.sysdir%."
$if errorlevel 1 $abort 'Problem executing xp_example1dp writing GDX file'
$call gdxdiff demanddata.gdx demandwant.gdx
$if errorlevel 1 $abort 'Demanddata not as expected'
$call ="%srcRoot%xp_example1dp" "%gams.sysdir%." trnsport.gdx
$if errorlevel 1 $abort 'Problem executing xp_example1dp reading GDX file'