Skip to main content
. 2024 Mar 14;24(6):1875. doi: 10.3390/s24061875
Algorithm 2 Hybrid Algorithm.
Require:  H::VectorBasicLoad
Require:  demandScale::Float64           ▹ default value 0.95
Require:  maxIterations::Int64             ▹ default value 5
  tBest_Geofind_Vector(H)
  count0
  while true do
       Hcut,Bfind_Demand_Peaks(H,t)    ▹ return loads and its indexes
       if isempty(B) or count ≥ maxIterations then
           return t
       end if
       tcut ← JuMP_MOA_Vector(Hcut; demand=true, demandScale)
       for i in eachindex(B) do
           t[B[i]]tcut[i]
       end for
       count++
  end while