Minimize energy supply cost and emission while meeting process energy demand