Skip to content

Commit 636435b

Browse files
committed
2 parents 2ddb5a9 + 42d7b74 commit 636435b

40 files changed

Lines changed: 48 additions & 0 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#ifndef _ILP_SOLVER_IF_H_
2+
#define _ILP_SOLVER_IF_H_
3+
4+
enum class SOLVER_ENUM {Cbc, SYMPHONY};
5+
6+
class ILPSolverIf {
7+
private:
8+
SOLVER_ENUM _se;
9+
int _t, _nvar, _nrow;
10+
void* _solver;
11+
double *_sol;
12+
13+
public:
14+
ILPSolverIf(const SOLVER_ENUM& se = SOLVER_ENUM::Cbc);
15+
~ILPSolverIf();
16+
double getInfinity() const;
17+
void setTimeLimit(const int t) { _t = t; }
18+
19+
void loadProblem(const int nvar, const int nrow, const int* start,
20+
const int* indices, const double* values, const double* varlb, const double* varub,
21+
const double* obj, const double* rowlb, const double* rowub, const int* intvars = nullptr);
22+
void loadProblemSym(int nvar, int nrow, int* start,
23+
int* indices, double* values, double* varlb, double* varub,
24+
char *intvars, double* obj, char *sens, double *rhs);
25+
26+
int solve(const int num_threads = 1);
27+
double *solution() { return _sol; }
28+
void writelp(char* filename, char **varnames = nullptr, char **colnames = nullptr);
29+
};
30+
#endif

manylinux_2_28_x86_64/lib/libCbc.a

2.41 MB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libCbc.so.3.10.5
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libCbc.so.3.10.5
1.34 MB
Binary file not shown.
1.72 MB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libCbcSolver.so.3.10.5
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libCbcSolver.so.3.10.5
1.15 MB
Binary file not shown.

manylinux_2_28_x86_64/lib/libCgl.a

2.18 MB
Binary file not shown.

0 commit comments

Comments
 (0)