Solving Constraint Optimization Problems in Anytime Contexts