Transport12.cs
20 static void GUSSCall(GAMSSet dict, GAMSModelInstance mi, string solveStatement, GAMSOptions opt = null, GAMSModelInstanceOpt miOpt = null, TextWriter output=null)
22 List<Tuple<GAMSModifier, GAMSParameter>> modifierList = new List<Tuple<GAMSModifier, GAMSParameter>>();
44 else if ((rec.Key(1).ToLower() == "lower") || (rec.Key(1).ToLower() == "upper") || (rec.Key(1).ToLower() == "fixed"))
60 (new GAMSModifier(modifierVar, UpdateAction.Lower, mi.SyncDB.AddParameter(rec.Key(2), modifierDim, "")),
64 (new GAMSModifier(modifierVar, UpdateAction.Upper, mi.SyncDB.AddParameter(rec.Key(2), modifierDim, "")),
68 (new GAMSModifier(modifierVar, UpdateAction.Fixed, mi.SyncDB.AddParameter(rec.Key(2), modifierDim, "")),
84 List<Tuple<GAMSSymbol, GAMSParameter, string>> outList = new List<Tuple<GAMSSymbol, GAMSParameter, string>>();
128 outList.Add(new Tuple<GAMSSymbol, GAMSParameter, string>(mi.SyncDB.GetSymbol(rec.Key(0)), dict.GAMSDatabase.GetParameter(rec.Key(2)), rec.Key(1).ToLower()));
GAMSModelInstance AddModelInstance(string modelInstanceName=null)
GAMSVariable GetVariable(string variableIdentifier)
GAMSSet AddSet(string identifier, int dimension, string explanatoryText="", SetType setType=SetType.multi)
GAMSParameter GetParameter(string parameterIdentifier)
GAMSSet GetSet(string setIdentifier)
GAMSVariable AddVariable(string identifier, int dimension, VarType varType, string explanatoryText="")
GAMSParameter AddParameter(string identifier, int dimension, string explanatoryText="")
GAMSSymbol GetSymbol(string symbolIdentifier)
double Level
double Marginal
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
GAMSDatabase SyncDB
void Solve(SymbolUpdateType updateType=SymbolUpdateType.BaseCase, TextWriter output=null, GAMSModelInstanceOpt miOpt=null)
void Instantiate(string modelDefinition, params GAMSModifier[] modifiers)
SymbolUpdateType
double Value
new GAMSParameterRecord FirstRecord()
new GAMSParameterRecord AddRecord(params string[] keys)
new GAMSSetRecord AddRecord(params string[] keys)
new GAMSSetRecord FirstRecord()
string Key(int index)
bool MoveNext()
string[] Keys
int Dim
GAMSDatabase GAMSDatabase
string Name
bool Clear()
double Level
double Marginal
GAMSJob AddJobFromString(string gamsSource, GAMSCheckpoint checkpoint=null, string jobName=null)
GAMSDatabase AddDatabase(string databaseName=null, string inModelName=null)
GAMSCheckpoint AddCheckpoint(string checkpointName=null)
This is the 12th model in a series of tutorial examples. Here we show: How to implement a GUSS approa...
Definition: Transport12.cs:18
UpdateAction
VarType
Definition: Transport1.cs:8