| 195 | } |
| 196 | |
| 197 | void Marabou::exportAssignment() const |
| 198 | { |
| 199 | String assignmentFileName = "assignment.txt"; |
| 200 | AutoFile exportFile( assignmentFileName ); |
| 201 | exportFile->open( IFile::MODE_WRITE_TRUNCATE ); |
| 202 | |
| 203 | unsigned numberOfVariables = _inputQuery.getNumberOfVariables(); |
| 204 | // Number of Variables |
| 205 | exportFile->write( Stringf( "%u\n", numberOfVariables ) ); |
| 206 | |
| 207 | // Export each assignment |
| 208 | for ( unsigned var = 0; var < numberOfVariables; ++var ) |
| 209 | exportFile->write( Stringf( "%u, %f\n", var, _inputQuery.getSolutionValue( var ) ) ); |
| 210 | |
| 211 | exportFile->close(); |
| 212 | } |
| 213 | |
| 214 | void Marabou::solveQuery() |
| 215 | { |
nothing calls this directly
no test coverage detected