Changeset 1055 for trunk/Clp/src/ClpDynamicMatrix.hpp
 Timestamp:
 Jul 25, 2007 11:57:53 AM (12 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Clp/src/ClpDynamicMatrix.hpp
r754 r1055 100 100 Entries at upper bound (really nonzero) never go out (at present). 101 101 */ 102 virtual void packDown(const int * in, int numberToPack) {} ;102 virtual void packDown(const int * in, int numberToPack) {} 103 103 /// Gets lower bound (to simplify coding) 104 104 inline double columnLower(int sequence) const 105 { if (columnLower_) return columnLower_[sequence]; else return 0.0;} ;105 { if (columnLower_) return columnLower_[sequence]; else return 0.0;} 106 106 /// Gets upper bound (to simplify coding) 107 107 inline double columnUpper(int sequence) const 108 { if (columnUpper_) return columnUpper_[sequence]; else return COIN_DBL_MAX;} ;108 { if (columnUpper_) return columnUpper_[sequence]; else return COIN_DBL_MAX;} 109 109 110 110 //@} … … 150 150 /// Status of row slacks 151 151 inline ClpSimplex::Status getStatus(int sequence) const 152 {return static_cast<ClpSimplex::Status> (status_[sequence]&7);} ;152 {return static_cast<ClpSimplex::Status> (status_[sequence]&7);} 153 153 inline void setStatus(int sequence, ClpSimplex::Status status) 154 154 { … … 156 156 st_byte &= ~7; 157 157 st_byte = status; 158 } ;158 } 159 159 /// Number of sets (dynamic rows) 160 160 inline int numberSets() const 161 { return numberSets_;} ;161 { return numberSets_;} 162 162 /// Whether flagged 163 163 inline bool flagged(int i) const { 164 164 return (dynamicStatus_[i]&8)!=0; 165 } ;165 } 166 166 inline void setFlagged(int i) { 167 167 dynamicStatus_[i] = 8; 168 } ;168 } 169 169 inline void unsetFlagged(int i) { 170 170 dynamicStatus_[i] &= ~8;; 171 } ;171 } 172 172 inline void setDynamicStatus(int sequence, DynamicStatus status) 173 173 { … … 175 175 st_byte &= ~7; 176 176 st_byte = status; 177 } ;177 } 178 178 inline DynamicStatus getDynamicStatus(int sequence) const 179 {return static_cast<DynamicStatus> (dynamicStatus_[sequence]&7);} ;179 {return static_cast<DynamicStatus> (dynamicStatus_[sequence]&7);} 180 180 /// Saved value of objective offset 181 181 inline double objectiveOffset() const 182 { return objectiveOffset_;} ;182 { return objectiveOffset_;} 183 183 /// Starts of each column 184 184 inline CoinBigIndex * startColumn() const 185 { return startColumn_;} ;185 { return startColumn_;} 186 186 /// rows 187 187 inline int * row() const 188 { return row_;} ;188 { return row_;} 189 189 /// elements 190 190 inline float * element() const 191 { return element_;} ;191 { return element_;} 192 192 /// costs 193 193 inline float * cost() const 194 { return cost_;} ;194 { return cost_;} 195 195 /// ids of active columns (just index here) 196 196 inline int * id() const 197 { return id_;} ;197 { return id_;} 198 198 /// Optional lower bounds on columns 199 199 inline float * columnLower() const 200 { return columnLower_;} ;200 { return columnLower_;} 201 201 /// Optional upper bounds on columns 202 202 inline float * columnUpper() const 203 { return columnUpper_;} ;203 { return columnUpper_;} 204 204 /// Lower bounds on sets 205 205 inline float * lowerSet() const 206 { return lowerSet_;} ;206 { return lowerSet_;} 207 207 /// Upper bounds on sets 208 208 inline float * upperSet() const 209 { return upperSet_;} ;209 { return upperSet_;} 210 210 /// size 211 211 inline int numberGubColumns() const 212 { return numberGubColumns_;} ;212 { return numberGubColumns_;} 213 213 /// first free 214 214 inline int firstAvailable() const 215 { return firstAvailable_;} ;215 { return firstAvailable_;} 216 216 /// first dynamic 217 217 inline int firstDynamic() const 218 { return firstDynamic_;} ;218 { return firstDynamic_;} 219 219 /// number of columns in dynamic model 220 220 inline int lastDynamic() const 221 { return lastDynamic_;} ;221 { return lastDynamic_;} 222 222 /// number of rows in original model 223 223 inline int numberStaticRows() const 224 { return numberStaticRows_;} ;224 { return numberStaticRows_;} 225 225 /// size of working matrix (max) 226 226 inline int numberElements() const 227 { return numberElements_;} ;227 { return numberElements_;} 228 228 inline int * keyVariable() const 229 { return keyVariable_;} ;229 { return keyVariable_;} 230 230 /// Switches off dj checking each factorization (for BIG models) 231 231 void switchOffCheck(); 232 232 /// Status region for gub slacks 233 233 inline unsigned char * gubRowStatus() const 234 { return status_;} ;234 { return status_;} 235 235 /// Status region for gub variables 236 236 inline unsigned char * dynamicStatus() const 237 { return dynamicStatus_;} ;237 { return dynamicStatus_;} 238 238 /// Returns which set a variable is in 239 239 int whichSet (int sequence) const;
Note: See TracChangeset
for help on using the changeset viewer.