Skip to main content
. 2024 Jan 29;24(3):865. doi: 10.3390/s24030865
Algorithm 2: MCVS Scheduling Algorithm
Input: Input data from Table 1 and Algorithm 1.
Output: TaskScheduling
 Steps
Ti..nData(decision); : Algorithm 1 Decision function
Init Vln;
ρkNil;      : MCVS server with zero attributes.
DataattributeDAn;
ϑT=l=1nLjRj   : Cost function of the system
MCVSk={dataset}; : MCVS server set with data.
 Start:
                 while(H)do
 While (R) do
While (Lj)do
if ((LjR)) then
Attribute Match Ai..j: Match all the attributes with resources.
TjRk
drkTj
                Tj(threshold)MkWjWjTj
DecisionHkl,τk=1
                 KjKjRk
VlnUjk    : Checking the context of tasks.
Ki=KiKi
                 Kgi,Kg2Wi,j,k;
if((Kg1>Kg2)A)then
switch(Ti(Kg1)toTi(Kg2))
allocate(Di(g1)=One(1))
(Vln)*Eij         : Optimal Assignment
             else ifTiKg2=NullthenMMKg2Kg2(Limited cost E)while EndWhile EndLoopsEnd