x_dc_energy</span> <span class="o">=</span> <span class="p">(</span><span class="n">max_dc_power_w</span> <span class="o">/</span> <span class="n">num_timestep_hour</span><span class="p">)</span> <span class="o">*</span> <span class="p">(</span><span class="n">num_timestep_hour</span> <span class="o">*</span> <span class="n">num_hours_battery</span><span class="p">)</span> <span class="c1"># (energy_per_timestep) * (timestep * num_hours) Wh</span>
    <span class="n">max_dc_energy</span> <span class="o">=</