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 (latest)
41
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
transport14
optimizer.h
Go to the documentation of this file.
1
/*
2
* GAMS - General Algebraic Modeling System C++ API
3
*
4
* Copyright (c) 2017-2022 GAMS Software GmbH <support@gams.com>
5
* Copyright (c) 2017-2022 GAMS Development Corp. <support@gams.com>s
6
*
7
* Permission is hereby granted, free of charge, to any person obtaining a copy
8
* of this software and associated documentation files (the "Software"), to deal
9
* in the Software without restriction, including without limitation the rights
10
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
* copies of the Software, and to permit persons to whom the Software is
12
* furnished to do so, subject to the following conditions:
13
*
14
* The above copyright notice and this permission notice shall be included in all
15
* copies or substantial portions of the Software.
16
*
17
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
* SOFTWARE.
24
*/
25
#ifndef OPTIMIZER_H
26
#define OPTIMIZER_H
27
28
#include "gams.h"
29
30
#include <string>
31
34
class
Optimizer
35
{
36
public
:
38
Optimizer(
int
argc,
char
*argv[]);
39
41
double
solve(
double
mult);
42
43
private
:
45
std::string getModelText();
46
47
private
:
48
49
gams::GAMSWorkspace
ws;
50
};
51
52
#endif // OPTIMIZER_H
gams::GAMSWorkspace