| 361 | } |
| 362 | |
| 363 | LPWrapper::VariableType LPWrapper::getColumnType(Int index) |
| 364 | { |
| 365 | #if COINOR_SOLVER == 1 |
| 366 | if (model_->isInteger(index)) |
| 367 | { |
| 368 | return INTEGER; |
| 369 | } |
| 370 | else |
| 371 | return CONTINUOUS; |
| 372 | #else |
| 373 | return (VariableType)glp_get_col_kind(lp_problem_, index + 1); |
| 374 | #endif |
| 375 | } |
| 376 | |
| 377 | void LPWrapper::setObjective(Int index, double obj_value) |
| 378 | { |