Learn R Programming

holiglm (version 1.0.1)

solution.hglm: Extract Solution

Description

The solution of the underlying optimization problem, can be accessed via the method 'solution'.

Usage

# S3 method for hglm
solution(
  x,
  type = c("primal", "dual", "aux", "psd", "msg", "objval", "status", "status_code"),
  force = FALSE,
  ...
)

Value

the extracted solution.

Arguments

x

an object of type 'hglm'.

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 the status code is ignored and solutions are returned also where the solver signaled an issue.

...

further arguments passed to or from other methods.