added optimiztion constraints for advanced settings