-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrbenv.h
29 lines (22 loc) · 856 Bytes
/
grbenv.h
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
/*
* grbenv.h, by Marius Posta, 2009
* Check LICENSE.txt for the legal blah-blah.
*
* Gurobi LP solver header file.
*
*/
#ifndef GRBENV_H
#define GRBENV_H
#include "gurobi_c.h"
#include "assert.h"
/* error-checking macro borrowed from Paul Khuong (originally for CPLEX) */
#define GRB(CALL) \
do { \
int status = (GRB ## CALL); \
if (status) { \
fprintf(stderr, "GRB error: %i\n", status); \
assert(0); \
} \
} while (0)
extern GRBenv* env; // our Gurobi environment, defined in main.c
#endif