-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModel.h
More file actions
39 lines (33 loc) · 695 Bytes
/
Copy pathModel.h
File metadata and controls
39 lines (33 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef Model_h
#define Model_h
#include <iostream>
#include <vector>
#include <string>
#include <ilcplex/ilocplex.h>
ILOSTLBEGIN
#include "Input.h"
class Model
{
public:
IloEnv env_;
IloModel mod_;
IloCplex cplex_;
Input *my_input_;
IloNumVarArray H_; //
IloNumVarArray h_; //
vector<string> lazy_cuts_added;
Model(Input* my_input)
{
my_input_ = my_input;
env_ = IloEnv();
mod_ = IloModel(env_);
cplex_ = IloCplex(mod_);
}
void createSolve(int CAP, int TMAX);
private:
void allocVar();
void buildModel(int CAP, int TMAX);
void solveModel();
void writeModel();
};
#endif /* Model_h */