Changeset 2026:8d49961ec50f in lemon-0.x
- Timestamp:
- 03/31/06 14:04:48 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2665
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r1993 r2026 160 160 ///The not a number constant 161 161 static const Value NaN; 162 163 static inline bool isNaN(const Value& v) { return v!=v; } 162 164 163 165 ///Refer to a column of the LP. … … 1106 1108 ///\e Solve the LP problem at hand 1107 1109 /// 1108 ///\return The result of the optimization procedure. Possible values and their meanings can be found in the documentation of \ref SolveExitStatus. 1110 ///\return The result of the optimization procedure. Possible 1111 ///values and their meanings can be found in the documentation of 1112 ///\ref SolveExitStatus. 1109 1113 /// 1110 1114 ///\todo Which method is used to solve the problem … … 1291 1295 LpSolverBase::Constr tmp(c); 1292 1296 ///\todo Create an own exception type. 1293 if(! isnan(tmp.lowerBound())) throw LogicError();1297 if(!LpSolverBase::isNaN(tmp.lowerBound())) throw LogicError(); 1294 1298 else tmp.lowerBound()=n; 1295 1299 return tmp; … … 1304 1308 LpSolverBase::Constr tmp(c); 1305 1309 ///\todo Create an own exception type. 1306 if(! isnan(tmp.upperBound())) throw LogicError();1310 if(!LpSolverBase::isNaN(tmp.upperBound())) throw LogicError(); 1307 1311 else tmp.upperBound()=n; 1308 1312 return tmp; … … 1318 1322 LpSolverBase::Constr tmp(c); 1319 1323 ///\todo Create an own exception type. 1320 if(! isnan(tmp.upperBound())) throw LogicError();1324 if(!LpSolverBase::isNaN(tmp.upperBound())) throw LogicError(); 1321 1325 else tmp.upperBound()=n; 1322 1326 return tmp; … … 1331 1335 LpSolverBase::Constr tmp(c); 1332 1336 ///\todo Create an own exception type. 1333 if(! isnan(tmp.lowerBound())) throw LogicError();1337 if(!LpSolverBase::isNaN(tmp.lowerBound())) throw LogicError(); 1334 1338 else tmp.lowerBound()=n; 1335 1339 return tmp;
Note: See TracChangeset
for help on using the changeset viewer.