CSCutstock.gms : Test object oriented C# API using a cutting stock example

Description

Contributor: Lutz Westermann, October 2012


Small Model of Type : .Net


Category : GAMS API library


Main file : CSCutstock.gms

$title 'Test object oriented C# API using a cutting stock example' (CSCUTSTOCK,SEQ=29)

$onText
Contributor: Lutz Westermann, October 2012
$offText


$set srcRoot %gams.sysdir%api%system.dirsep%dotnet%system.dirsep%examples%system.dirsep%control%system.dirsep%csharp%system.dirsep%

$escape &

$if %system.platform% == WEX $set PLATFORM x64
$if %system.platform% == LAX $set PLATFORM arm64
$if %system.platform% == LEX $set PLATFORM x64
$if %system.platform% == DEX $set PLATFORM x64
$if %system.platform% == DAX $set PLATFORM arm64

* 1. Build and run GMSCutstock
$call dotnet run --project "%srcRoot%GMSCutstock%system.dirsep%GMSCutstock.csproj" -c Release -p:Platform=%PLATFORM% -- "%gams.sysdir%."
$if errorlevel 1 $abort 'Problem executing GMSCutstock'

* 2. Build and run SimpleCutstock
$call dotnet run --project "%srcRoot%SimpleCutstock%system.dirsep%SimpleCutstock.csproj" -c Release -p:Platform=%PLATFORM% -- "%gams.sysdir%."
$if errorlevel 1 $abort 'Problem executing SimpleCutstock'