Input Definition
Represents the definition of an input variable for a ProblemDefinition. Input variables are the variables used in the problem to model the decision parameter of the simulation model. The input variable name should correspond to some named parameter (e.g. control) in the model.
The specified granularity indicates the acceptable precision for the variable's value with respect to decision-making. If the granularity is 0 then no rounding will be applied when evaluating the variable. Granularity defines the level of precision for an input variable to which the problem will be solved. Setting granularity to 0, the default, means that the solver will attempt to find a solution to the level of machine precision. For any positive granularity value, the solution will be found to some multiple of that granularity. As a special case, setting granularity to 1 implies an integer-ordered input variable. The specification of granularity reflects a reality for the decision maker that there is a level of precision beyond which it is not practical to implement a solution.
Parameters
the name of the input variable
the lower bound on the range of possible values
the upper bound on the range of possible values
the acceptable precision for decision-making
Constructors
Represents the definition of an input variable for a ProblemDefinition. Input variables are the variables used in the problem to model the decision parameter of the simulation model. The input variable name should correspond to some named parameter (e.g. control) in the model.
Functions
Requires granularity to be greater than 0.0 or an IllegalArgumentException will be thrown. If granularity is 0.0, then the set of points is infinite.
Randomly generates a value within the input variable's range with the appropriate granularity
This function does not check if the supplied value is within the specified bounds. Thus, the returned value may be infeasible with respect to bounds.