Optimization algorithms for electricity market models