summary.optproj: 'summary' method for projection plots.

Description Usage Arguments Details Value See Also

View source: R/summary.optproj.R

Description

summary method for projection plots.

Usage

1
2
## S3 method for class 'optproj'
summary(object, xnames, ...)

Arguments

object

An optproj object, i.e., output from the function optim_proj.

xnames

Optional vector of names for the elements of the potential solution.

...

Further arguments to be passed to or from other methods.

Details

The print methods for summary.optproj and optproj objects themselves both return a three-column matrix, consisting of the potential solution (xsol), the optimal solution in each projection plot (xopt), and the relative difference between the two (R = (xopt - xsol)/|xsol|).

Value

An object of class summary.optproj inheriting from summary.optcheck, with elements:

xsol

The potential solution vector.

ysol

The value of the objective function at xsol.

maximize

Logical indicating whether the potential solution should maximize or minimize the objective function.

xopt

A vector containing the argmax/argmin in each projection plot.

yopt

A vector containing the max/min in each projection plot.

xdiff

A two-column matrix containing the differences between xsol and xopt. The first column is the absolute difference D = xopt - xsol, the second is the relative difference R = D/|xsol|.

ydiff

Same thing, but between ysol and yopt.

See Also

print.summary.optproj for print method.


optimCheck documentation built on Oct. 9, 2019, 9:05 a.m.