cpp solvemodel