Clp 1.16.9
Loading...
Searching...
No Matches
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
41};
42
70};
71
72
80};
81
83template <class T> inline void
84ClpDisjointCopyN( const T * array, const int size, T * newArray)
85{
86 memcpy(reinterpret_cast<void *> (newArray), array, size * sizeof(T));
87}
89template <class T> inline void
90ClpFillN( T * array, const int size, T value)
91{
92 int i;
93 for (i = 0; i < size; i++)
94 array[i] = value;
95}
97template <class T> inline T*
98ClpCopyOfArray( 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
109template <class T> inline T*
110ClpCopyOfArray( 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}
121typedef struct {
122 int typeStruct; // allocated as 1,2 etc
124 void * data;
126#endif
T * ClpCopyOfArray(const T *array, const int size, T value)
This returns a non const array filled with input from scalar or actual array.
void ClpDisjointCopyN(const T *array, const int size, T *newArray)
Copy (I don't like complexity of Coin version)
ClpIntParam
This is where to put any useful stuff.
@ ClpMaxNumIterationHotStart
The maximum number of iterations Clp can execute in hotstart before terminating.
@ ClpNameDiscipline
The name discipline; specifies how the solver will handle row and column names.
@ ClpMaxNumIteration
The maximum number of iterations Clp can execute in the simplex methods.
@ ClpLastIntParam
Just a marker, so that we can allocate a static sized array to store parameters.
ClpStrParam
@ ClpLastStrParam
Just a marker, so that we can allocate a static sized array to store parameters.
@ ClpProbName
Name of the problem.
ClpDblParam
@ ClpPresolveTolerance
Tolerance to use in presolve.
@ ClpDualTolerance
The maximum amount the dual constraints can be violated and still be considered feasible.
@ ClpPrimalObjectiveLimit
Primal objective limit.
@ ClpMaxSeconds
Maximum time in seconds - after, this action is as max iterations.
@ ClpDualObjectiveLimit
Set Dual objective limit.
@ ClpLastDblParam
Just a marker, so that we can allocate a static sized array to store parameters.
@ ClpPrimalTolerance
The maximum amount the primal constraints can be violated and still be considered feasible.
@ ClpObjOffset
Objective function constant.
@ ClpMaxWallSeconds
Maximum wallclock running time in seconds - after, this action is as max iterations.
void ClpFillN(T *array, const int size, T value)
And set.
For a structure to be used by trusted code.