Debian Codegraph @

CoinMP/src/CoinSolver.h

raw
1
2 /* CoinSolver.h */
3
4
5 #ifndef _COINSOLVER_H_
6 #define _COINSOLVER_H_
7
8
9 #if defined(_MSC_VER) && !defined(HAVE_CONFIG_H)
10 #define SOLVCALL __stdcall
11 #else
12 #define SOLVCALL
13 #endif
14
15 typedef int (SOLVCALL * COIN_MSGLOG_CB)(const char* MessageStr,
16 void* UserParam);
17
18 typedef int (SOLVCALL *COIN_LPITER_CB)(int IterCount,
19 double ObjectValue,
20 int IsFeasible,
21 double InfeasValue,
22 void* UserParam);
23
24 typedef int (SOLVCALL *COIN_MIPNODE_CB)(int IterCount,
25 int MipNodeCount,
26 double BestBound,
27 double BestInteger,
28 int IsMipImproved,
29 void* UserParam);
30
31
32 /* Depreciated, use COIN_XXX_CB instead */
33 typedef int (SOLVCALL *MSGLOGCALLBACK)(const char* MessageStr);
34
35 typedef int (SOLVCALL *ITERCALLBACK)(int IterCount,
36 double ObjectValue,
37 int IsFeasible,
38 double InfeasValue);
39
40 typedef int (SOLVCALL *MIPNODECALLBACK)(int IterCount,
41 int MipNodeCount,
42 double BestBound,
43 double BestInteger,
44 int IsMipImproved);
45
46
47 typedef struct {
48 char LogFilename[260];
49
50 COIN_MSGLOG_CB MsgLogCB;
51 COIN_LPITER_CB LPIterCB;
52 COIN_MIPNODE_CB MipNodeCB;
53
54 void* MsgLogParam;
55 void* LPIterParam;
56 void* MipNodeParam;
57
58 MSGLOGCALLBACK MsgLogCallback;
59 ITERCALLBACK IterCallback;
60 MIPNODECALLBACK MipNodeCallback;
61
62 } SOLVERINFO, *PSOLVER;
63
64
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68
69
70 PSOLVER coinCreateSolverObject(void);
71
72 void coinClearSolverObject(PSOLVER pSolver);
73
74 void coinSetLogFilename(PSOLVER pSolver, const char* LogFilename);
75 const char* coinGetLogFilename(PSOLVER pSolver);
76
77
78 #ifdef __cplusplus
79 }
80 #endif
81
82
83 #endif /* _COINSOLVER_H_ */
84