Optimizer Class Reference
#include <optimizer.h>
Pulic Methods | |
Optimizer (int argc, char *argv[]) | |
Initialize workspace. | |
double | solve (double mult) |
Create database and execute a job. | |
Detailed Description
Definition at line 34 of file optimizer.h.
Constructors
◆ Optimizer()
Optimizer::Optimizer | ( | int | argc, |
char * | argv[] ) |
Initialize workspace.
Definition at line 35 of file optimizer.cpp.
36{
37 GAMSWorkspaceInfo wsInfo;
38 if (argc > 1)
39 wsInfo.setSystemDirectory(argv[1]);
40 ws = GAMSWorkspace(wsInfo);
41}
void setSystemDirectory(const std::string &systemDir)
Methods
◆ solve()
double Optimizer::solve | ( | double | mult | ) |
Create database and execute a job.
Definition at line 43 of file optimizer.cpp.
44{
46
49
51
54 gModJob.run(gOption, gDb);
55
57}
GAMSParameter addParameter(const std::string &name, const int dimension, const std::string &explanatoryText="")
std::string name()
GAMSVariable getVariable(const std::string &name)
GAMSDatabase outDB()
void run()
void setDefine(const std::string &key, const std::string &value)
void setValue(const double val)
GAMSParameterRecord addRecord(const std::vector< std::string > &keys)
double level()
GAMSVariableRecord firstRecord(const std::vector< std::string > &slice)
GAMSOptions addOptions()
GAMSJob addJobFromString(const std::string &gamsSource, const std::string &jobName="")
GAMSDatabase addDatabase(const std::string &databaseName="", const std::string &inModelName="")
Referenced by run().
The documentation for this class was generated from the following files: