Transport13.java
38 distance.put( new Vector<String>( Arrays.asList(new String[]{"Seattle", "New-York"}) ), Double.valueOf(2.5));
39 distance.put( new Vector<String>( Arrays.asList(new String[]{"Seattle", "Chicago"}) ), Double.valueOf(1.7));
40 distance.put( new Vector<String>( Arrays.asList(new String[]{"Seattle", "Topeka"}) ), Double.valueOf(1.8));
41 distance.put( new Vector<String>( Arrays.asList(new String[]{"San-Diego", "New-York"}) ), Double.valueOf(2.5));
42 distance.put( new Vector<String>( Arrays.asList(new String[]{"San-Diego", "Chicago"}) ), Double.valueOf(1.8));
43 distance.put( new Vector<String>( Arrays.asList(new String[]{"San-Diego", "Topeka"}) ), Double.valueOf(1.4));
85 System.out.println("x(" + rec.getKey(0) + "," + rec.getKey(1) + "): level=" + rec.getLevel() + " marginal=" + rec.getMarginal());
void setAllModelTypes(String value)
void setValue(double value)
T getFirstRecord()
T addRecord(Vector< String > keys)
double getLevel()
void setSystemDirectory(String directory)
void setWorkingDirectory(String directory)
This example demonstrates how to run a job via the wrapper model of a GAMS [trnsport] from the transp...
Definition: Transport13.java:19
This example shows the wrapper model of a transportation problem based on the simple GAMS [trnsport] ...
Definition: TransportModel.java:20
GAMSOptions getopt()
Options for the execution of the trnsport model.
Definition: TransportModel.java:118
GAMSParameter getf()
f: freight in dollars per case per thousand miles
Definition: TransportModel.java:109
GAMSVariable getz()
z: total transportation costs in thousands of dollars
Definition: TransportModel.java:115
Provides package namespace for Java interface and examples to General Algebraic Model System (GAMS).