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

Method freeModelIfNeeded

src/common/GurobiWrapper.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void GurobiWrapper::freeModelIfNeeded()
46{
47 for ( auto &entry : _nameToVariable )
48 {
49 delete entry.second;
50 entry.second = NULL;
51 }
52 _nameToVariable.clear();
53
54 if ( _model )
55 {
56 delete _model;
57 _model = NULL;
58 }
59}
60
61void GurobiWrapper::freeMemoryIfNeeded()
62{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected