This function/class should only be used if you develop your own solver.
new_solution(
model,
objective_value,
status,
solution,
solution_column_duals = function() NA_real_,
solution_row_duals = function() NA_real_,
additional_solver_output = list()
)
the optimization model that was solved
a numeric objective value
the status of the solution
a named numeric vector containing the primal solution values
A function without arguments that returns a numeric vector containing the column dual solution values. `NA_real_`, if no column duals are available/defined.
A function without arguments that returns a numeric vector containing the column dual solution values. `NA_real_`, if no column duals are available/defined.
A named list of additional solver information