MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / getUpperBound

Method getUpperBound

src/engine/InputQuery.cpp:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116double InputQuery::getUpperBound( unsigned variable ) const
117{
118 if ( variable >= _numberOfVariables )
119 {
120 throw MarabouError( MarabouError::VARIABLE_INDEX_OUT_OF_RANGE,
121 Stringf( "Variable = %u, number of variables = %u (getUpperBound)",
122 variable,
123 _numberOfVariables )
124 .ascii() );
125 }
126
127 if ( !_upperBounds.exists( variable ) )
128 return FloatUtils::infinity();
129
130 return _upperBounds.get( variable );
131}
132
133List<Equation> &InputQuery::getEquations()
134{

Callers 15

encodeInputQueryMethod · 0.45
encodeReLUConstraintMethod · 0.45
encodeMaxConstraintMethod · 0.45
encodeSignConstraintMethod · 0.45
encodeRoundConstraintMethod · 0.45
storeOriginalQueryMethod · 0.45
runSingleSimulationMethod · 0.45

Calls 5

MarabouErrorClass · 0.85
StringfClass · 0.85
asciiMethod · 0.80
existsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected