1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 2 /* */ 3 /* This file is part of the HiGHS linear optimization suite */ 4 /* */ 5 /* Written and engineered 2008-2021 at the University of Edinburgh */ 6 /* */ 7 /* Available as open-source under the MIT License */ 8 /* */ 9 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 10 11 #ifndef HIGHS_DOMAIN_CHANGE_H_ 12 #define HIGHS_DOMAIN_CHANGE_H_ 13 14 enum class HighsBoundType { Lower, Upper }; 15 16 struct HighsDomainChange { 17 HighsBoundType boundtype; 18 int column; 19 double boundval; 20 21 bool operator<(const HighsDomainChange& other) const { 22 if (column < other.column) return true; 23 if (other.column < column) return false; 24 if ((int)boundtype < (int)other.boundtype) return true; 25 return false; 26 } 27 }; 28 29 struct HighsSubstitution { 30 int substcol; 31 int staycol; 32 double scale; 33 double offset; 34 }; 35 36 #endif