run_BAS_App: Run shiny interface for BAS/BSAS algorithms

Description Usage Arguments Examples

Description

'run_BAS_App' is built based on 'shiny' and 'shinythemes'. All you have to do is building your objective function in R code. Then, you can change the parameters in Shiny interface and run BAS/BSAS algorithm.

Usage

1
run_BAS_App(func, constr = NULL, theme = "united")

Arguments

func

objective function; see example for more informations

constr

constraints function; see example for more informations

theme

shiny interface themes, default 'united'; 'theme' should be one of c("cerulean","cosmo","cyborg","darkly","flatly", "journal","lumen","paper","readable","sandstone","simplex","slate","spacelab","superhero","united","yeti") see shinytheme for more information.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#======== examples start =======================
# BSAS application on Michalewicz function
library(rBAS)
mich <- function(x){
   y1 <- -sin(x[1])*(sin((x[1]^2)/pi))^20
   y2 <- -sin(x[2])*(sin((2*x[2]^2)/pi))^20
   return(y1+y2)
}
#run_BAS_App(func = mich)
#======== examples end =======================

jywang2016/rBAS documentation built on May 21, 2019, 1:43 a.m.