new_solution {ompr} | R Documentation |
Create a new solution
Description
This function/class should only be used if you develop your own solver.
Usage
new_solution(
model,
objective_value,
status,
solution,
solution_column_duals = function() NA_real_,
solution_row_duals = function() NA_real_,
additional_solver_output = list()
)
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 primal solution values |
solution_column_duals |
A function without arguments that returns a numeric vector containing the column dual solution values. 'NA_real_', if no column duals are available/defined. |
solution_row_duals |
A function without arguments that returns a numeric vector containing the column dual solution values. 'NA_real_', if no column duals are available/defined. |
additional_solver_output |
A named list of additional solver information |
[Package ompr version 1.0.4 Index]