| optimRS | R Documentation | 
Random Search for mixed or combinatorial optimization. Solutions are generated completely at random.
optimRS(x = NULL, fun, control = list())
| x | Optional set of solution(s) as a list, which are added to the randomly generated solutions and are also evaluated with the target function. | 
| fun | target function to be minimized | 
| control | (list), with the options: 
 | 
a list:
xbestbest solution found
ybestfitness of the best solution
xhistory of all evaluated solutions
ycorresponding target function values f(x)
countnumber of performed target function evaluations
optimCEGO, optimEA, optim2Opt, optimMaxMinDist
seed=0
#distance
dF <- distancePermutationHamming
#creation
cF <- function()sample(5)
#objective function
lF <- landscapeGeneratorUNI(1:5,dF)
#start optimization
set.seed(seed)
res <- optimRS(,lF,list(creationFunction=cF,budget=100,
	vectorized=TRUE)) ##target function is "vectorized", expects list as input
res$xbest 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.