CYCLUS
|
a helper class to translate a product exchange into a mathematical program.
use as follows:
Definition at line 38 of file prog_translator.h.
#include <prog_translator.h>
Classes | |
struct | Context |
Public Member Functions | |
const ProgTranslatorContext & | ctx () const |
void | FromProg () |
void | Populate () |
ProgTranslator (ExchangeGraph *g, OsiSolverInterface *iface) | |
ProgTranslator (ExchangeGraph *g, OsiSolverInterface *iface, bool exclusive) | |
ProgTranslator (ExchangeGraph *g, OsiSolverInterface *iface, bool exclusive, double pseudo_cost) | |
ProgTranslator (ExchangeGraph *g, OsiSolverInterface *iface, double pseudo_cost) | |
void | ToProg () |
void | Translate () |
cyclus::ProgTranslator::ProgTranslator | ( | ExchangeGraph * | g, |
OsiSolverInterface * | iface ) |
constructor
g | the exchange graph |
iface | the solver interface |
exclusive | whether or not to include binary-valued arcs |
pseudo_cost | the cost to use for faux arcs |
Definition at line 16 of file prog_translator.cc.
cyclus::ProgTranslator::ProgTranslator | ( | ExchangeGraph * | g, |
OsiSolverInterface * | iface, | ||
bool | exclusive ) |
Definition at line 24 of file prog_translator.cc.
cyclus::ProgTranslator::ProgTranslator | ( | ExchangeGraph * | g, |
OsiSolverInterface * | iface, | ||
double | pseudo_cost ) |
Definition at line 33 of file prog_translator.cc.
cyclus::ProgTranslator::ProgTranslator | ( | ExchangeGraph * | g, |
OsiSolverInterface * | iface, | ||
bool | exclusive, | ||
double | pseudo_cost ) |
Definition at line 42 of file prog_translator.cc.
|
inline |
Definition at line 73 of file prog_translator.h.
void cyclus::ProgTranslator::FromProg | ( | ) |
translates solution from iface back into graph matches
Definition at line 219 of file prog_translator.cc.
void cyclus::ProgTranslator::Populate | ( | ) |
populates the solver interface with values from the translators Context
Definition at line 104 of file prog_translator.cc.
void cyclus::ProgTranslator::ToProg | ( | ) |
translates graph into mathematic program via iface.
This method is equivalent to calling Translate(), then Populate().
Definition at line 124 of file prog_translator.cc.
void cyclus::ProgTranslator::Translate | ( | ) |
translates the graph, filling the translators Context
Definition at line 72 of file prog_translator.cc.