Optimization Techniques Program written in Python