Transport12.java
115 static void GUSSCall(GAMSSet dict, GAMSModelInstance mi, String solveStatement, GAMSOptions opt, GAMSModelInstanceOpt miOpt, PrintStream output)
132 int modifierDim = dict.getDatabase().getParameter(rec.getKey(2)).getDimension() - scenSymbol.getDimension();
145 int modifierDim = (int) (dict.getDatabase().getParameter(rec.getKey(2)).getDimension() - scenSymbol.getDimension());
157 GAMSModifier mod = new GAMSModifier(modifierVar, GAMSGlobals.UpdateAction.LOWER, mi.SyncDB().addParameter(rec.getKey(2), modifierDim, ""));
165 GAMSModifier mod = new GAMSModifier(modifierVar, GAMSGlobals.UpdateAction.UPPER, mi.SyncDB().addParameter(rec.getKey(2), modifierDim, ""));
172 GAMSModifier mod = new GAMSModifier(modifierVar, GAMSGlobals.UpdateAction.FIXED, mi.SyncDB().addParameter(rec.getKey(2), modifierDim, ""));
179 else if ((rec.getKey(1).toLowerCase().equals("level")) || (rec.getKey(1).toLowerCase().equals( "marginal")))
242 if ((rec.getKey(1).toLowerCase().equals("level")) || (rec.getKey(1).toLowerCase().equals("marginal")))
258 String[] myKeys = new String[scenSymbol.getDimension() + symbol.getFirstRecord().getKeys().length];
GAMSModelInstance addModelInstance()
GAMSVariable addVariable(String identifier, int dimension, GAMSGlobals.VarType varType)
GAMSParameter getParameter(String identifier)
GAMSSet addSet(String identifier, int dimension)
GAMSParameter addParameter(String identifier, int dimension)
GAMSSymbol<?> getSymbol(String identifier)
GAMSVariable getVariable(String identifier)
GAMSSet getSet(String identifier)
GAMSDatabase OutDB()
void run()
GAMSDatabase SyncDB()
void solve()
void instantiate(String modelDefinition, GAMSModifier ... modifiers)
GAMSParameter getDataSymbol()
GAMSSymbol<?> getGamsSymbol()
void setValue(double value)
double getValue()
String getKey(int index)
boolean moveNext()
GAMSDatabase getDatabase()
boolean clear()
T getFirstRecord()
String getName()
int getDimension()
T addRecord(Vector< String > keys)
void setSystemDirectory(String directory)
void setWorkingDirectory(String directory)
GAMSJob addJobFromString(String source)
GAMSCheckpoint addCheckpoint()
GAMSDatabase addDatabase()
This example demonstrates how to implement a GUSS approach using the GAMS Java API and the GAMS [trns...
Definition: Transport12.java:35
Provides package namespace for Java interface and examples to General Algebraic Model System (GAMS).