Optimization Tools For Constrained Energy Markets