Alps  2.0.2
Classes | Macros | Typedefs | Enumerations
Alps.h File Reference
#include <cfloat>
#include <cstdio>
#include "AlpsConfig.h"
#include "CoinFinite.hpp"
+ Include dependency graph for Alps.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ALPS_PS_STATS
 

Macros

#define ALPS_NODE_PROCESS_TIME   0.0123
 
#define ALPS_NONE   0
 
#define ALPS_NOT_SET   -1
 
#define ALPS_DBL_MAX   COIN_DBL_MAX
 
#define ALPS_INC_MAX   1.0e80
 
#define ALPS_OBJ_MAX   1.0e75
 
#define ALPS_OBJ_MAX_LESS   1.0e70
 
#define ALPS_BND_MAX   1.0e20
 
#define ALPS_INFINITY   1.0e20
 
#define ALPS_INT_MAX   COIN_INT_MAX
 
#define ALPS_ZERO   1.0e-14
 
#define ALPS_GEN_TOL   1.0e-6
 
#define ALPS_QUALITY_TOL   1.0e-5
 
#define ALPS_SMALL_3   1.0e-3
 
#define ALPS_SMALL_4   1.0e-4
 
#define ALPS_SMALL_5   1.0e-5
 
#define ALPS_PRINTF   printf
 
#define ALPS_DMSG   printf
 
#define ALPS_MAX(x, y)   ( ( (x) > (y) ) ? (x) : (y) )
 
#define ALPS_MIN(x, y)   ( ( (x) < (y) ) ? (x) : (y) )
 
#define ALPS_FABS(x)   ( (x < 0.0) ? -(x) : (x) )
 
#define ALPS_ABS(x)   ( (x < 0) ? -(x) : (x) )
 

Typedefs

typedef int AlpsNodeIndex_t
 
typedef struct ALPS_PS_STATS AlpsPsStats
 

Enumerations

enum  AlpsClockType { AlpsClockTypeCpu, AlpsClockTypeWallClock }
 The possible values for clock type. More...
 
enum  AlpsStaticBalanceScheme { AlpsRootInit = 0, AlpsSpiral }
 The possible values for static load balancing scheme. More...
 
enum  AlpsNodeStatus {
  AlpsNodeStatusCandidate, AlpsNodeStatusEvaluated, AlpsNodeStatusPregnant, AlpsNodeStatusBranched,
  AlpsNodeStatusFathomed, AlpsNodeStatusDiscarded
}
 The possible stati for the search nodes. More...
 
enum  AlpsSearchType {
  AlpsSearchTypeBestFirst = 0, AlpsSearchTypeBreadthFirst, AlpsSearchTypeDepthFirst, AlpsSearchTypeBestEstimate,
  AlpsSearchTypeHybrid
}
 Search Strategies. More...
 
enum  AlpsKnowledgeType {
  AlpsKnowledgeTypeModel = 0, AlpsKnowledgeTypeModelGen, AlpsKnowledgeTypeNode, AlpsKnowledgeTypeNodeDesc,
  AlpsKnowledgeTypeSolution, AlpsKnowledgeTypeSubTree, AlpsKnowledgeTypeUndefined
}
 Type of knowledge like solution, node, cut... More...
 
enum  AlpsKnowledgePoolType { AlpsKnowledgePoolTypeNode = 0, AlpsKnowledgePoolTypeSolution, AlpsKnowledgePoolTypeSubTree, AlpsKnowledgePoolTypeUndefined }
 
enum  AlpsExitStatus {
  AlpsExitStatusUnknown = -1, AlpsExitStatusOptimal, AlpsExitStatusTimeLimit, AlpsExitStatusNodeLimit,
  AlpsExitStatusSolLimit, AlpsExitStatusFeasible, AlpsExitStatusInfeasible, AlpsExitStatusNoMemory,
  AlpsExitStatusFailed, AlpsExitStatusUnbounded
}
 
enum  AlpsReturnStatus { AlpsReturnStatusOk = 0, AlpsReturnStatusErr, AlpsReturnStatusErrNoInt, AlpsReturnStatusErrNoMem }
 
enum  AlpsPhase { AlpsPhaseRampup = 0, AlpsPhaseSearch, AlpsPhaseRampdown }
 

Macro Definition Documentation

◆ ALPS_NODE_PROCESS_TIME

#define ALPS_NODE_PROCESS_TIME   0.0123

Definition at line 278 of file Alps.h.

◆ ALPS_NONE

#define ALPS_NONE   0

Definition at line 279 of file Alps.h.

◆ ALPS_NOT_SET

#define ALPS_NOT_SET   -1

Definition at line 280 of file Alps.h.

◆ ALPS_DBL_MAX

#define ALPS_DBL_MAX   COIN_DBL_MAX

Definition at line 286 of file Alps.h.

◆ ALPS_INC_MAX

#define ALPS_INC_MAX   1.0e80

Definition at line 287 of file Alps.h.

◆ ALPS_OBJ_MAX

#define ALPS_OBJ_MAX   1.0e75

Definition at line 288 of file Alps.h.

◆ ALPS_OBJ_MAX_LESS

#define ALPS_OBJ_MAX_LESS   1.0e70

Definition at line 289 of file Alps.h.

