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

Method augmentInitialBasisIfNeeded

src/engine/Engine.cpp:1332–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330}
1331
1332void Engine::augmentInitialBasisIfNeeded( List<unsigned> &initialBasis,
1333 const List<unsigned> &basicRows )
1334{
1335 unsigned m = _preprocessedQuery->getEquations().size();
1336 unsigned n = _preprocessedQuery->getNumberOfVariables();
1337 unsigned originalN = n - m;
1338
1339 if ( initialBasis.size() != m )
1340 {
1341 for ( const auto &basicRow : basicRows )
1342 initialBasis.append( basicRow + originalN );
1343 }
1344}
1345
1346void Engine::initializeTableau( const double *constraintMatrix, const List<unsigned> &initialBasis )
1347{

Callers

nothing calls this directly

Calls 4

getEquationsMethod · 0.80
sizeMethod · 0.45
getNumberOfVariablesMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected