optimizing constraint miniminization, thinking about monte carlo