print.optR {optR}R Documentation

print coefficients for optR class

Description

optR is the default function for optimization

Usage

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

Arguments

x

: Input of optR class

...

: S3 class

Examples

# 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)

[Package optR version 1.2.5 Index]