◆ ALPS_BND_MAX

#define ALPS_BND_MAX   1.0e20

Definition at line 290 of file Alps.h.

◆ ALPS_INFINITY

#define ALPS_INFINITY   1.0e20

Definition at line 291 of file Alps.h.

◆ ALPS_INT_MAX

#define ALPS_INT_MAX   COIN_INT_MAX

Definition at line 293 of file Alps.h.

◆ ALPS_ZERO

#define ALPS_ZERO   1.0e-14

Definition at line 299 of file Alps.h.

◆ ALPS_GEN_TOL

#define ALPS_GEN_TOL   1.0e-6

Definition at line 300 of file Alps.h.

◆ ALPS_QUALITY_TOL

#define ALPS_QUALITY_TOL   1.0e-5

Definition at line 301 of file Alps.h.

◆ ALPS_SMALL_3

#define ALPS_SMALL_3   1.0e-3

Definition at line 302 of file Alps.h.

◆ ALPS_SMALL_4

#define ALPS_SMALL_4   1.0e-4

Definition at line 303 of file Alps.h.

◆ ALPS_SMALL_5

#define ALPS_SMALL_5   1.0e-5

Definition at line 304 of file Alps.h.

◆ ALPS_PRINTF

#define ALPS_PRINTF   printf

Definition at line 308 of file Alps.h.

◆ ALPS_DMSG

#define ALPS_DMSG   printf

Definition at line 310 of file Alps.h.

◆ ALPS_MAX

#define ALPS_MAX (   x,
 
)    ( ( (x) > (y) ) ? (x) : (y) )

Definition at line 315 of file Alps.h.

◆ ALPS_MIN

#define ALPS_MIN (   x,
 
)    ( ( (x) < (y) ) ? (x) : (y) )

Definition at line 316 of file Alps.h.

◆ ALPS_FABS

#define ALPS_FABS (   x)    ( (x < 0.0) ? -(x) : (x) )

Definition at line 317 of file Alps.h.

◆ ALPS_ABS

#define ALPS_ABS (   x)    ( (x < 0) ? -(x) : (x) )

Definition at line 318 of file Alps.h.

Typedef Documentation

◆ AlpsNodeIndex_t

typedef int AlpsNodeIndex_t

Definition at line 174 of file Alps.h.

◆ AlpsPsStats

typedef struct ALPS_PS_STATS AlpsPsStats

Enumeration Type Documentation

◆ AlpsClockType

The possible values for clock type.

Enumerator
AlpsClockTypeCpu 
AlpsClockTypeWallClock 

Definition at line 180 of file Alps.h.

◆ AlpsStaticBalanceScheme

The possible values for static load balancing scheme.

Enumerator
AlpsRootInit 
AlpsSpiral 

Definition at line 189 of file Alps.h.

◆ AlpsNodeStatus

The possible stati for the search nodes.

Enumerator
AlpsNodeStatusCandidate 
AlpsNodeStatusEvaluated 
AlpsNodeStatusPregnant 
AlpsNodeStatusBranched 
AlpsNodeStatusFathomed 
AlpsNodeStatusDiscarded 

Definition at line 198 of file Alps.h.

◆ AlpsSearchType

Search Strategies.

Enumerator
AlpsSearchTypeBestFirst 
AlpsSearchTypeBreadthFirst 
AlpsSearchTypeDepthFirst 
AlpsSearchTypeBestEstimate 
AlpsSearchTypeHybrid 

Definition at line 211 of file Alps.h.

◆ AlpsKnowledgeType

Type of knowledge like solution, node, cut...

Enumerator
AlpsKnowledgeTypeModel 
AlpsKnowledgeTypeModelGen 
AlpsKnowledgeTypeNode 
AlpsKnowledgeTypeNodeDesc 
AlpsKnowledgeTypeSolution 
AlpsKnowledgeTypeSubTree 
AlpsKnowledgeTypeUndefined 

Definition at line 223 of file Alps.h.

◆ AlpsKnowledgePoolType

Enumerator
AlpsKnowledgePoolTypeNode 
AlpsKnowledgePoolTypeSolution 
AlpsKnowledgePoolTypeSubTree 
AlpsKnowledgePoolTypeUndefined 

Definition at line 233 of file Alps.h.

◆ AlpsExitStatus

Enumerator
AlpsExitStatusUnknown 
AlpsExitStatusOptimal 
AlpsExitStatusTimeLimit 
AlpsExitStatusNodeLimit 
AlpsExitStatusSolLimit 
AlpsExitStatusFeasible 
AlpsExitStatusInfeasible 
AlpsExitStatusNoMemory 
AlpsExitStatusFailed 
AlpsExitStatusUnbounded 

Definition at line 244 of file Alps.h.

◆ AlpsReturnStatus

Enumerator
AlpsReturnStatusOk 
AlpsReturnStatusErr 
AlpsReturnStatusErrNoInt 
AlpsReturnStatusErrNoMem 

Definition at line 261 of file Alps.h.

◆ AlpsPhase

enum AlpsPhase
Enumerator
AlpsPhaseRampup 
AlpsPhaseSearch 
AlpsPhaseRampdown 

Definition at line 272 of file Alps.h.