A Planning Model for Agents in Dynamic and Uncertain Real-Time EnvironmentsApplying Local Search to Structural Constraint Satisfaction