Smart production scheduling with time-dependent and machine-dependent electricity cost by considering distributed energy resources and energy storage | Synapse