randomizeInputValue

fun randomizeInputValue(map: MutableMap<String, Double>, rnStream: RNStreamIfc = KSLRandom.defaultRNStream(), name: String = randomInputName(rnStream)): InputMap(source)

Randomly generates a new value for the named input variable and returns a new input map. The input map may not be feasible with respect to linear or functional constraints.

Return

the randomly generated point.

Parameters

map

the input map for which the named variable will be changed

rnStream

the stream to use when generating random points within the input range space. By default, this uses the default random number stream KSLRandom.defaultRNStream

name

the name of the input variable to randomize. Must be a valid name for the input map and thus for the problem. The default is a randomly selected name from the problem using the supplied random number stream.