Learn R Programming

optR (version 1.2.5)

print.optR: print coefficients for optR class

Description

optR is the default function for optimization

Usage

"print"(x, ...)

Arguments

x
: Input of optR class
...
: S3 class

Examples

Run this code
# 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)

Run the code above in your browser using DataLab