887 |
887 |
888 /// Get the name of a column |
888 /// Get the name of a column |
889 |
889 |
890 ///\param c is the coresponding coloumn |
890 ///\param c is the coresponding coloumn |
891 ///\return The name of the colunm |
891 ///\return The name of the colunm |
892 std::string ColName(Col c){ |
892 std::string colName(Col c){ |
893 std::string name; |
893 std::string name; |
894 _getColName(cols.floatingId(c.id), name); |
894 _getColName(cols.floatingId(c.id), name); |
895 return name; |
895 return name; |
896 } |
896 } |
897 |
897 |
898 /// Set the name of a column |
898 /// Set the name of a column |
899 |
899 |
900 ///\param c is the coresponding coloumn |
900 ///\param c is the coresponding coloumn |
901 ///\param name The name to be given |
901 ///\param name The name to be given |
902 void ColName(Col c, const std::string & name){ |
902 void colName(Col c, const std::string & name){ |
903 _setColName(cols.floatingId(c.id), name); |
903 _setColName(cols.floatingId(c.id), name); |
904 } |
904 } |
905 |
905 |
906 /// Set an element of the coefficient matrix of the LP |
906 /// Set an element of the coefficient matrix of the LP |
907 |
907 |
908 ///\param r is the row of the element to be modified |
908 ///\param r is the row of the element to be modified |
909 ///\param c is the coloumn of the element to be modified |
909 ///\param c is the coloumn of the element to be modified |
910 ///\param val is the new value of the coefficient |
910 ///\param val is the new value of the coefficient |
911 |
911 |
912 void Coeff(Row r, Col c, Value val){ |
912 void coeff(Row r, Col c, Value val){ |
913 _setCoeff(rows.floatingId(r.id),cols.floatingId(c.id), val); |
913 _setCoeff(rows.floatingId(r.id),cols.floatingId(c.id), val); |
914 } |
914 } |
915 |
915 |
916 /// Set the lower bound of a column (i.e a variable) |
916 /// Set the lower bound of a column (i.e a variable) |
917 |
917 |