solution: Extract Solution

Description Usage Arguments Value

View source: R/solution.R

Description

The solution can be accessed via the method 'solution'.

Usage

1
2
3
4
5
6
solution(
  x,
  type = c("primal", "dual", "aux", "psd", "msg", "objval", "status", "status_code"),
  force = FALSE,
  ...
)

Arguments

x

an object of type 'OP_solution' or 'OP_solution_set'.

type

a character giving the name of the solution to be extracted.

force

a logical to control the return value in the case that the status code is equal to 1 (i.e. something went wrong). By default force is FALSE and a solution is only provided if the status code is equal to 0 (i.e. success). If force is TRUE ROI ignores the status code and also returns solutions where the solver signaled an issue.

...

further arguments passed to or from other methods.

Value

the extracted solution.


ROI documentation built on Aug. 29, 2020, 3:01 p.m.

Related to solution in ROI...