Production Optimization With Intelligent Wells