solvers: replace static const by enum, as defining and assigning static consts in a header is not safe.

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>