objective_function: Extract the objective function from a model
Description
Extract the objective function from a model
Usage
objective_function(model)
Value
a list with two named elements, 'solution' and 'constant'.
'solution' is a sparse vector from the Matrix package.
'constant' is a constant that needs to be added to get the final obj. value.