libcmaes
A C++11 library for stochastic optimization with CMA-ES
 All Classes Namespaces Functions Variables Typedefs
opti_err.h
1 
22 #ifndef OPTI_ERR_H
23 #define OPTI_ERR_H
24 
25 /* errors */
26 enum {
27  /* reaches convergence. */
28  OPTI_SUCCESS = 0,
29  OPTI_STOP,
30  /* intial variables already minimize the objective function. */
31  OPTI_ALREADY_MINIMIZED,
32  /* unknown error */
33  OPTI_ERR_UNKNOWN = -1024,
34  /* insufficient memory. */
35  OPTI_ERR_OUTOFMEMORY=-1025,
36  /* invalid number of variables specified. */
37  OPTI_ERR_INVALID_N=-1026,
38  /* the algorithm has reached a termination criteria without reaching the objective. */
39  OPTI_ERR_TERMINATION=-1
40 };
41 
42 #endif