R code of the minConf_TMP (converted from minConf
package in MATLAB).
library(devtools)
install_github("cwliu007/minConf")
fw <- function(x) (1-x[1])^2 + 100*(x[2]-x[1]^2)^2 # Rosenbrock function where c(1,1) is minimum
x = c(0,0)
m1 <- optim(x, fw, method = "L-BFGS-B") # for comparison purpose
m1$par
m2 <- minConf_TMP(x, fw, method="lbfgs")
m2$par
m3 <- minConf_TMP(x, fw, method="newton")
m3$par
See https://www.cs.ubc.ca/~schmidtm/Software/TMP/examples.html
M. Schmidt. minConf: projection methods for optimization with simple constraints in Matlab. http://www.cs.ubc.ca/~schmidtm/Software/minConf.html, 2008.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.