#include <옵티마이저.h>
풀릭 메소드 | |
| 최적화자(int argc, char *argv[]) | |
| 작업공간을 초기화합니다. | |
| 더블 | 해결(이중 다중) |
| 데이터베이스를 생성하고 작업을 실행합니다. | |
상세 설명
생성자
◆ 최적화기()
| 최적화자::최적화자 | ( | int | argc, |
| 문자 * | argv[] ) |
작업공간을 초기화합니다.
라인 정의35파일optimizer.cpp.
36{
37 GAMSWorkspaceInfowsInfo;
38 if(인수 > 1)
39wsInfo.setSystemDirectory(argv[1]);
40ws =슬롯 게임작업공간(wsInfo);
41}
void setSystemDirectory(const std::string &systemDir)
방법
◆ 해결()
| 더블 옵티마이저::solve | ( | 더블 | 다중 | ) |
데이터베이스를 생성하고 작업을 실행합니다.
라인 정의43파일optimizer.cpp.
44{
46
49
51
54gModJob.실행(gOption, gDb);
55
57}
GAMSParameter addParameter(const std::string &name, const int 차원, const std::string &explanatoryText="")
std::문자열 이름()
GAMSVariable getVariable(const std::string &name)
슬롯 게임데이터베이스 outDB()
void run()
void setDefine(const std::string &key, const std::string &value)
void setValue(const double val)
GAMSParameterRecord addRecord(const std::벡터< std::string > &keys)
GAMSVariableRecord firstRecord(const std::벡터< 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="")
참조자실행().
이 클래스에 대한 문서는 다음 파일에서 생성되었습니다: