branch | 1.1 |
changeset 811 | bd24650d5cd2 |
parent 786 | c3a7ca108705 |
parent 798 | d32e4453b48c |
7:941401811b31 | 9:05dd24da9e21 |
---|---|
38 } |
38 } |
39 |
39 |
40 CplexEnv::CplexEnv() { |
40 CplexEnv::CplexEnv() { |
41 int status; |
41 int status; |
42 _cnt = new int; |
42 _cnt = new int; |
43 (*_cnt) = 1; |
|
43 _env = CPXopenCPLEX(&status); |
44 _env = CPXopenCPLEX(&status); |
44 if (_env == 0) { |
45 if (_env == 0) { |
45 delete _cnt; |
46 delete _cnt; |
46 _cnt = 0; |
47 _cnt = 0; |
47 throw LicenseError(status); |
48 throw LicenseError(status); |