equal
deleted
inserted
replaced
27 messageLevel(MESSAGE_NOTHING); |
27 messageLevel(MESSAGE_NOTHING); |
28 } |
28 } |
29 |
29 |
30 ClpLp::ClpLp(const ClpLp& other) { |
30 ClpLp::ClpLp(const ClpLp& other) { |
31 _prob = new ClpSimplex(*other._prob); |
31 _prob = new ClpSimplex(*other._prob); |
32 rows = other.rows; |
32 _rows = other._rows; |
33 cols = other.cols; |
33 _cols = other._cols; |
34 _init_temporals(); |
34 _init_temporals(); |
35 messageLevel(MESSAGE_NOTHING); |
35 messageLevel(MESSAGE_NOTHING); |
36 } |
36 } |
37 |
37 |
38 ClpLp::~ClpLp() { |
38 ClpLp::~ClpLp() { |
101 _row_names_ref.erase(_prob->getRowName(r)); |
101 _row_names_ref.erase(_prob->getRowName(r)); |
102 _prob->deleteRows(1, &r); |
102 _prob->deleteRows(1, &r); |
103 } |
103 } |
104 |
104 |
105 void ClpLp::_eraseColId(int i) { |
105 void ClpLp::_eraseColId(int i) { |
106 cols.eraseIndex(i); |
106 _cols.eraseIndex(i); |
107 cols.shiftIndices(i); |
107 _cols.shiftIndices(i); |
108 } |
108 } |
109 |
109 |
110 void ClpLp::_eraseRowId(int i) { |
110 void ClpLp::_eraseRowId(int i) { |
111 rows.eraseIndex(i); |
111 _rows.eraseIndex(i); |
112 rows.shiftIndices(i); |
112 _rows.shiftIndices(i); |
113 } |
113 } |
114 |
114 |
115 void ClpLp::_getColName(int c, std::string& name) const { |
115 void ClpLp::_getColName(int c, std::string& name) const { |
116 name = _prob->getColumnName(c); |
116 name = _prob->getColumnName(c); |
117 } |
117 } |