#include <수송.h>
풀릭 메소드 | |
| 운송 (슬롯 나라::GAMSWorkspacews) | |
| 교통 문제. | |
| 무효 | 실행 (슬롯 나라::GAMSCheckpoint체크포인트, std::ostream 및 출력) |
| trnsport 모델을 실행합니다. | |
| 슬롯 나라::GAMSSet | i() const |
| i(i): 통조림 공장 | |
| 슬롯 나라::GAMSSet | j() const |
| j(j): 시장 | |
| 슬롯 나라::슬롯 나라매개변수 | a() const |
| a(i): 경우에 따라 공장 i의 용량 | |
| 슬롯 나라::슬롯 나라매개변수 | b() const |
| b(i): 경우에 따라 시장 j의 수요 | |
| 슬롯 나라::슬롯 나라매개변수 | d() const |
| d(i,j): 거리(천 마일) | |
| 슬롯 나라::슬롯 나라매개변수 | f() const |
| f: 천 마일당 케이스당 화물(달러) | |
| 슬롯 나라::슬롯 나라변수 | x() const |
| x(i,j): 케이스의 배송 수량 | |
| 슬롯 나라::슬롯 나라변수 | z() const |
| z: 총 운송 비용(단위: 수천 달러) | |
| 슬롯 나라::GAMSOptions | 선택() const |
| trnsport 모델 실행을 위한 옵션. | |
상세 설명
생성자
◆ 수송()
| 운송::운송 | ( | 슬롯 나라::GAMSWorkspace | ws | ) |
교통 문제.
라인 정의35파일transport.cpp.
36: fws(ws)
37, 직업(fws.addJobFromString(getModelSource()))
38, fopt(fws.추가옵션())
39{
40fws = ws;
41fopt = ws.추가옵션();
42
45
49
56
57직업 = ws.addJobFromString(getModelSource());
58}
GAMSSet addSet(const std::string &name, const int 차원, const std::string &explanatoryText="", GAMSEnum::SetType setType=GAMSEnum::SetType::Multi)
GAMSParameter addParameter(const std::string &name, const int 차원, const std::string &explanatoryText="")
void setAllModelTypes(const std::string &solver)
void setDefine(const std::string &key, const std::string &value)
void setSolveLink(const GAMSOptions::ESolveLink::ESolveLinkEnum value)
GAMSOptions addOptions()
GAMSJob addJobFromString(const std::string &gamsSource, const std::string &jobName="")
GAMSDatabase addDatabase(const std::string &databaseName="", const std::string &inModelName="")
방법
◆ a()
|
인라인 |
◆ b()
|
인라인 |
◆ d()
|
인라인 |
◆ f()
|
인라인 |
◆ i()
|
인라인 |
◆ j()
|
인라인 |
◆ 선택()
|
인라인 |
◆ 실행()
| void Transport::run | ( | 슬롯 나라::GAMSCheckpoint | 체크포인트, |
| std::ostream & | 출력 ) |
trnsport 모델을 실행합니다.
61{
66
67벡터<GAMSDatabase> dbs fDbIn1, fDbIn2;
69
73}
bool checkDomains()
GAMSVariable getVariable(const std::string &name)
void run()
std::string getDefine(const std::string &key)
GAMSDatabase addDatabaseFromGDX(const std::string &gdxFileName, const std::string &databaseName, const std::string &inModelName)
참조자메인().
◆ x()
|
인라인 |
◆ z()
|
인라인 |
이 클래스에 대한 문서는 다음 파일에서 생성되었습니다: