2using System.Collections.Generic;
16 static int Main(
string[] args)
21 if (Environment.GetCommandLineArgs().Length > 1)
22 ws =
new GAMSWorkspace(systemDirectory: Environment.GetCommandLineArgs()[1]);
40 if (GUndef != gamsglobals.sv_valund)
41 throw new Exception(
"GUndef not as expected: " + GUndef);
43 if (!
double.IsNaN(GNA))
44 throw new Exception(
"GNA not as expected: " + GNA);
46 if (!
double.IsPositiveInfinity(GPInf))
47 throw new Exception(
"GPInf not as expected: " + GPInf);
49 if (!
double.IsNegativeInfinity(GMInf))
50 throw new Exception(
"GMInf not as expected: " + GMInf);
52 if (GEps !=
double.Epsilon)
53 throw new Exception(
"GEps not as expected: " + GEps);
57 Console.WriteLine(
"###");
58 Console.WriteLine(
"### Exception caught:" + e.Message);
59 Console.WriteLine(
"###");
65 static String GetModel()
81$load dotNetUndef dotNetNA dotNetPInf dotNetMInf dotNetEps
87abort$(GUndef <> dotNetUndef) 'dotNetUndef not as expected', GUndef, dotNetUndef;
88abort$(GNA <> dotNetNA ) 'dotNetNA not as expected', GNA, dotNetNA;
89abort$(GPInf <> dotNetPInf ) 'dotNetPInf not as expected', GPInf, dotNetPInf;
90abort$(GMInf <> dotNetMInf ) 'dotNetMInf not as expected', GMInf, dotNetMInf;
91abort$(GEps <> dotNetEps ) 'dotNetEps not as expected', GEps, dotNetEps;
GAMSParameter GetParameter(string parameterIdentifier)
GAMSParameter AddParameter(string identifier, int dimension, string explanatoryText="")
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
new GAMSParameterRecord FirstRecord()
new GAMSParameterRecord AddRecord(params string[] keys)
GAMSJob AddJobFromString(string gamsSource, GAMSCheckpoint checkpoint=null, string jobName=null)
GAMSDatabase AddDatabase(string databaseName=null, string inModelName=null)