Loading...
Searching...
No Matches
ClpParameters.hpp
Go to the documentation of this file.
/* $Id$ */
// Copyright (C) 2000, 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef _ClpParameters_H
#define _ClpParameters_H
enum ClpIntParam {
ClpMaxNumIteration = 0,
ClpMaxNumIterationHotStart,
ClpNameDiscipline,
ClpLastIntParam
};
enum ClpDblParam {
ClpDualObjectiveLimit,
ClpPrimalObjectiveLimit,
ClpDualTolerance,
ClpPrimalTolerance,
ClpObjOffset,
ClpMaxSeconds,
ClpMaxWallSeconds,
ClpPresolveTolerance,
ClpLastDblParam
};
enum ClpStrParam {
ClpProbName = 0,
ClpLastStrParam
};
template < class T >
inline void
ClpDisjointCopyN(const T *array, const CoinBigIndex size, T *newArray)
{
memcpy(reinterpret_cast< void * >(newArray), array, size * sizeof(T));
}
template < class T >
inline void
ClpFillN(T *array, const CoinBigIndex size, T value)
{
CoinBigIndex i;
for (i = 0; i < size; i++)
array[i] = value;
}
template < class T >
inline T *
ClpCopyOfArray(const T *array, const CoinBigIndex size, T value)
{
T *arrayNew = new T[size];
if (array)
ClpDisjointCopyN(array, size, arrayNew);
else
ClpFillN(arrayNew, size, value);
return arrayNew;
}
template < class T >
inline T *
ClpCopyOfArray(const T *array, const CoinBigIndex size)
{
if (array) {
T *arrayNew = new T[size];
ClpDisjointCopyN(array, size, arrayNew);
return arrayNew;
} else {
return NULL;
}
}
typedef struct {
int typeStruct; // allocated as 1,2 etc
int typeCall;
void *data;
} ClpTrustedData;
#endif
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
*/
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