|
Go to the documentation of this file.
23 #ifndef __SCIP_INTERVALARITHEXT_HPP__
24 #define __SCIP_INTERVALARITHEXT_HPP__
26 #include "scip/intervalarith.h"
34 #ifdef SCIPInterval_NAMESPACE
51 SCIPintervalSetBounds( this, -infinity, infinity);
56 const SCIP_INTERVAL& x
59 SCIPintervalSetBounds( this, x.inf, x.sup);
68 SCIPintervalSetBounds( this, infinum, supremum);
76 SCIPintervalSet( this, number);
85 SCIPintervalSetBounds( this, newinf, newsup);
90 const SCIP_INTERVAL& y
93 if( SCIPintervalIsEmpty(* this) && !SCIPintervalIsEmpty(y) )
95 if( this->inf <= -infinity && y.inf > -infinity )
97 if( this->sup >= infinity && y.sup < infinity )
99 return (this->inf == y.inf) && (this->sup == y.sup);
104 const SCIP_INTERVAL& y
107 return !operator==(y);
115 return ( (inf == y) && (sup == y) ) ||
116 ( sup <= -infinity && y <= -infinity ) ||
117 ( inf >= infinity && y >= infinity );
161 SCIPintervalSet( this, y);
167 const SCIP_INTERVAL& y
170 SCIPintervalSetBounds( this, y.inf, y.sup);
212 SCIPintervalSetBounds(&resultant, -y.sup, -y.inf);
252 SCIPerrorMessage( "Cosinus of interval not implemented. Returning trivial interval [-1,1].\n");
332 SCIPerrorMessage( "Sinus of interval not implemented. Returning trivial interval [-1,1].\n");
371 SCIPintervalAbs(&resultant, x);
384 SCIPintervalSign(&resultant, x);
390 #define SCIP_INTERVALARITH_UNDEFFUNC(function) \
392 SCIPInterval function( \
393 const SCIPInterval& x \
396 SCIPerrorMessage("Error: " #function " not implemented for intervals.\n"); \
397 return SCIPInterval(); \
408 #undef SCIP_INTERVALARITH_UNDEFFUNC
410 #ifdef SCIPInterval_NAMESPACE
|