This function/class should only be used if you develop your own solver.

new_solution(model, objective_value, status, solution)

Arguments

model
the optimization model that was solved
objective_value
a numeric objective value
status
the status of the solution
solution
a named numeric vector containing the solution values