equal
deleted
inserted
replaced
1058 ///\param c is the coresponding coloumn |
1058 ///\param c is the coresponding coloumn |
1059 ///\param name The name to be given |
1059 ///\param name The name to be given |
1060 void colName(Col c, const std::string& name) { |
1060 void colName(Col c, const std::string& name) { |
1061 _setColName(_lpId(c), name); |
1061 _setColName(_lpId(c), name); |
1062 } |
1062 } |
|
1063 |
|
1064 /// Get the column by its name |
|
1065 |
|
1066 ///\param name The name of the column |
|
1067 ///\return the proper column or \c INVALID |
|
1068 Col colByName(const std::string& name) const { |
|
1069 int k = _colByName(name); |
|
1070 return k != -1 ? Col(cols.fixId(k)) : Col(INVALID); |
|
1071 } |
1063 |
1072 |
1064 /// Set an element of the coefficient matrix of the LP |
1073 /// Set an element of the coefficient matrix of the LP |
1065 |
1074 |
1066 ///\param r is the row of the element to be modified |
1075 ///\param r is the row of the element to be modified |
1067 ///\param c is the coloumn of the element to be modified |
1076 ///\param c is the coloumn of the element to be modified |