GMSWarehouse.cs
19 private static void SolveWarehouse(GAMSWorkspace gmsWS, int NumberOfWarehouses, GAMSDatabase result, Object dbMutex)
38 result.GetParameter("objrep").AddRecord(NumberOfWarehouses.ToString()).Value = gmsJ.OutDB.GetVariable("obj").FindRecord().Level;
43 result.GetSet("supplyMap").AddRecord(NumberOfWarehouses.ToString(), supplyRec.Key(0), supplyRec.Key(1));
50 statusString = gmsJ.OutDB.GetSet("res").FindRecord(gmsJ.OutDB.GetSet("ares").FirstRecord().Key(0)).Text;
85 System.Threading.Tasks.Parallel.For(10, 22, delegate(int i) { SolveWarehouse(gmsWS, i, resultDB, dbLock); });
88 throw new GAMSExceptionExecution("Error when running GAMS: " + (GAMSExitCode)status + " " + statusString, status);
double OptCR
string Key(int index)
new GAMSSetRecord AddRecord(params string[] keys)
Dictionary< string, string > Defines
new GAMSParameterRecord AddRecord(params string[] keys)
Definition: GMSWarehouse.cs:6
GAMSDatabase OutDB
GAMSExitCode eRC
GAMSParameter GetParameter(string parameterIdentifier)
void Dispose()
string AllModelTypes
string Text
new GAMSVariableRecord FindRecord(params string[] keys)
GAMSOptions AddOptions(GAMSOptions optFrom=null)
GAMSExitCode
double Value
double Level
GAMSSet GetSet(string setIdentifier)
new GAMSSetRecord FirstRecord()
GAMSVariable GetVariable(string variableIdentifier)
GAMSJob AddJobFromString(string gamsSource, GAMSCheckpoint checkpoint=null, string jobName=null)
void Export(string filePath=null)
GAMSParameter AddParameter(string identifier, int dimension, string explanatoryText="")
new GAMSSetRecord FindRecord(params string[] keys)
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
GAMSDatabase AddDatabase(string databaseName=null, string inModelName=null)
GAMSSet AddSet(string identifier, int dimension, string explanatoryText="", SetType setType=SetType.multi)