Skip to main content
. 2024 Mar 14;24(6):1875. doi: 10.3390/s24061875
Algorithm 1 Best_Geofind Algorithm.
Require:  L::BasicLoad
  Pe←DecomposeTime(L,L.e)
  if  Pe[1]=L.CΔ  then
        return L.e
  end if
   A←GeoFind(L)
  t←RecomposeTime(A)
  if (L.s[1]≤t) and (t≤L.s[end]) then
        return t
  end if
  C1←EvalBasicLoadComfort(L,L.s[1])/EvalBasicLoadCost(L,L.s[1])
   Ce←EvalBasicLoadComfort(L,L.e)/EvalBasicLoadCost(L,L.e)
   Cend←EvalBasicLoadComfort(L,L.s[1])/EvalBasicLoadCost(L,L.s[end])
   val,tempo←C1≥Cend?(C1,L.s[1]):(Cend,L.s[end])  return  Ce≥val?L.e:tempo