
Last chance! 50% off unlimited learning
Sale ends in
simple elevator simulator
sring(x, opt = list(), ...)
perceptron weights
list of optional parameters, e.g.,
nElevators
number of elevators
probNewCustomer
probability pf a customer arrival
nIterations
Number of itertions
randomSeed
random seed
additional parameters
fitness
# NOT RUN {
set.seed(123)
nStates = 6
nElevators = 2
sigma = 1
x = matrix( rnorm(n = 2*nStates, 1, sigma), 1,)
sring(x, opt = list(nElevators=nElevators,
nStates= nStates) )
# }
Run the code above in your browser using DataLab