transport8.cpp
Go to the documentation of this file.
36void scenSolve(GAMSWorkspace* ws, GAMSCheckpoint* cp, vector<double>* bmultVector, std::mutex* vectorMutex, std::mutex* ioMutex)
45 // instantiate the GAMSModelInstance and pass a model definition and GAMSModifier to declare bmult mutable
54 // dynamically get a bmult value from the vector instead of passing it to the different threads at creation time
150 v.emplace_back([&ws, &cp, &bmultVector, &vectorMutex, &ioMutex] {scenSolve(&ws, &cp, &bmultVector, &vectorMutex, &ioMutex);});
GAMSModelInstance addModelInstance(const std::string &modelInstanceName="")
GAMSParameter addParameter(const std::string &name, const int dimension, const std::string &explanatoryText="")
GAMSVariable getVariable(const std::string &name)
void solve(GAMSEnum::SymbolUpdateType updateType, std::ostream &output, GAMSModelInstanceOpt miOpt)
void instantiate(const std::string &modelDefinition, const gams::GAMSOptions &options, const std::vector< gams::GAMSModifier > &modifiers={ })
GAMSEnum::SolveStat solveStatus()
GAMSEnum::ModelStat modelStatus()
GAMSDatabase syncDb()
void setAllModelTypes(const std::string &solver)
void setValue(const double val)
GAMSParameterRecord firstRecord(const std::vector< std::string > &slice)
GAMSParameterRecord addRecord(const std::vector< std::string > &keys)
double level()
GAMSVariableRecord findRecord(const std::vector< std::string > &keys)
void setSystemDirectory(std::string systemDir)
GAMSOptions addOptions()
void scenSolve(GAMSWorkspace *ws, GAMSCheckpoint *cp, vector< double > *bmultVector, std::mutex *vectorMutex, std::mutex *ioMutex)
Solve the model in different scenarios.
Definition: transport8.cpp:36