print.optR: print coefficients for optR class

Description Usage Arguments Examples

View source: R/optR.R

Description

optR is the default function for optimization

Usage

1
2
## S3 method for class 'optR'
print(x, ...)

Arguments

x

: Input of optR class

...

: S3 class

Examples

1
2
3
4
5
# Solving equation Ax=b
A<-matrix(c(6,-4,1, -4,6,-4,1,-4,6), nrow=3,ncol=3, byrow = TRUE)
b<-matrix(c(-14,36, 6), nrow=3,ncol=1,byrow=TRUE)
Z<-optR(A, b, method="gauss")
print(Z)

Example output

Loaded optR Version:            1.2.5
call: 
optR.default(x = A, y = b, method = "gauss")

 Coefficients: 
     [,1]
[1,]   10
[2,]   22
[3,]   14

optR documentation built on May 29, 2017, 2:10 p.m.