Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCourtier committed Dec 15, 2023
1 parent b900110 commit 2578c36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/scripts/spme_max_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def _evaluate(self, x, grad=None):
gravimetric_energy_density_Ah = np.trapz(voltage * current) / (
3600 * cell_mass(self.problem._model._parameter_set)
)
# Take negative in order to maximise energy density
# Return the negative energy density, as the optimiser minimises
# this function, to carry out maximisation of the energy density
return -gravimetric_energy_density_Ah


Expand Down

0 comments on commit 2578c36

Please sign in to comment.