Skip to content

Commit

Permalink
Small docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Apr 22, 2024
1 parent 7fbe8d3 commit 8852c4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/src/allocation_optim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ end

"""
Set the objective for the given priority.
For an objective with absolute values this also involves adjusting constraints.
"""
function set_objective_priority!(
allocation_model::AllocationModel,
Expand Down
2 changes: 1 addition & 1 deletion docs/core/allocation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ When performing main network allocation, the connections to subnetworks are also

This type of objective cares about the fraction of the demand allocated, and will lead to an equal fraction of all demands allocated when possible. For a discussion on this see [here](https://github.com/Deltares/Ribasim/pull/1366).

Likewise, the error of level demands from basins is the absolute difference between flows consumed by basins and basin demands.
Likewise, the error of level demands from basins is the squared relative difference between flows consumed by basins and basin demands.
$$
E_{\text{level demand}} = \sum_{i \in B_S} d_i^p(t)\left(1 - \frac{F_i^\text{basin in}}{d_i^p(t)}\right)^2
$$
Expand Down

0 comments on commit 8852c4a

Please sign in to comment.