DOex2.gms : Test expert level Delphi (object) API to read and write GDX, set options and execute GAMS

Description

Contributor: Lutz Westermann, October 2012


Small Model of Type : Delphi


Category : GAMS API library


Main file : DOex2.gms

$TITLE 'Test expert level Delphi (object) API to read and write GDX, set options and execute GAMS' (DOEX2,SEQ=16)

$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.buildcode% == VS8
$if not set flags $set flags  -t:rebuild -p:Configuration=Release -p:Platform="Win32"
$if %system.buildcode% == WEI
$if not set flags $set flags  -t:rebuild -p:Configuration=Release -p:Platform="Win64"

$call rm -rf demanddata.gdx

$call %dcomp% "%srcRoot%xp_example2.dproj" %flags%
$if errorlevel 1 $abort 'Problem compiling xp_example2.dpr'
$call ="%srcRoot%xp_example2" "%gams.sysdir%." model2.gms
$if errorlevel 1 $abort 'Problem executing xp_example2'
$call gdxdiff demanddata.gdx demandwant.gdx
$if errorlevel 1 $abort 'Demanddata not as expected'