Skip to content

C++ Interface

All methods are provided through the Solver class (src/core/solver.h).

#include "solver.h"

Solver solver;
solver.readConfiguration();

Return codes

Setter methods return RETURN_OK (1) on success and RETURN_ERROR (0) on failure. The constants are defined in src/core/utils/constants.h.


Reference

  • Problem — reading, creating and configuring the problem (topology, objective, resources)
  • Algorithms — setup, enable/disable, reset, and solve
  • Solutions — accessing, ranking and printing solutions
  • Query — getters for graph, objective and resource data