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

Method getSolutionValue

src/engine/InputQuery.cpp:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162double InputQuery::getSolutionValue( unsigned variable ) const
163{
164 if ( !_solution.exists( variable ) )
165 throw MarabouError( MarabouError::VARIABLE_DOESNT_EXIST_IN_SOLUTION,
166 Stringf( "Variable: %u", variable ).ascii() );
167
168 return _solution.get( variable );
169}
170
171void InputQuery::addPiecewiseLinearConstraint( PiecewiseLinearConstraint *constraint )
172{

Callers 15

solveFunction · 0.80
mainFunction · 0.80
run_testMethod · 0.80
mainFunction · 0.80
getSolutionMethod · 0.80
printResultMethod · 0.80
exportAssignmentMethod · 0.80
displayResultsMethod · 0.80
attemptToRefineMethod · 0.80

Calls 5

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

Tested by 15

run_testMethod · 0.64
test_disjunction_1Method · 0.64
test_disjunction_2Method · 0.64
test_fesiableMethod · 0.64
test_max_fesibleMethod · 0.64
test_sign_2Method · 0.64
test_sign_5Method · 0.64
test_sign_6Method · 0.64