Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswolgast committed Nov 18, 2024
1 parent 1c78195 commit 4db5808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opfgym/examples/mixed_continuous_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from opfgym.simbench.build_simbench_net import build_simbench_net


def custom_objective_function(net):
def custom_objective_function(net) -> np.array:
""" Use quadratic voltage deviation from 1.0 pu as objective."""
return (net.res_bus.vm_pu - 1)**2

Expand Down

0 comments on commit 4db5808

Please sign in to comment.