inputVariable

fun inputVariable(name: String, lowerBound: Double, upperBound: Double, granularity: Double = 0.0): InputDefinition(source)

Defines an input variable for the problem. The order of specification for the input variables defines the order when interpreting an array of inputs.

Parameters

name

the name of the input variable. Must be in the set of names supplied when the problem was created.

lowerBound

the lower bound on the range of the input variable. Must be less than the upper bound. Must be finite.

upperBound

the upper bound on the range of the input variable. Must be greater than the lower bound. Must be finite.

granularity

the granularity associated with the variable see ksl.utilities.math.KSLMath.mround. The default is 0.0


fun inputVariable(name: String, interval: Interval, granularity: Double = 0.0): InputDefinition(source)

Defines an input variable for the problem. The order of specification for the input variables defines the order when interpreting an array of inputs.

Parameters

name

the name of the input variable. Must be in the set of names supplied when the problem was created.

interval

the interval containing the variable

granularity

the granularity associated with the variable see ksl.utilities.math.KSLMath.mround. The default is 0.0