A modeling tool for building a model of a problem involves a plurality of
variables, whereby a heuristic search method can be carried out to
optimize a solution for the modeled problem. The model of a problem
includes a plurality of expressions defined as corresponding to one or
more declarative statements and at least some of the expressions are
dependent on at least one of the variables. The problem modeling tool can
include automatically updating each declarative statement in response to
changes to each variable associated therewith.