equal
deleted
inserted
replaced
56 //FIXME problem |
56 //FIXME problem |
57 } |
57 } |
58 CPXchgctype (env, lp, 1, indices, ctype); |
58 CPXchgctype (env, lp, 1, indices, ctype); |
59 } |
59 } |
60 |
60 |
61 MipCplex::ColTypes MipCplex::_colType(int i){ |
61 MipCplex::ColTypes MipCplex::_colType(int i) const { |
62 |
62 |
63 char ctype[1]; |
63 char ctype[1]; |
64 status = CPXgetctype (env, lp, ctype, i, i); |
64 status = CPXgetctype (env, lp, ctype, i, i); |
65 switch (ctype[0]){ |
65 switch (ctype[0]){ |
66 |
66 |
83 return UNSOLVED; |
83 return UNSOLVED; |
84 |
84 |
85 } |
85 } |
86 |
86 |
87 |
87 |
88 LpCplex::SolutionStatus MipCplex::_getMipStatus(){ |
88 LpCplex::SolutionStatus MipCplex::_getMipStatus() const { |
89 |
89 |
90 int stat = CPXgetstat(env, lp); |
90 int stat = CPXgetstat(env, lp); |
91 |
91 |
92 //Fortunately, MIP statuses did not change for cplex 8.0 |
92 //Fortunately, MIP statuses did not change for cplex 8.0 |
93 switch (stat) |
93 switch (stat) |
117 // to determine whether ILOG CPLEX has also concluded that the model |
117 // to determine whether ILOG CPLEX has also concluded that the model |
118 // has a feasible solution. |
118 // has a feasible solution. |
119 |
119 |
120 } |
120 } |
121 |
121 |
122 MipCplex::Value MipCplex::_getPrimal(int i){ |
122 MipCplex::Value MipCplex::_getPrimal(int i) const { |
123 Value x; |
123 Value x; |
124 CPXgetmipx(env, lp, &x, i, i); |
124 CPXgetmipx(env, lp, &x, i, i); |
125 return x; |
125 return x; |
126 } |
126 } |
127 |
127 |
128 MipCplex::Value MipCplex::_getPrimalValue(){ |
128 MipCplex::Value MipCplex::_getPrimalValue() const { |
129 Value objval; |
129 Value objval; |
130 status = CPXgetmipobjval(env, lp, &objval); |
130 status = CPXgetmipobjval(env, lp, &objval); |
131 return objval; |
131 return objval; |
132 } |
132 } |
133 } //END OF NAMESPACE LEMON |
133 } //END OF NAMESPACE LEMON |