Simultaneously optimizing bidding strategy in pay-as-bid-markets and production scheduling. (January 2022)