Optimization based bidding strategies in the deregulated market