Description
Contributor: Lutz Westermann, October 2012
Small Model of Type : .Net
Category : GAMS API library
Main file : VBex2.gms
$title 'Test expert level VB.Net API to read and write GDX, set options and execute GAMS' (VBEX2,SEQ=20)
$onText
Contributor: Lutz Westermann, October 2012
$offText
$set srcRoot %gams.sysdir%apifiles%system.dirsep%VBNet%system.dirsep%
$if %system.platform% == WEX
$if not set flags $set flags /platform:x64
$call rm -rf demanddata.gdx
$call vbc.exe %flags% "%srcRoot%xp_example2.vb" "%srcRoot%api%system.dirsep%gdxvbnet.vb" "%srcRoot%api%system.dirsep%optvbnet.vb" "%srcRoot%api%system.dirsep%gamsglobals.vb" -out:xp_example2.exe
$if errorlevel 1 $abort 'Problem compiling xp_example2.vb'
$call xp_example2.exe "%gams.sysdir%." model2.gms
$if errorlevel 1 $abort 'Problem executing xp_example2 writing GDX file'
$call gdxdiff demanddata.gdx demandwant.gdx
$if errorlevel 1 $abort 'Demanddata not as expected'