FREE DEMO
SEARCH
Products
GAMS - The Modeling Language
GAMS MIRO
GAMS Engine
Documentation
GAMS
MIRO
Engine
Download
GAMS
MIRO
Engine
Support
Sales
Regular Price List
Academic Price List
Get a Quote
Get Maintenance
Buy Extended Support
Community
Sign-up for our Newsletter
Case Studies
The GAMSWORLD Forum
Meet us at a Conference
Read our GAMS Blog
Visit a GAMS Webinar
Take a GAMS Course
About Us
Company Information
The GAMS team
Career
Openings
Internships
Advisory Board
Search
×
Search
Case sensitive
Match whole word
GAMS Documentation
Model Library
MIRO Documentation
ENGINE Documentation
Website & Blog
All
User's Guide
Solvers
Tools
APIs
Release Notes
All
Model
Test
Data
EMP
API
FIN
NOA
PSOPT
42 (beta)
41 (latest)
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25.1
Version:
Documentation
Preface
Release Notes
Installation and Licensing
Tutorials and Examples
GAMS Language and Environment
Solver Manuals
Tools Manuals
Application Programming Interfaces
Glossary
Bibliograhpy
Model Libraries
GAMS Model Library
GAMS Test Library
GAMS Data Library
GAMS EMP Library
GAMS API Library
FIN Library
NOA Library
PSOPT Library
Index
Help
Hide Table of Contents
transport
transport.h
Go to the documentation of this file.
1
/*
2
*
3
* GAMS - General Algebraic Modeling System C++ API
4
*
5
* Copyright (c) 2017-2022 GAMS Software GmbH <support@gams.com>
6
* Copyright (c) 2017-2022 GAMS Development Corp. <support@gams.com>
7
*
8
* Permission is hereby granted, free of charge, to any person obtaining a copy
9
* of this software and associated documentation files (the "Software"), to deal
10
* in the Software without restriction, including without limitation the rights
11
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
* copies of the Software, and to permit persons to whom the Software is
13
* furnished to do so, subject to the following conditions:
14
*
15
* The above copyright notice and this permission notice shall be included in all
16
* copies or substantial portions of the Software.
17
*
18
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
* SOFTWARE.
25
*/
26
27
#ifndef TRANSPORT_H
28
#define TRANSPORT_H
29
30
#include "gams.h"
31
32
#include <ostream>
33
#include <string>
34
37
class
Transport
38
{
39
public
:
41
Transport(
gams::GAMSWorkspace
ws);
42
44
void
run(
gams::GAMSCheckpoint
checkpoint, std::ostream &output);
45
47
gams::GAMSSet
i()
const
48
{
49
return
fi;
50
}
51
53
gams::GAMSSet
j()
const
54
{
55
return
fj;
56
}
57
59
gams::GAMSParameter
a()
const
60
{
61
return
fa;
62
}
63
65
gams::GAMSParameter
b()
const
66
{
67
return
fb;
68
}
69
71
gams::GAMSParameter
d()
const
72
{
73
return
fd;
74
}
75
77
gams::GAMSParameter
f()
const
78
{
79
return
ff;
80
}
81
83
gams::GAMSVariable
x()
const
84
{
85
return
fx;
86
}
87
89
gams::GAMSVariable
z()
const
90
{
91
return
fz;
92
}
93
95
gams::GAMSOptions
opt()
const
96
{
97
return
fopt;
98
}
99
100
private
:
102
std::string getModelSource();
103
104
private
:
105
gams::GAMSWorkspace
fws;
106
gams::GAMSDatabase
fDbIn1, fDbIn2, fDbOut1;
107
gams::GAMSJob
job;
108
109
gams::GAMSSet
fi, fj;
110
gams::GAMSParameter
fa, fb, fd, ff;
111
gams::GAMSVariable
fx, fz;
112
gams::GAMSOptions
fopt;
113
};
114
115
#endif // TRANSPORT_H
gams::GAMSWorkspace
gams::GAMSSet
gams::GAMSCheckpoint
gams::GAMSVariable
gams::GAMSParameter
gams::GAMSJob
gams::GAMSOptions
gams::GAMSDatabase