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, gmsWS);
GAMSVariable GetVariable(string variableIdentifier)
GAMSSet AddSet(string identifier, int dimension, string explanatoryText="", SetType setType=SetType.multi)
GAMSParameter GetParameter(string parameterIdentifier)
GAMSSet GetSet(string setIdentifier)
void Dispose()
GAMSParameter AddParameter(string identifier, int dimension, string explanatoryText="")
void Export(string filePath=null)
GAMSExitCode eRC
GAMSDatabase OutDB
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
Dictionary< string, string > Defines
double Value
new GAMSParameterRecord AddRecord(params string[] keys)
string Text
new GAMSSetRecord AddRecord(params string[] keys)
new GAMSSetRecord FirstRecord()
new GAMSSetRecord FindRecord(params string[] keys)
string Key(int index)
double Level
new GAMSVariableRecord FindRecord(params string[] keys)
GAMSJob AddJobFromString(string gamsSource, GAMSCheckpoint checkpoint=null, string jobName=null)
GAMSDatabase AddDatabase(string databaseName=null, string inModelName=null)
GAMSOptions AddOptions(GAMSOptions optFrom=null)
GAMSExitCode
Definition: GMSWarehouse.cs:6