equal
deleted
inserted
replaced
1 /* -*- mode: C++; indent-tabs-mode: nil; -*- |
1 /* -*- mode: C++; indent-tabs-mode: nil; -*- |
2 * |
2 * |
3 * This file is a part of LEMON, a generic C++ optimization library. |
3 * This file is a part of LEMON, a generic C++ optimization library. |
4 * |
4 * |
5 * Copyright (C) 2003-2009 |
5 * Copyright (C) 2003-2010 |
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
7 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
7 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
8 * |
8 * |
9 * Permission to use, modify and distribute this software is granted |
9 * Permission to use, modify and distribute this software is granted |
10 * provided that this copyright notice appears in all copies. For |
10 * provided that this copyright notice appears in all copies. For |
109 const char s = 'L'; |
109 const char s = 'L'; |
110 CPXnewrows(cplexEnv(), _prob, 1, &ub, &s, 0, 0); |
110 CPXnewrows(cplexEnv(), _prob, 1, &ub, &s, 0, 0); |
111 return i; |
111 return i; |
112 } |
112 } |
113 |
113 |
114 int CplexBase::_addRow(Value lb, ExprIterator b, |
114 int CplexBase::_addRow(Value lb, ExprIterator b, |
115 ExprIterator e, Value ub) { |
115 ExprIterator e, Value ub) { |
116 int i = CPXgetnumrows(cplexEnv(), _prob); |
116 int i = CPXgetnumrows(cplexEnv(), _prob); |
117 if (lb == -INF) { |
117 if (lb == -INF) { |
118 const char s = 'L'; |
118 const char s = 'L'; |
119 CPXnewrows(cplexEnv(), _prob, 1, &ub, &s, 0, 0); |
119 CPXnewrows(cplexEnv(), _prob, 1, &ub, &s, 0, 0); |
487 break; |
487 break; |
488 } |
488 } |
489 } |
489 } |
490 |
490 |
491 void CplexBase::_applyMessageLevel() { |
491 void CplexBase::_applyMessageLevel() { |
492 CPXsetintparam(cplexEnv(), CPX_PARAM_SCRIND, |
492 CPXsetintparam(cplexEnv(), CPX_PARAM_SCRIND, |
493 _message_enabled ? CPX_ON : CPX_OFF); |
493 _message_enabled ? CPX_ON : CPX_OFF); |
494 } |
494 } |
495 |
495 |
496 // CplexLp members |
496 // CplexLp members |
497 |
497 |