submodules/subprojects/highs/extern/filereaderlp/def.hpp
raw| 1 | #ifndef __READERLP_DEF_HPP__ |
| 2 | #define __READERLP_DEF_HPP__ |
| 3 | |
| 4 | #include <stdexcept> |
| 5 | #include <string> |
| 6 | |
| 7 | void inline lpassert(bool condition) { |
| 8 | if (!condition) { |
| 9 | throw std::invalid_argument("File not existent or illegal file format."); |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | const std::string LP_KEYWORD_INF[] = {"infinity", "inf"}; |
| 14 | const std::string LP_KEYWORD_FREE[] = {"free"}; |
| 15 | |
| 16 | const unsigned int LP_KEYWORD_INF_N = 2; |
| 17 | const unsigned int LP_KEYWORD_FREE_N = 1; |
| 18 | |
| 19 | #endif |