Skip to main content
. 2023 Jun 20;23(12):5729. doi: 10.3390/s23125729
Algorithm 1 Cost-based MILP algorithms for the DRO task offloading problem.
  • Input: the convex probability distributional set Mξ, stochastic sample space Fξ, trade-off coefficient λ, confidence level α, ambiguous set parameters γ1 and γ2;

  • Output: offload decision X, optimal cost value to satisfy distribution robustness;

  • Solve the MILP formulation SDP problem with a confidence level of α, to obtain the optimal values of the continuous variables X and the optimal cost value;

  • for i from 0 to N1 do

  •    Sort(N)

  •    [opt,X]=max(Xi)

  •    [x1ij,x2ij]=max2(X)

  •    if SDP(X,xi,j1=1)SDP(X,xi,j2=1) then

  •      xi,j1=1

  •      min_cost[i]=SDP(X,Xi,j1=1)

  •    else

  •      xi,j2=1

  •      min_cost[i]=SDP(X,Xi,j2=1)

  •    end if

  • end for

  • if min_cost[N1]!=NaN then

  •    returnX,min_cost[N1]

  • end if