Cgl 0.59.7

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClpParameters.hpp
Go to the documentation of this file.
1 /* $Id: ClpParameters.hpp 2046 2014-08-14 04:13:10Z tkr $ */
2 // Copyright (C) 2000, 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5
6 #ifndef _ClpParameters_H
7 #define _ClpParameters_H
8
12 enum ClpIntParam {
15 ClpMaxNumIteration = 0,
18 ClpMaxNumIterationHotStart,
37 ClpNameDiscipline,
40 ClpLastIntParam
41 };
42
43 enum ClpDblParam {
47 ClpDualObjectiveLimit,
51 ClpPrimalObjectiveLimit,
54 ClpDualTolerance,
57 ClpPrimalTolerance,
60 ClpObjOffset,
62 ClpMaxSeconds,
64 ClpMaxWallSeconds,
66 ClpPresolveTolerance,
69 ClpLastDblParam
70 };
71
72
73 enum ClpStrParam {
76 ClpProbName = 0,
79 ClpLastStrParam
80 };
81
83 template <class T> inline void
84 ClpDisjointCopyN( const T * array, const int size, T * newArray)
85 {
86 memcpy(reinterpret_cast<void *> (newArray), array, size * sizeof(T));
87 }
89 template <class T> inline void
90 ClpFillN( T * array, const int size, T value)
91 {
92 int i;
93 for (i = 0; i < size; i++)
94 array[i] = value;
95 }
97 template <class T> inline T*
98 ClpCopyOfArray( const T * array, const int size, T value)
99 {
100 T * arrayNew = new T[size];
101 if (array)
102 ClpDisjointCopyN(array, size, arrayNew);
103 else
104 ClpFillN ( arrayNew, size, value);
105 return arrayNew;
106 }
107
109 template <class T> inline T*
110 ClpCopyOfArray( const T * array, const int size)
111 {
112 if (array) {
113 T * arrayNew = new T[size];
114 ClpDisjointCopyN(array, size, arrayNew);
115 return arrayNew;
116 } else {
117 return NULL;
118 }
119 }
121 typedef struct {
122 int typeStruct; // allocated as 1,2 etc
123 int typeCall;
124 void * data;
125 } ClpTrustedData;
126 #endif
ClpPrimalTolerance
The maximum amount the primal constraints can be violated and still be considered feasible...
Definition: ClpParameters.hpp:57
ClpMaxNumIteration
The maximum number of iterations Clp can execute in the simplex methods.
Definition: ClpParameters.hpp:15
ClpIntParam
ClpIntParam
This is where to put any useful stuff.
Definition: ClpParameters.hpp:12
ClpDisjointCopyN
void ClpDisjointCopyN(const T *array, const int size, T *newArray)
Copy (I don&#39;t like complexity of Coin version)
Definition: ClpParameters.hpp:84
ClpDblParam
ClpDblParam
Definition: ClpParameters.hpp:43
ClpTrustedData
For a structure to be used by trusted code.
Definition: ClpParameters.hpp:121
ClpMaxSeconds
Maximum time in seconds - after, this action is as max iterations.
Definition: ClpParameters.hpp:62
ClpNameDiscipline
The name discipline; specifies how the solver will handle row and column names.
Definition: ClpParameters.hpp:37
ClpTrustedData::data
void * data
Definition: ClpParameters.hpp:124
ClpDualObjectiveLimit
Set Dual objective limit.
Definition: ClpParameters.hpp:47
ClpCopyOfArray
T * ClpCopyOfArray(const T *array, const int size, T value)
This returns a non const array filled with input from scalar or actual array.
Definition: ClpParameters.hpp:98
ClpTrustedData::typeCall
int typeCall
Definition: ClpParameters.hpp:123
ClpDualTolerance
The maximum amount the dual constraints can be violated and still be considered feasible.
Definition: ClpParameters.hpp:54
ClpLastIntParam
Just a marker, so that we can allocate a static sized array to store parameters.
Definition: ClpParameters.hpp:40
ClpStrParam
ClpStrParam
Definition: ClpParameters.hpp:73
ClpObjOffset
Objective function constant.
Definition: ClpParameters.hpp:60
ClpFillN
void ClpFillN(T *array, const int size, T value)
And set.
Definition: ClpParameters.hpp:90
ClpTrustedData::typeStruct
int typeStruct
Definition: ClpParameters.hpp:122
ClpPrimalObjectiveLimit
Primal objective limit.
Definition: ClpParameters.hpp:51
ClpLastDblParam
Just a marker, so that we can allocate a static sized array to store parameters.
Definition: ClpParameters.hpp:69
ClpMaxWallSeconds
Maximum wallclock running time in seconds - after, this action is as max iterations.
Definition: ClpParameters.hpp:64
ClpMaxNumIterationHotStart
The maximum number of iterations Clp can execute in hotstart before terminating.
Definition: ClpParameters.hpp:18
ClpProbName
Name of the problem.
Definition: ClpParameters.hpp:76
ClpPresolveTolerance
Tolerance to use in presolve.
Definition: ClpParameters.hpp:66
ClpLastStrParam
Just a marker, so that we can allocate a static sized array to store parameters.
Definition: ClpParameters.hpp:79