#include <OSosrl2gams.hpp>
Public Member Functions | |
OSrL2Gams (struct gmoRec *gmo_) | |
Constructor. | |
~OSrL2Gams () | |
Destructor. | |
void | writeSolution (OSResult &osresult) |
Writes a solution into a GMO with the result given as OSResult object. | |
void | writeSolution (std::string &osrl) |
Writes a solution into a GMO with the result given as osrl string. | |
Private Attributes | |
gmoRec * | gmo |
gevRec * | gev |
Definition at line 20 of file OSosrl2gams.hpp.
OSrL2Gams::OSrL2Gams | ( | struct gmoRec * | gmo_ | ) |
Constructor.
gmo_ | GMO handler. |
OSrL2Gams::~OSrL2Gams | ( | ) | [inline] |
void OSrL2Gams::writeSolution | ( | OSResult & | osresult | ) |
Writes a solution into a GMO with the result given as OSResult object.
osresult | Optimization result as object. |
Definition at line 32 of file OSosrl2gams.cpp.
References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, OSResult::general, OSResult::getConstraintNumber(), OSResult::getGeneralMessage(), OSResult::getGeneralStatusType(), OSResult::getSolutionNumber(), OSResult::getSolutionStatusType(), OSResult::getVariableNumber(), gev, gmo, OtherVarResult::idx, VarValue::idx, DualVarValue::idx, OtherVariableResult::name, DualVariableValues::numberOfCon, VariableSolution::numberOfOtherVariableResults, OtherVariableResult::numberOfVar, VariableValues::numberOfVar, OSResult::optimization, osresult, VariableSolution::other, SMAG_DBL_NA, OptimizationResult::solution, OtherVarResult::value, VarValue::value, DualVarValue::value, VariableSolution::values, OtherVariableResult::var, VariableValues::var, and OptimizationSolution::variables.
Referenced by writeSolution().
void OSrL2Gams::writeSolution | ( | std::string & | osrl | ) |
Writes a solution into a GMO with the result given as osrl string.
osrl | Optimization result as string. |
Definition at line 185 of file OSosrl2gams.cpp.
References ErrorClass::errormsg, gev, gmo, osresult, OSrLReader::readOSrL(), and writeSolution().
struct gmoRec* OSrL2Gams::gmo [private] |
struct gevRec* OSrL2Gams::gev [private] |