Mac_linux Added Optimization without constraints