equal
deleted
inserted
replaced
211 |
211 |
212 lpx_set_mat_col(lp, col, length, &indices[0], &values[0]); |
212 lpx_set_mat_col(lp, col, length, &indices[0], &values[0]); |
213 } |
213 } |
214 } |
214 } |
215 |
215 |
|
216 LpGlpk::Value LpGlpk::_getCoeff(int row, int col) |
|
217 { |
|
218 ///\todo This is not yet implemented!!! |
|
219 return 0; |
|
220 } |
|
221 |
|
222 |
216 void LpGlpk::_setColLowerBound(int i, Value lo) |
223 void LpGlpk::_setColLowerBound(int i, Value lo) |
217 { |
224 { |
218 if (lo==INF) { |
225 if (lo==INF) { |
219 //FIXME error |
226 //FIXME error |
220 } |
227 } |
420 |
427 |
421 void LpGlpk::_setObjCoeff(int i, Value obj_coef) |
428 void LpGlpk::_setObjCoeff(int i, Value obj_coef) |
422 { |
429 { |
423 //i=0 means the constant term (shift) |
430 //i=0 means the constant term (shift) |
424 lpx_set_obj_coef(lp, i, obj_coef); |
431 lpx_set_obj_coef(lp, i, obj_coef); |
|
432 } |
|
433 |
|
434 LpGlpk::Value LpGlpk::_getObjCoeff(int i){ |
|
435 //i=0 means the constant term (shift) |
|
436 return lpx_get_obj_coef(lp, i); |
425 } |
437 } |
426 |
438 |
427 void LpGlpk::_clearObj() |
439 void LpGlpk::_clearObj() |
428 { |
440 { |
429 for (int i=0;i<=lpx_get_num_cols(lp);++i){ |
441 for (int i=0;i<=lpx_get_num_cols(lp);++i){ |
549 void LpGlpk::_setMin() |
561 void LpGlpk::_setMin() |
550 { |
562 { |
551 lpx_set_obj_dir(lp, LPX_MIN); |
563 lpx_set_obj_dir(lp, LPX_MIN); |
552 } |
564 } |
553 |
565 |
|
566 bool LpGlpk::_isMax() |
|
567 { |
|
568 return (lpx_get_obj_dir(lp)==LPX_MAX); |
|
569 } |
|
570 |
554 |
571 |
|
572 |
555 void LpGlpk::messageLevel(int m) |
573 void LpGlpk::messageLevel(int m) |
556 { |
574 { |
557 lpx_set_int_parm(lp, LPX_K_MSGLEV, m); |
575 lpx_set_int_parm(lp, LPX_K_MSGLEV, m); |
558 } |
576 } |
559 |
577 |