#include <transport.h>
Pulic Methods | |
Transport (gams::GAMSWorkspace ws) | |
A Transportation Problem. | |
void | run (gams::GAMSCheckpoint checkpoint, std::ostream &output) |
Executes the trnsport model. | |
gams::GAMSSet | i () const |
i(i): canning plants | |
gams::GAMSSet | j () const |
j(j): markets | |
gams::GAMSParameter | a () const |
a(i): capacity of plant i in cases | |
gams::GAMSParameter | b () const |
b(i): demand at market j in cases | |
gams::GAMSParameter | d () const |
d(i,j): distance in thousands of miles | |
gams::GAMSParameter | f () const |
f: freight in dollars per case per thousand miles | |
gams::GAMSVariable | x () const |
x(i,j): shipment quantities in cases | |
gams::GAMSVariable | z () const |
z: total transportation costs in thousands of dollars | |
gams::GAMSOptions | opt () const |
Options for the execution of the trnsport model. | |
Detailed Description
Definition at line 36 of file transport.h.
Constructors
◆ Transport()
Transport::Transport | ( | gams::GAMSWorkspace | ws | ) |
A Transportation Problem.
Definition at line 35 of file transport.cpp.
Methods
◆ a()
|
inline |
a(i): capacity of plant i in cases
Definition at line 58 of file transport.h.
Referenced by main().
◆ b()
|
inline |
b(i): demand at market j in cases
Definition at line 64 of file transport.h.
Referenced by main().
◆ d()
|
inline |
d(i,j): distance in thousands of miles
Definition at line 70 of file transport.h.
Referenced by main().
◆ f()
|
inline |
f: freight in dollars per case per thousand miles
Definition at line 76 of file transport.h.
Referenced by main().
◆ i()
|
inline |
i(i): canning plants
Definition at line 46 of file transport.h.
Referenced by main().
◆ j()
|
inline |
j(j): markets
Definition at line 52 of file transport.h.
Referenced by main().
◆ opt()
|
inline |
Options for the execution of the trnsport model.
Definition at line 94 of file transport.h.
Referenced by main().
◆ run()
void Transport::run | ( | gams::GAMSCheckpoint | checkpoint, |
std::ostream & | output ) |
Executes the trnsport model.
Definition at line 60 of file transport.cpp.
Referenced by main().
◆ x()
|
inline |
x(i,j): shipment quantities in cases
Definition at line 82 of file transport.h.
Referenced by main().
◆ z()
|
inline |
z: total transportation costs in thousands of dollars
Definition at line 88 of file transport.h.
Referenced by main().
The documentation for this class was generated from the following files: