Clp
1.17.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Clp
src
ClpParameters.hpp
Go to the documentation of this file.
1
/* $Id$ */
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
enum
ClpStrParam
{
75
ClpProbName
= 0,
78
ClpLastStrParam
79
};
80
82
template
<
class
T >
83
inline
void
84
ClpDisjointCopyN
(
const
T *array,
const
CoinBigIndex size, T *newArray)
85
{
86
memcpy(
reinterpret_cast<
void
*
>
(newArray), array, size *
sizeof
(T));
87
}
88
89
template
<
class
T >
90
inline
void
91
ClpFillN
(T *array,
const
CoinBigIndex size, T value)
92
{
93
CoinBigIndex i;
94
for
(i = 0; i < size; i++)
95
array[i] = value;
96
}
97
98
template
<
class
T >
99
inline
T *
100
ClpCopyOfArray
(
const
T *array,
const
CoinBigIndex size, T value)
101
{
102
T *arrayNew =
new
T[size];
103
if
(array)
104
ClpDisjointCopyN
(array, size, arrayNew);
105
else
106
ClpFillN
(arrayNew, size, value);
107
return
arrayNew;
108
}
109
111
template
<
class
T >
112
inline
T *
113
ClpCopyOfArray
(
const
T *array,
const
CoinBigIndex size)
114
{
115
if
(array) {
116
T *arrayNew =
new
T[size];
117
ClpDisjointCopyN
(array, size, arrayNew);
118
return
arrayNew;
119
}
else
{
120
return
NULL;
121
}
122
}
123
124
typedef
struct
{
125
int
typeStruct
;
// allocated as 1,2 etc
126
int
typeCall
;
127
void
*
data
;
128
}
ClpTrustedData
;
129
#endif
130
131
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
132
*/
ClpFillN
void ClpFillN(T *array, const CoinBigIndex size, T value)
And set.
Definition
ClpParameters.hpp:91
ClpCopyOfArray
T * ClpCopyOfArray(const T *array, const CoinBigIndex size, T value)
This returns a non const array filled with input from scalar or actual array.
Definition
ClpParameters.hpp:100
ClpIntParam
ClpIntParam
This is where to put any useful stuff.
Definition
ClpParameters.hpp:12
ClpMaxNumIterationHotStart
@ ClpMaxNumIterationHotStart
The maximum number of iterations Clp can execute in hotstart before terminating.
Definition
ClpParameters.hpp:18
ClpNameDiscipline
@ ClpNameDiscipline
The name discipline; specifies how the solver will handle row and column names.
Definition
ClpParameters.hpp:37
ClpMaxNumIteration
@ ClpMaxNumIteration
The maximum number of iterations Clp can execute in the simplex methods.
Definition
ClpParameters.hpp:15
ClpLastIntParam
@ 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:72
ClpLastStrParam
@ ClpLastStrParam
Just a marker, so that we can allocate a static sized array to store parameters.
Definition
ClpParameters.hpp:78
ClpProbName
@ ClpProbName
Name of the problem.
Definition
ClpParameters.hpp:75
ClpDblParam
ClpDblParam
Definition
ClpParameters.hpp:43
ClpPresolveTolerance
@ ClpPresolveTolerance
Tolerance to use in presolve.
Definition
ClpParameters.hpp:66
ClpDualTolerance
@ ClpDualTolerance
The maximum amount the dual constraints can be violated and still be considered feasible.
Definition
ClpParameters.hpp:54
ClpPrimalObjectiveLimit
@ ClpPrimalObjectiveLimit
Primal objective limit.
Definition
ClpParameters.hpp:51
ClpMaxSeconds
@ ClpMaxSeconds
Maximum time in seconds - after, this action is as max iterations.
Definition
ClpParameters.hpp:62
ClpDualObjectiveLimit
@ ClpDualObjectiveLimit
Set Dual objective limit.
Definition
ClpParameters.hpp:47
ClpLastDblParam
@ ClpLastDblParam
Just a marker, so that we can allocate a static sized array to store parameters.
Definition
ClpParameters.hpp:69
ClpPrimalTolerance
@ ClpPrimalTolerance
The maximum amount the primal constraints can be violated and still be considered feasible.
Definition
ClpParameters.hpp:57
ClpObjOffset
@ ClpObjOffset
Objective function constant.
Definition
ClpParameters.hpp:60
ClpMaxWallSeconds
@ ClpMaxWallSeconds
Maximum wallclock running time in seconds - after, this action is as max iterations.
Definition
ClpParameters.hpp:64
ClpDisjointCopyN
void ClpDisjointCopyN(const T *array, const CoinBigIndex size, T *newArray)
Copy (I don't like complexity of Coin version).
Definition
ClpParameters.hpp:84
ClpTrustedData
For a structure to be used by trusted code.
Definition
ClpParameters.hpp:124
ClpTrustedData::data
void * data
Definition
ClpParameters.hpp:127
ClpTrustedData::typeStruct
int typeStruct
Definition
ClpParameters.hpp:125
ClpTrustedData::typeCall
int typeCall
Definition
ClpParameters.hpp:126
Generated by
1.17.0