reinit

Helper functions for variable reinitialization.

Functions

linspace(lower, upper, n)

Linearly spaced range.

midpoint_guess_and_bound(val, lb, ub)

Midpoint between current value and farthest bound.

rand(val, lb, ub)

rand_distributed(val, lb, ub[, divisions])

Random choice among evenly distributed set of values between bounds.

rand_guess_and_bound(val, lb, ub)

Random choice between current value and farthest bound.

reinitialize_variables(model, config)

Reinitializes all variable values in the model.

simple_midpoint(val, lb, ub)