# Build and return optimization algorithm object
methods::new("OptimParams", "li"=link, "M1"=as.double(M[[1]]),
"M2"=as.double(M[[2]]), "M3"=as.double(M[[3]]), "K"=as.integer(K))
# Build and return optimization algorithm object
methods::new("OptimParams", "li"=link, "M1"=as.double(M[[1]]),
"M2"=as.double(M[[2]]), "M3"=as.double(M[[3]]), "K"=as.integer(K))