equal
deleted
inserted
replaced
113 |
113 |
114 virtual void _clear(); |
114 virtual void _clear(); |
115 |
115 |
116 virtual void _messageLevel(MessageLevel level); |
116 virtual void _messageLevel(MessageLevel level); |
117 |
117 |
|
118 virtual void _write(std::string file, std::string format) const; |
|
119 |
118 private: |
120 private: |
119 |
121 |
120 static void freeEnv(); |
122 static void freeEnv(); |
121 |
123 |
122 struct FreeEnvHelper { |
124 struct FreeEnvHelper { |
142 int lpxRow(Row r) const { return rows(id(r)); } |
144 int lpxRow(Row r) const { return rows(id(r)); } |
143 |
145 |
144 ///Returns the variable identifier understood by GLPK. |
146 ///Returns the variable identifier understood by GLPK. |
145 int lpxCol(Col c) const { return cols(id(c)); } |
147 int lpxCol(Col c) const { return cols(id(c)); } |
146 |
148 |
|
149 #ifdef DOXYGEN |
|
150 /// Write the problem or the solution to a file in the given format |
|
151 |
|
152 /// This function writes the problem or the solution |
|
153 /// to a file in the given format. |
|
154 /// Trying to write in an unsupported format will trigger |
|
155 /// \ref UnsupportedFormatError. |
|
156 /// \param file The file path |
|
157 /// \param format The output file format. |
|
158 /// Supportted formats are "MPS" and "LP". |
|
159 void write(std::string file, std::string format = "MPS") const {} |
|
160 #endif |
|
161 |
147 }; |
162 }; |
148 |
163 |
149 /// \brief Interface for the GLPK LP solver |
164 /// \brief Interface for the GLPK LP solver |
150 /// |
165 /// |
151 /// This class implements an interface for the GLPK LP solver. |
166 /// This class implements an interface for the GLPK LP solver. |