Adaptive memory programming for constrained global optimization