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

Method setUpperBound

src/engine/InputQuery.cpp:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void InputQuery::setUpperBound( unsigned variable, double bound )
71{
72 if ( variable >= _numberOfVariables )
73 {
74 throw MarabouError( MarabouError::VARIABLE_INDEX_OUT_OF_RANGE,
75 Stringf( "Variable = %u, number of variables = %u (setUpperBound)",
76 variable,
77 _numberOfVariables )
78 .ascii() );
79 }
80
81 _upperBounds[variable] = bound;
82}
83
84void InputQuery::addEquation( const Equation &equation )
85{

Callers 9

getInputQueryMethod · 0.95
test_statisticsFunction · 0.95
define_ipqFunction · 0.95
test_unit_equation1Function · 0.95
test_unit_equation2Function · 0.95
test_unit_equation3Function · 0.95
test_unit_equation4Function · 0.95

Calls 3

MarabouErrorClass · 0.85
StringfClass · 0.85
asciiMethod · 0.80

Tested by 8

test_statisticsFunction · 0.76
define_ipqFunction · 0.76
test_unit_equation1Function · 0.76
test_unit_equation2Function · 0.76
test_unit_equation3Function · 0.76
test_unit_equation4Function · 0.76