1 Introduction

Cloud is a large network that is used today in various places, including data centers of large organizations that store data. Given that in the cloud network there are many users such as mobile, computer, IoT, etc. that are connected, so there is a phenomenon called Task scheduling that must be considered, means that the data of which user and with what priorities should be processed first [1]. Task scheduling phenomenon and energy consumption are the most important challenges in heterogeneous systems and cloud computing. Recourse (requests) management and their proper allocation in order to run on machines, has a significant impact on the quality of system performance. When the huge volume of requests that enter the network are properly and accurately managed, it reduces energy consumption, execution time and operating costs, which ultimately leads to the establishment of green computing in the cloud network [2,3,4]. For this purpose, in the field of scheduling, researchers utilized different methods to optimize energy consumption. Given that we face an NP-hard problem in scheduling problems, a number of researchers used meta-heuristic methods to proposed some ranking models. The RR method assigned requests to machines randomly [2, 5], due to the weakness of this method, the possibility of not optimal use of machine capacity, ranking methods and meta-heuristic methods are presented. Dynamic voltage and frequency scaling (DVFS) algorithm allocates requests based on the characteristics of each machine and by giving weight to each component of the machine, including RAM, CPU and hard drive [2, 6, 7]. The most important meta-heuristic optimization algorithms for allocating requests to machines that consume less energy are Particle Swarm Optimization (PSO) and Ant colony optimization (ACO), which aim to select the shortest path for assigning requests to machines. Genetic Algorithm (GA) performs allocation based on the selection of the best chromosome obtained from a combination of several chromosomes [8, 9]. There are various meta-heuristic algorithms, but we will not discuss them since our work is based on only the above methods.

Fig. 1
figure 1

Relationship between task scheduling and request assignment to virtual machines managed by efficient physical machines

1.1 Problem Statement

In the Internet of Things (IoT) network, due to the large number of heterogeneous devices and sensors that are interconnected, we are faced with large amounts of data that require communication, coordination and interoperability of resources and devices, as well as in the Fog network, which is a cloud area with enormous sensors and connected devices, the need for task scheduling is felt, so choosing a machine that creates the shortest path for sending tasks to run on the network is essential [10, 11]. Also, according to the Fig. 1, determining efficient physical machines using a mathematical optimization algorithm improves cloud network performance. As can be seen in Fig. 1, each physical machine generates outputs by receiving a series of inputs, and by using these inputs and outputs, the efficiency of each physical machine is obtained through a Data Envelopment Analysis model. The inputs of physical machines can be considered as one or more items including RAM, CPU, MIPS or HDD-Hard, and the output of the virtual machine optimization problem is assumed to be the result of task assignment [12, 13].

In short, the main problem of establishing Green Computing in the cloud network is to minimize energy and resource consumption, this process is done by observing the correct scheduling that results from the proper allocation of input requests to machines [14].

1.2 Motivation

Due to the problems in the cloud network that prevent the proper distribution of resources between users and cause users to have problems when using the network, providing solutions to the problems caused by the large cloud network and unlimited network-connected devices, as well as load balancing and resource depletion is very important. On the other hand, the problem of assigning the incoming requests to the network has motivated in-network research. Due to the increasing number of devices, especially in 5G environments, inter-vehicle networks, IoT networks and Fog environments and rapid growth of users, so these users and tasks that users perform on the network must be managed, so task scheduling problem has provided an essential motivation to start this research.

Finally, it is important that tasks are properly handled to store energy in the network, keep the network SLA normal, and maintain network load balanced. On the other hand, choosing an efficient physical machine in which a virtual machine is active in order to improve performance and increase system efficiency is considered as an optimization problem. Therefore, choosing machines that increase the efficiency and effectiveness of the system while considering the shortest path is important, especially when faced with inaccurate or fuzzy data.

We have special innovations in this field that use mathematical algorithms to solve existing problems. Our contribution is as follows:

  • In order to select efficient physical machines, we used a mathematical optimization algorithm in which the efficiency of each machine is calculated with fuzzy inputs and outputs for machines.

  • The FIDEA model is also proposed for the case where fuzzy inputs and outputs fluctuate, so that, it adjusts the amount of input fluctuations caused by output fluctuations in such a way that the efficiency of the machines is maintained.

  • For each of the physical machines, Ram and CPU are considered as inputs and virtual machines in fuzzy mode are considered as outputs, each of which can have tolerance, and with these inputs and outputs, the best physical and virtual machines are used in the Task Scheduling process.

1.3 Goal of This Research

In this paper, we propose a fuzzy Markov algorithm combined with a fuzzy Inverse Markov Data Envelopment Analysis Process (FIMDEAP) to perform task scheduling in the cloud network while maintaining machine performance. To evaluate the proposed algorithm, we used Service Level Agreement (SLA) which includes makespan and gain cost [7, 15] The main goal of this paper is to select efficient physical machines in order to increase system efficiency and also to allocate requests to virtual machines under the management of efficient physical machines with the shortest path in fuzzy environments. The proposed FIMDEAP model saves energy, establishes load balancing and improves SLA standards compared to other algorithms while maintaining machine performance.

In general, goals are divided into two categories:

  • Main goals:

  • Energy consumption reduction

  • Response time

  • Network Profitability

  • Handle requests

  • Sub-goals:

  • Select efficient physical machines by presenting the FIDEA optimization model

  • Select the appropriate virtual machines for scheduling with the fuzzy Markov method

  • Energy and resource saving through choosing the right physical and virtual machines

1.4 Paper Structure

The structure of this paper is as follows: basic concepts and main challenges are discussed in Sect. 1. Section 2 deals with the research background and related work and their comparison and then details of the methods are given in Table 1. Our proposed method is provided in Sect. 3. Simulation results and the proof of the efficiency of the proposed method are shown in Sect. 4. Conclusions and future work of this research are presented in Sect. 5.

2 Related Work

In this section, we review task scheduling methods in the field of fuzzy markup, the details of which are as follows.

Table 1 Details of research background and related work

Authors in [7], processed data based on adaptability, data planning, and network coding to examine data encryption and decryption in IoT, then and to examine the data, they performed data dissemination (propagation) in IoT based on that. To do this, the authors proposed a hybrid Markov-Neural Networks (PECMAN) method for efficient scheduling (optimal time achievement), and reduction of packet sending losses. They used Markov’s decision-making process in the Internet of Things to examine compatibility and dynamic innovative programming. Using the ADP method, they designed an AMDP with infinite phases to solve the propagation planning problem. Comparing EMUSA, Polynomial-time Optimal Storage Allocation (DSA) and Event-Aware Back Pressure Scheduling (EABS) with Contiki’s proposed polymorphic erasure coding with Markov Design Adaptability and Neural Network (PECMAN) showed greater efficiency in terms of cost, time, and latency. As a result of the evaluation criteria, they compare the probability of reaching the maximum number of IoT devices, the number of IoT devices versus collisions, the number of IoT devices versus collisions with queue size, operational capacity, operational capacity with queue size, the number of gates versus failure possibility, propagation delay, propagation delay with queue size, energy consumption, as well as energy consumption with queue size and type.

In [16], authors considered Secure storage for data and used a heuristic fuzzy algorithm in the cloud for data allocation. Because of the excessive data entry in the cloud network, load balancing is disrupted, so to prevent it, a secure storage is placed in the network. When the sensors or tasks that move between the generated queue and the cloud space are too large, the network load and bandwidth will be disrupted, eventually causing the loss of Energy Consumption and Green Computing in the network. They considered the use of secure storage for data in the cloud infrastructure, used Secure storage to optimize resources, and then provided better energy to the network through this secure environment. In this paper, heuristic fuzzy algorithms are presented for securing allocation of storage in cloud environments for large networks with clustering of client systems using a fuzzy clustering mechanism. As scalable cloud storage is essential for sensitive data in industry and companies, the authors presented a heuristic fuzzy algorithm for secure cloud storage allocation in cloud environments. The server generates a distributed public key using the RSA to ensure security and resolve memory recovery problems, and then server uses the K-nearest neighbors (KNN) method to search queries in order to store data in clusters by customers which is in fact a router for efficient storage allocation. The proposed method seeks to select the optimal cluster (cluster head among clusters) based on CPU Core, Speed and RAM Capacity. They claimed that, their method is a load balancing method in the cluster network, which increases efficiency by reducing energy consumption, in fact, it balances the load in the cluster network. Simulated results using Sheepdog and Apphorbor showed that the authors’ method is better in terms of scheduling as well as load balancing than meta-heuristic techniques such as ACO and genetic algorithms, but their method was not compared to PSO.

In [17], authors examined Energy Efficient or green computing in the wireless sensor network. Due to the fact that in the cloud network, a series of inputs are considered sensors, so task scheduling for these sensors in the cloud network is essential in order to establish Energy Efficient to achieve green computing. This paper investigates the energy factor as one of the QOS factors, which reduces the energy consumption of sensor nodes using the MDP framework in the wireless sensor network (WSN). Solutions designed by MDP have been used for problems such as energy consumption, coverage area harvesting, resource optimization, solution tracking, power optimization, etc. A Semi-MDP based model is used to present several data aggregation and routing techniques. It has been investigated to obtain more and better solutions in the efficient sensor network by using the Markov process and the design of the MDP framework. The designed framework includes protocols and algorithms compatible with WSN.

Its objective is to assign requests to workstations, prioritizing requests, limiting workloads, and optimizing performance criteria. In [18], authors balanced the assembly line by considering the health of the machines and the real-time trigger settings for the first time. In fact, by improving the quality of decision making through using full information of the assembly process in real time, they determined the starting point for setting the initial assembly line. In the balancing process, they used a fuzzy control system to determine the rebalancing time and adjust the production rate of the workstations, which includes two types of fuzzy controllers to monitor and control the assembly line in real time. The first controller is used to support decision making for the rebalancing time of the assembly line, and the second controller adjusts production rate of each workstation. Also, when the machines are working, the health status of the machines is checked using a three-state Markov chain. Their method tries to react quickly to disturbances in the production line process. Their method intelligently controls the production line process and serves as a reference for researchers of Industry. Their proposed method, the assembly line with fuzzy control system (AS1), performed better than AS2, AS3, AS41 and AS42, so that compared to AS2 and AS3, it caused and compared to AS41 and AS42 that use a different control system, fuzzy control system AS1 performed better. In their work, the maintenance of machines, which is one of the influential factors in the production line process, has not been studied.

The authors [19] used NFV and SDN to optimize QOS and improved the evaluation criteria of QOS and delay of scheduling using the combination of Markov process and Reinforcement Learning (RL) method. They claimed that, NFV could be helpful in the field of IoT and QOS, and discussed the performance of virtualization models in modern networks such as 5 G and E2E. To reduce the task execution overhead, they used their hybrid method to predict subsequent tasks and used a combined MILP method to solve NP-hard problems and performed task scheduling using SDN/NFV. In fact, they investigated NFS problem to minimize the completion time of all services while meeting different End-to-End (E2E) latency requirements. In this regard, they presented a Mixed Integer Linear Programming (MILP) problem and used Markov’s decision as an efficient and accurate method to solve it. The authors also provided a Traffic Model for sending requests with a specific T between NFV components. By comparing their method with other heuristic ones in terms of Makespan and Running time criteria, they proved the superiority of their method which facilitates the guarantee of QOS in networks equipped with SDN/NFV. RL is one of the methods that can optimize scheduling in the cloud environment. This work has been done in the cloud to solve Np-hard problems, and one of its goals is to reduce traffic engineering, which optimizes network energy.

In [20], a Markov decision-making algorithm based on computation offloading is presented for the mobile network by considering time constraints in allocation process. They proposed a Markov Decision Process Algorithm (MDPCO) to minimize the energy consumption that may occur due to degradation of sent data to the cloud network remotely, and proposed an Offloading Algorithm based on Markov’s decision making. By decomposing the main problem into two sub-problems, they optimized the local computation frequency sing convex optimization and the transmission power using the dual problem, and proposed efficient Offloading Algorithm MDPO for the decision-making problem. They modeled the whole loading process as MDP in terms of status, actions and benefits. They also proposed two improved algorithms to solve the MDP by introducing the state function and the Belman equation. They analyzed the time complexity of the MDPCO and MDPO algorithms. By comparing the proposed method with Guo, Chen and Zhang algorithms in terms of QOS, they proved the efficiency of their algorithm. In EEC, Cost and reliability criteria, MDPCO method performed better than Guo. As well, compared to the other two algorithms with different number of requests and weights in EEC criterion, the proposed method performed better. Also, the offloading rate is more reduced compared to other algorithms.

In the centralized model, we have a server such as a cloud network that is responsible for deciding on other nodes or network elements (client), but in the decentralized method, each element decides automatically. The authors in [30] applied Decentralized method to Fuzzy RL. To solve the unlimited Dec-POMDP, it was introduced an incremental fuzzy model to consider the cooperative mode, MAS. Additionally, a Multi-Agent algorithm was used where each node in a decentralized environment was assigned an agent that was defined as a queue pattern and a processing pattern. To approximate the optimal Q value for these belief vectors, an incremental clustering algorithm was used in conjunction with Q learning. The authors proposed the DIFRL algorithm as a decentralized controller to find a solution to evaluate large-scale Dec-POMDP criteria using a fuzzy rule for each factor. Finally, they expressed the scalability of their method in dealing with large scale problems in the real world as one of the advantages of the method. Experimental results showed this method performed better than compared ones in terms of execution time and execution accuracy and processing speed and occupied less memory. If the volume of tasks is small, the proposed method is more efficient than the centralized mode, so in the face of large tasks, the proposed method is not suitable, which is one of the disadvantages of this method.

In [21], they used the RL algorithm and Markov decision process to schedule Agile Earth Observation Satellites. An advanced heuristic algorithm (HADRT) and improved Q-learning algorithms were developed to solve the Markov decision-making process model for the scheduling problem (AEOS). In fact, they focused on the AEOS scheduling by proposing an effective RL approach. The authors proposed a new MDP framework for solving AEOS scheduling problems, which divides the problem into two sub-problems (1) work sequence problem and (2) scheduling problem that are processed in different parts of the MDP. They also developed an offline RL algorithm to guide the decision-making process, which includes a rule to avoid unlimited loops in each cycle in order to improve efficiency. They used a combination of deep Q-learning and an innovative innovative algorithm for scheduling AEOS, which solves the sequence and time problem in the AEOS scheduling problem, respectively. The proposed algorithm has higher accuracy and speed compared to other advanced RL algorithms. The comparison results of three methods HADRT, ALNS and RL showed that HADRT method with CPU time criterion performs better than other algorithms, while with HADRT algorithm, Total profit is less in most cases. In general, the proposed method works well for satellite scheduling problem with sufficient transmission and power sources, but is not suitable for more complex conditions with more constraints.

The authors in [22] proposed a Deep Q-Network (DQN) method for addressing DFJSP by inserting new tasks. In order to minimize input latency, the Dynamic Flexible Job shop scheduling problem (DFJSP) was modeled as a Markov decision-making process which determines the processing of operations sequentially in the next step and used the DRL method to solve the model. The paper considers general properties that the values [0,1] are extracted to represent a state at any point in time. Measures are designed to simultaneously determine which operations are processed in the next step and which devices are assigned to them. A DQN network is designed to measure the performance of each rule, which determines the most appropriate choice for dispatch in different decision-making situations. Numerical tests indicate the better performance and generality of QDN method and against other dispatching rules, this method has better performance in configurating trained and untrained productions.

In [23], the authors proposed a Fuzzy base optimization method to reduce Overloading on the Cloud Network. When a series of applications such as mobile, Fog Computing or IoT applications are integrated in the cloud, it causes a heavy load on the network, so we face an NP-hard problem for task scheduling. The authors presented a fuzzy hybrid algorithm with PSO, and obtained the initial population using PSO in order to perform task scheduling and applied a fuzzy pattern to it, which controls load and establishes overloading in the system. A fuzzy simplified swarm optimization (FSSOCO) algorithm based on cloud computing is proposed to achieve high processing speed, reduced latency, better computability, and better offloading (minimizing service costs and latency) with less memory consumption in Mobile Network Computing (MCC). They used fuzzy logic to identify powerful nodes and assign heavy calculations to those nodes. The proposed Fuzzy logic base method is used to reduce Complexity or Overhead, and the PSO is used to reduce weighted total cost, and Energy Consumption is controlled using Swarm Optimization.

The simulation results of the proposed FSSOCO method in comparison with other offloading techniques such as SPSO, MMRO and OMPSO confirm the better performance of the proposed method in terms of Energy consumption, Processing time and Weighted Total Cos, but Makespan that is a main criterion is not compared.

As a disadvantage, when PSO is used complexity is high and since the problem is NP-hard, it is not possible to control the load applied to the network, ie it cannot be detected that the resulting load includes which item for example Tasks Video, Noise or Communication or etc. As well, the fuzzy pattern considers a specific phase of the problem and does not take into account the details of the simulation and algorithm in a real environment, so it may not be appropriate to generate the initial population using PSO method in order to use the fuzzy method for task scheduling.

In [24], the authors presented a dynamic programming problem using cloud-optimized neural networks. This reference tries to take into account both the views of the user and the cloud service provider, which means that while minimizing response time and service costs, it focuses on optimal resource utilization, reliability, and minimizing maintenance costs. So, the authors presented an Artificial Neural Networks (ANN) based scheduling algorithm that is optimized using the firefly algorithm in the cloud environment. Experimental results showed that although this algorithm is simple, it increases the convergence speed and minimizes training error in different conditions.

In this paper, through ensuring system reliability in real-time embedded systems, energy-efficient planning problem is investigated. DVFS is efficient for optimizing energy consumption but it reduces system reliability, so the authors [25] proposed a greedy energy-efficient (GEE) algorithm to improve energy efficiency by considering reliable constraints. The GEE algorithm sets the task execution frequencies so that we have the least energy consumption in the execution of the tasks and this execution ends before the deadline. Since GEE reduces operating frequencies, a set of constraints has been analyzed and proposed to reduce prerequisite times during executions, which reduces system power consumption and execution time. To balance the execution frequencies, they proposed two energy-efficient algorithms that use processor. Given that the actual execution time of tasks may be less than the worst-case execution time in many cases, a dynamic global scheduling algorithm based on the real-time execution is proposed to maximize energy efficiency by taking into account system reliability. Experimental results indicated that their proposed methods have a significant improvement in energy efficiency and system reliability compared to other related methods.

In [26], Energy-aware request planning for constraints with deadlines in heterogeneous clusters equipped with DVFs is investigated. When dealing with very large data with high computational volume, energy storage and energy saving are of great importance. The authors examined energy savings in CPU hybrid clusters using a specific DVFs and aimed to minimize the total energy consumption for a batch of offline/online tasks or a sequence of tasks in real time by considering deadline for constraints. They provided a fast and accurate model for setting the right voltage/frequency for each task, packing a set of tasks on a number of servers to reduce static power consumption. Then, using a heuristic algorithm in both online and offline modes, they assigned several requests to a cluster that uses re-adjusting runtime of DVFs to create a balance between static and dynamic energy consumption. In fact, their model provides a non-linear relationship between the execution time of tasks and CPU speed for accelerated CPU applications, which results in achieving accurate CPU power consumption. Simulation showed that \(34\%\) of energy can be saved and the proposed method can be used for energy management in modern heterogeneous clusters.

Energy-Aware workflow scheduling in green cloud is investigate in [27] and a two-step algorithm called best heuristic scheduling (BHS) is proposed for DAG graph programming in cloud processors Resource allocation to requests is accomplished in the first step using four heuristic algorithms and the Grasshopper algorithm. According to the importance factor of the user or service provider, it determines the most appropriate way to accomplish tasks so as to achieve the optimal solution at the appropriate time. In the second step, the proposed BHS method minimizes energy consumption by considering the impact factor of the end user or service provider, start time, start-up and completion times of services and energy specifications of each virtual machine. In fact, the BHS method performs workflow scheduling and automatically generates the power consumption specifications by creating a methodology and selects the best sorting method based on a heuristic method and Grasshopper algorithm to increase the efficiency of task execution and then provides a model for energy consumption and duration of tasks. The simulation results in MATLAB emulator for 1000 requests using Dag graph showed that compared to BHS and multi-heuristic resource allocation algorithm (MHRA), the proposed BHS method saves \(19.71\%\) more energy and also \(56.12\%\) reduction for Makspan is observed in heterogeneous environments.

When assigning tasks to virtual machines in the Task Scheduling process, a large amount of carbon dioxide is released into the air, which is necessary to minimize it [28]. So, a whale optimization-based task scheduling algorithm is proposed for scheduling requests with prioritized performance on appropriate virtual machines in cloud network. It first determines the priorities of tasks and virtual machines to properly task assignment. then a multi-objective optimization model is developed to minimize energy consumption and power costs in the data center. Simulation results using the CloudSim simulator show that the proposed algorithm performed better than PSO and CS in terms of energy consumption and electricity cost and could minimize energy consumption. The energy consumptions in 100 requests were 10.75 and 9.87 for PSO and CS methods, respectively and 7.45 watts for the proposed method; in 500 requests were 13.46 and 12.38 for PSO and CS method respectively and 10.22 watts for the proposed method; and in 1000 requests were 17.65 and 16.86 for PSO and CS methods respectively and 11.56 watts for the proposed method.

In [29], inputs in the cloud network are considered as Internet of Things (IoT). They proposed an innovative rescheduling algorithm to convert in-period data dependencies to application-level periodic data dependencies to maximize parallelism and reduce rescheduling latency. They also introduced a new meta-heuristic algorithm called ARSH-FATI for task scheduling that considers processor power, the conflict between Network-on-Chip (NoC) links, and the communication between VFIs when mapping tasks. They also developed an Earliest Edge Consistent Deadline First (EECDF) Scheduling method that can be applied on both task nodes and communications. Their proposed method performs better in terms on energy management, so that, in 8 real criteria, the average energy efficiency was better than CA-TMESSearch and CA-TMES Quick by about \(15\%\) and \(20\%\) respectively. When ARSH-FATI is combined with the proposed method, energy saving increased to \(35\%\) and \(40\%\) respectively. Also compared to the R-DAG method, the proposed method achieved a \(50\%\) reduction in energy consumption. The authors [31] utilized fuzzy parameters when dealing with uncertainty conditions in the network and proposed the Fuzzy Logical Offloading method. Their approach utilized triangular fuzzy data in uncertain conditions and employed a ranking method to defuzzification such data. They used fuzzy numbers for data to reduce energy consumption. To achieve maximum machine processing within clusters with fuzzy data, they introduced an algorithm for learning and optimization. Their approach in the resource allocation process to different clusters adopted an Optimal Dag Task Offloading approach that utilized fuzzy logic for clustering. Through their conducted experiments, they demonstrated that their approach reduces resource utilization to improve energy consumption. simulation results by using triangular fuzzy numbers show that their proposed algorithm has better performance to complete tasks on time by considering Agreement Index and Robustness metrics. Their method tries to reduce energy consumption by completing tasks on time, but the algorithm did not consider other criteria such as cost, Makespan and response time. Also, they considered triangular fuzzy numbers in their scheduling process for inputs and then by using ranking methods, the fuzzy data changed to crisp data. Their method is not considered that if the fuzzy data fluctuates on the devices in the network, what will happen and we will solve this problem in our network. Authors [32] employed triangular fuzzy data for resource allocation and utilized the Cuckoo algorithm in the scheduling process to reduce energy consumption in the network. They used the Fuzzy Dematel method for scheduling, where the Dematel method is a pairwise comparison-based decision-making approach that experts use to create pairwise comparison matrices. Since the Dematel method struggles with uncertain conditions, the authors employed the Fuzzy Dematel algorithm for appropriate resource allocation in such circumstances. They also utilized triangular fuzzy data in the Fuzzy Dematel method when facing uncertainty conditions and employed ranking methods for defuzzification. They compared their proposed algorithm with ACO, CSA, and GA algorithms in terms of Energy Consumption, Service Level Agreement violation, Execution Time, Response Time, and Makespan metrics. They expressed that their simulation results, using CloudSim in four different scenarios, showed improved performance compared to other methods. Unlike [31], which used fuzzy data and then defuzzied them, their method utilizes a mathematical model called Dematel with fuzzy data and then fuzzified the fuzzy data to perform the scheduling process for energy consumption reduction, but also, they did not consider that what will be happen if the fuzzy data have fluctuated for machines on the network. Since problems with uncertainty data in Deep Leaning models cause low performance in classification tasks, the authors [33] utilized trapezoidal fuzzy data in the learning process to reduce energy consumption. They proposed an optimized fuzzy model called Optimization Fuzzy Deep Learning for data classification. Their proposed method combines DL techniques and fuzzy learning, where fuzzy values are represented as trapezoidal fuzzy numbers. They utilized NSGA II to optimize the membership function of trapezoidal fuzzy numbers considering multiple inputs and outputs in their optimization model. By presenting their proposed model, they reduced the impact of uncertainty by optimizing the membership function of trapezoidal fuzzy numbers and minimized the influence of noise resulting from such data using the optimized DL model. They demonstrated that the simulation results showed better performance of their proposed method compared to classifier methods and fuzzy DL models. Their method considered accuracy when they are facing with fuzzy data but the algorithm is not considered some criteria such as cost, makespan and execution time that influence on energy consumption in the network. Unlike [32] which used triangular fuzzy numbers, their method utilizes trapezoidal fuzzy number when they are facing with uncertain environments and then defuzzied the fuzzy numbers in their algorithm in the process of energy reduction. But still their algorithm cannot support the task scheduling process when they are facing fluctuating data, unlike our model. The authors [34] utilized trapezoidal fuzzy data and type-2 trapezoidal fuzzy data for modeling their proposed method to achieve energy reduction. They introduced a novel task scheduling approach in Industry 4.0 by considering trapezoidal fuzzy numbers with one core (triangular fuzzy numbers). They presented a multi-objective formula using trapezoidal fuzzy data for energy optimization in real-time embedded systems scheduling. For the first time in task scheduling parameters, they employed type-2 trapezoidal fuzzy data for modeling Interval Type-2 Fuzzy Sets and proposed an optimized approach based on the NSGA II evolutionary algorithms. They proposed two algorithms in the scheduling process and towards achieving an optimal energy consumption approach. The first algorithm creates a membership function of the type-2 trapezoidal fuzzy numbers as an interval from crisp input data, and the second algorithm aims to optimize energy consumption with NSGA-II using type-2 trapezoidal fuzzy numbers in the scheduling process. They categorized the input data into three groups to compare their proposed method: crisp data, trapezoidal fuzzy data, and type-2 trapezoidal fuzzy data. They demonstrated that the results obtained with type-2 fuzzy data were better than those obtained with other data types. They conclude crisp deadline, fuzzy deadline, and type-2 fuzzy deadline for satisfaction task scheduling and energy consumption. Still, they did not consider criteria such as cost, makespan execution time in the task scheduling process to achieve energy reduction. Unlike [31] and [31] which used triangular fuzzy numbers, and unlike [33], which utilizes trapezoidal fuzzy numbers they used crisp data, triangular fuzzy data, trapezoidal fuzzy data, and type-2 trapezoidal fuzzy data when they are facing uncertainty to achieve energy efficiency. But unlike our model, their model cannot support fluctuating data on the machines. The authors [35] employed fuzzy logic and fuzzy inference in neural networks to facilitate modeling under uncertainty. The data used in their proposed model are represented as fuzzy sets, indicating the degree of membership to specific sets. They introduced an approach for resource allocation and improved its performance to reduce energy consumption in the network. They also utilized the Ant Colony optimization method to enhance energy consumption. In their proposed approach, they employed virtual machine migration, which removes inefficient physical machines from the resource allocation cycle, resolves the resource granulation problem, and utilizes the full power of running servers. They compared their approach with reinforcement learning algorithms, multi-objective resource allocation, NSGA III, Whale Optimization and PSO. The results demonstrated that their proposed algorithm outperformed other methods. They considered delay criteria but they did not consider other criteria such as cost, Makespan and execution time for energy reduction in the network. Also, they considered fuzzy data in their scheduling process but they did not consider that if the fuzzy data are fluctuated on machines in the network, what will happen, unlike our method. The authors [36] utilized fuzzy logic to classify machine weights. They considered triangular fuzzy sets for the weights and employed the centroid method to defuzzification and make the weight data crisp. They proposed an algorithm for efficient task processing to energy reduction. To achieve proper scheduling while considering resource availability and task deadlines, they presented an integer programming problem that minimizes costs. To improve the learning process and select suitable machines, they utilized a fuzzy reinforcement learning algorithm that employs triangular fuzzy data. Their proposed algorithm combines fuzzy logic-based greedy heuristics with on-policy reinforcement learning, aiming to minimize energy consumption. Their proposed method shows an average improvement of 15.38 percent in energy consumption compared to other methods by considering the total task service time, and average response time criteria and cost, but they are not considered Makespan. Unlike other methods, their method utilizes triangular fuzzy number for both of the inputs and outputs when they are facing with uncertainty situation. But still their method cannot handle task scheduling process when the fuzzy inputs or output are fluctuated on machines unlike our method. The authors [37] utilized fuzzy sets when they are facing with uncertainty environment. They proposed a hybrid Fuzzy Interface System (FIS) with a genetic algorithm to reduce energy consumption. Since genetic algorithms are widely used in multi-objective optimization problems, the authors suggested a compatible genetic algorithm for proper scheduling of request execution to minimize the Makespan. Their proposed algorithm is a combined approach of partitioning and scheduling algorithms for suitable request execution between the fog and cloud layers under uncertainty conditions. Their proposed method showed a 48 percent improvement in performance compared to the EM-MOO method in the Makespan criterion and a 41 percent improvement compared to MAS-GA in the time criterion, but they did not consider cost. They used triangular fuzzy numbers in their task scheduling process and also their method cannot handle task scheduling process when the data are fluctuated on machines. The problem that has been overlooked in previous works is what happens if the input or output data is fuzzy and exhibits fluctuations. For example, if the output is fuzzy and fluctuates, to maintain the efficiency of the machines, to what extent should the inputs fluctuate in order to preserve machine efficiency and ensure uninterrupted scheduling in the network? Previous work has not addressed this issue. Therefore, in this paper, an optimization model is proposed for the first time in this regard, which determines the level of input fluctuations to maintain machine efficiency. Additionally, some related works in energy consumption that use crisp data for energy consumption are mentioned below. The advantage of our work compared to them is the ability to calculate energy consumption under uncertainty conditions and determine input fluctuations to preserve machine efficiency in case of tolerance in the outputs.

3 Proposed Method

We combined PSO and ACO methods with the fuzzy Bayesian method and used DVFS to establish a low-consumption cloud system. The present paper is based on this study in which we used the fuzzy Markov method for request assignment and then proposed a performance evaluation model to determine efficient physical machines in order to maintain the efficiency of machines with fuzzy data. Thus, when the proposed model is combined with the fuzzy Markov method, the shortest path for assigning requests to virtual machines under the management of physical machines is created while maintaining their efficiency. Finally, by choosing the right efficient physical and virtual machines, we can improve the evaluation criteria in the task scheduling process.

Fig. 2
figure 2

Fuzzy inputs and outputs of physical machines in the cloud network

As shown in Fig. 2, the inputs of each machine are RAM and CPU with fuzzy data and the output of each physical machine is virtual machines with fuzzy data. In the proposed method, first the efficiency of decision units (physical machines) is obtained by considering the oscillating fuzzy values for inputs and outputs to maintain the efficiency of physical machines, and then the shortest path for sending requests is selected by fuzzy Markov method.

3.1 Data Envelopment Analysis

This non-parametric method was introduced by Charnes et al. to judge the performance of decision-making units (DMUs). [38] and named the CCR (Charnes, Cooper & Rohdes) model, the CCR model can be used for evaluating Physical and Virtual machines performance. Each machine uses some inputs to produce some outputs and the performance of machines conclude by the inputs and outputs. the multiplier form of the CCR model is introduced as follows:

$$\begin{aligned} \begin{aligned} \max&\left(\sum _{j=1}^{n} u_{r}y_{rj}\right) \\ S.t:&\sum _{j=1}^{n}v _{i} x_{ij} = 1, \; i \in \{1, \dots , m\}, \\&\sum _{j=1}^{n}u _{r} y_{rj}-\sum _{j=1}^{n}v _{i} x_{ij}\le 0, \; u_{r}, v_{i} \ge 0, \; r \in \{1, \dots , s\} \\ \end{aligned} \end{aligned}$$
(1)

where \(x_{ij}\) and \(y_{rj}\) are inputs and outputs of machines and \(u_r\) is the weight vector of inputs and \(v_i\) is the weight vector of outputs. Next, Banker et al. [39] introduced the BBC (Banker, Charnes & Cooper) model that is DEA model with a variable return to scale:

$$\begin{aligned} \begin{aligned} \max&\left(\sum _{j=1}^{n} u_{r}y_{rj}-u_{0}\right) \\ S.t:&\sum _{j=1}^{n}v _{i} x_{ij} = 1, \\&\sum _{j=1}^{n}u _{r} y_{rj}-\sum _{j=1}^{n}v _{i} x_{ij}-u_{0}\le 0, \; u_{r}, v_{i} \ge 0, \\&i \in \{1, \dots , m\}, \; r \in \{1, \dots , s\}, \; -\infty \le u_{0} \le +\infty \end{aligned} \end{aligned}$$
(2)

In this article, we appraise the BCC model. The envelopment form of the BCC model is formulated as the following LP model

$$\begin{aligned} \begin{aligned} \min&(\theta _{o}) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} x_{ij} \le \theta _{o} x_{io}, \; i \in \{1, \dots ,m\} \\&\sum _{j=1}^{n}\lambda _{j} y_{rj} \ge y _{ro}, \; r \in \{1, \dots , s\}, \\&\sum _{j=1}^{n}\lambda _{j} = 1, \; \lambda _{j} \ge 0, \\ \end{aligned} \end{aligned}$$
(3)

where x ij and \(y_{rj}\) are inputs and outputs of machines.

3.2 Inverse DEA Model with the Variable Return to Scale (IBCC)

Lertworasirikul et. al. [40] proposed the Inverse BCC model (IBCC) and they have a solution approach to solve the IBCC model. They considered the output of \(DMU_o\) (machine o), \(y_o\), change to \(\beta _o = y_o + \Delta y_o\), \(\Delta y_o \in R^S\), and they present the following model that gives to us the amount of input that is necessary to preserve the relative efficiency of \(DMU_o\).

Since we have m inputs then we face a multi-goal problem, We dealt with the Dual form of the Inverse BCC model (DIBCC).

$$\begin{aligned} \begin{aligned} \min&(x_{1o}+\Delta x_{1},x_{2o}+\Delta x_{2},\ldots ,x_{mo}+\Delta x_{m} ) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} x_{ij} \le \theta _{o}^{*} \delta _{i}, \; i \in \{1, \dots , m\}, \\&\sum _{j=1}^{n}\lambda _{j} y_{rj} \ge \beta _{ro}, \; r \in \{1, \dots , s\} \\&\sum _{j=1}^{n}\lambda _{j} =1, \; \lambda _{j} \ge 0, \\ \end{aligned} \end{aligned}$$
(4)

where is the amount of optimal solution for the BCC model, necessary input that causes the relative performance for fluctuate inputs and is the PM is preserved.

3.3 Fuzzy Inverse Data Envelopment Analysis Method

In this section, we assume that the data are fuzzy numbers; it means that we consider a fuzzy number for inputs, outputs, inputs and outputs fluctuated. So, we should answer this question: in the IBCC model, if the outputs of the fluctuate problem are taking fuzzy values, then how many changes we should have to the inputs to maintain the relative performance of the machines? In this regard, a model with fuzzy data is presented:

$$\begin{aligned} \begin{aligned} \min&(\tilde{\delta _{1}},\tilde{\delta _{2}}, \dots , \tilde{\delta _{m}} ) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} \tilde{x_{ij}} \le \theta _{o}^{*} \tilde{\delta _{i}}, \; i \in \{1, \dots , m\}, \\&\sum _{j=1}^{n}\lambda _{j} \tilde{y_{rj}} \ge \tilde{\beta _{ro}}, \; r \in \{1, \dots , s\}, \\&\sum _{j=1}^{n}\lambda _{j} =1, \lambda _{j} \ge 0 \end{aligned} \end{aligned}$$
(5)

where and \({\tilde{x}}_{ij}\) are fuzzy inputs of physical machines, \(\tilde{\delta _i}\) are fuzzy fluctuate inputs of physical machines, \(\tilde{y_{rj}}\) are fuzzy outputs and \(\tilde{\beta _{ro}}\) are fuzzy fluctuate outputs.

We will use an \(\alpha\)-cut approach for solving Eq. 5. Now, suppose that inputs and outputs are a fuzzy triangular number in Eq. 5:

$$\begin{aligned}{} & {} \tilde{x_{ij}}=(x_{ij}^{L},x_{ij}^{m},x_{ij}^{U}), \; \; \tilde{y_{rj}}=(y_{rj}^{L},y_{rj}^{M},y_{rj}^{U}) \\{} & {} \tilde{\delta _{i}}=(\delta _{i}^{L},\delta _{i}^{M},\delta _{i}^{U}), \; \; \tilde{\beta _{ro}}=(\beta _{ro}^{L},\beta _{ro}^{m},\beta _{ro}^{U}) \end{aligned}$$

Now, we consider the \(\alpha\)-cut of fuzzy triangular numbers for every constraint and objective function and replace that with Eq. 5:

$$\begin{aligned} \begin{aligned} \min \limits _{k \in \{1, \dots , m\}}&\left( \left[ \alpha \delta _{k}^{m} +(1-\alpha )\delta _{k}^{L} \alpha \delta _{k}^{m} +(1-\alpha )\delta _{k}^{U} \right] \right) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} \left[ \alpha x_{ij}^{m} +(1-\alpha )x_{ij}^{L},\alpha x_{ij}^{m} +(1-\alpha )x_{ij}^{U} \right] \le A, \\&A = \theta _{o}^{*} \left[ \alpha \delta _{i}^{m} +(1-\alpha )\delta _{i}^{L},\alpha \delta _{i}^{m} +(1-\alpha )\delta _{i}^{U} \right] , \\&\sum _{j=1}^{n}\lambda _{j} \left[ \alpha y_{rj}^{m} +(1-\alpha )y_{rj}^{L},\alpha y_{rj}^{m} +(1-\alpha )y_{rj}^{U} \right] \ge B, \\&B = \left[ \alpha \beta _{ro}^{m} +(1-\alpha )\beta _{ro}^{L},\alpha \beta _{ro}^{m} +(1-\alpha )\beta _{ro}^{U} \right] , \\&\sum _{j=1}^{n}\lambda _{j} =1, \; \lambda _{j} \ge 0 \end{aligned} \end{aligned}$$
(6)

Equation 6 is a parametric problem with the parameter \(\alpha\). The choice of \(\alpha\) varies depending on our manager’s choice between zero and one. We will use the interval solution for solving Eq. 6, assuming that \(\omega ^* = [\omega ^*_L, \omega ^*_U]\). Hence, for \(\omega ^*_L\) we have:

$$\begin{aligned} \begin{aligned} \omega _{L}^{*} =&\min (\delta _{1}^{L},\delta _{2}^{L},\ldots ,\delta _{m}^{L} ) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} x_{ij}^{L} \le \theta _{o}^{*} \delta _{i}^{L}, \; i \in \{1, \dots , m\}, \\&\sum _{j=1}^{n}\lambda _{j} y_{rj}^{L} \ge \beta _{ro}^{L}, \; r \in \{1, \dots , s\}, \\&\sum _{j=1}^{n}\lambda _{j} = 1, \; \lambda _{j} \ge 0 \end{aligned} \end{aligned}$$
(7)

and for \(\omega ^*_U\) we have:

$$\begin{aligned} \begin{aligned} \omega _{U}^{*} =&\min (\delta _{1}^{U},\delta _{2}^{U},\ldots ,\delta _{m}^{U} ) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} x_{ij}^{U} \le \theta _{o}^{*} \delta _{i}^{U}, \; i \in \{1, \dots , m\}, \\&\sum _{j=1}^{n}\lambda _{j} y_{rj}^{U} \ge \beta _{ro}^{U}, \; r \in \{1, \dots , s\}, \\&\sum _{j=1}^{n}\lambda _{j} = 1, \; \lambda _{j} \ge 0 \end{aligned} \end{aligned}$$
(8)

The current models presented in Eqs. 7 and 8 consider a lower and an upper bound for Eq. 5, and an interval solution is given for the inverse DEA model in a fuzzy environment \(\omega ^{*}=[\omega _{L}^{*}, \omega _{U}^{*}]\). By solving these MOLP problems, the inputs are obtained to maintain the relative efficiency of the physical machines under evaluation.

In the solving process we used Eq. 9 for conclude \(\theta ^*_o\) that gives us the best condition for fuzzy DEA problems:

$$\begin{aligned} \begin{aligned} \min&(\theta _{o}) \\ S.t:&\sum _{j=1}^{n}\lambda _{j} x_{ij}^{U} \le \theta _{o}^{*} x _{io}^{L}, i \in \{1, \dots , m\}, \\&\sum _{j=1}^{n}\lambda _{j} y_{rj}^{L} \ge y_{ro}^{U}, \; r \in \{1, \dots , s\}, \\&\sum _{j=1}^{n}\lambda _{j} = 1, \; \lambda _{j} \ge 0 \end{aligned} \end{aligned}$$
(9)

Where \(x_{ij}^U\) is upper bound of fuzzy inputs for all physical machines, \(x_{io}^L\) is lower bound of inputs for \(PM_o\), \(y_{rj}^L\) is lower bound of fuzzy outputs for all physical machines, and \(y_{ro}^U\) is upper bound of fuzzy output for \(PM_o\), that are given by \(\alpha\)-cut approaches (Fig. 3).

Fig. 3
figure 3

Details of selecting physical and virtual machines in cloud environment

figure f

3.4 A Numerical Illustrative Example

In this subsection, we assume four physical machines each have two Ram and CPU inputs and one virtual machine output. The fuzzy values of each of the inputs and outputs are given in Table 2.

Table 2 Units with fuzzy inputs and output

We would like to achieve the number of input changes by changing the output so that the efficiency of the machines is maintained. Firstly, we conclude \(\theta _{o}^{*}\) for \(o \in \{1, \dots , 4\}\), the results of the \(\alpha\)-cut method (the result is considered for different \(\alpha\)) are shown in Table 3.

Table 3 Units with fuzzy inputs and output

The results on Table 3 show that \(PM_{1}\),\(PM_{2}\), \(PM_{4}\) are efficiency units and \(PM_{3}\) is non-efficiency with all of the alphas.

We will use the weighting method to solve a multi-objective programming problem, and so we consider weight vector as \((w_{1},w_{2})=(1/2, \,1/2)\). Suppose that the output of unites \(PM_{1}\),\(PM_{2}\), \(PM_{3}\)and \(PM_{4}\) are change to (68, 73, 75), (82, 85, 89), (72, 75, 77) and (98, 100, 101), the result of the proposed method are presented in Table 4.

Table 4 Amount of input changes to preserve the relative efficiency of machines

For example for an efficient machine \(PM_1\) with \(\alpha = 0.5\), the change rate of RAM and CPU must be [(0.527, 0.764), (0.964, 0.964)] until the efficiency of \(PM_1\) is maintained.

In Sect. 3, we present a fuzzy optimization model for selecting efficient physical machines with respect to fuzzy inputs and outputs. In this model, when the fuzzy values of RAM and CPU fluctuate, the proposed model maintains the performance of physical machines by controlling the oscillations of virtual machines. Also, the fuzzy Markov method is used in the proposed algorithm for allocating input requests to virtual machines in the network and in the allocation process, the \(\alpha\)-cut method is used for fuzzy data. The proposed method (FIMDEAP) with the proper choice of physical and virtual machines maintains the balance of load and resources in the scheduling process, which ultimately leads to the creation of green calculations in the network. The detail description about fuzzy (Basic fuzzy concepts) will present in Appendix.

4 Simulation and Results

The simulation of this research has been done in cloudsim, which includes physical machine, virtual machine and data centers having the ability to search virtual machines. A broker is defined in cloudsim, using it we can check the relationship between the generated queue and physical and virtual machines in the data center. To do so, we have used the proposed algorithm and it is related to the base paper including meta-heuristic and fuzzy ones. In addition, the intended data centers include virtual machines with different string and binary models, meaning that the requests that enter the network can be part of a large task or a small one.

The simulation results of the proposed FIMDEAP method are compared with PSO + ACO and FBPSO + FBACO methods [4] in terms of five criteria of Execution cost, Response time, Energy consumption, Gain of cost and Makespan.

After applying the benchmark data sets to the algorithm, a large load is imposed on the network, which we aim to examine the execution cost. As can be seen in Fig. 4, by increasing the workload on tasks, the proposed method has a lower execution cost due to the appropriate resource allocation. In PSO and ACO, an initial population of the algorithmic environment is generated using mathematical equations and calculating the optimal P-value and G-value that are extracted from each section. This initial population selects the optimal cases as a meta-heuristic method, but due to the fact that the initial population is generated randomly using the properties of the methods, only in some cases optimization is done. In PSO + ACO method, due to the fact that the initial population is generated randomly, the amount of execution cost tolerances increases in some cases. Also, the amount of operating cost of FBPSO + FBACO method is the same as that of PSO + ACO method, with the difference in each time gap, fuzzy mode is applied to the algorithm, which causes the extreme fluctuations caused by the randomness of the initial population to be controlled in the diagram of the operating cost (as can be seen in Fig. 4, when the number of requests is 290, the execution cost is very high, but when the number of requests is 570, the execution cost improves and again by increasing the number of requests to 640, PSO + ACO method imposes a high cost on the system but these fluctuations are modified in the fuzzy method). However, in the proposed FIMDEAP method, due to the fact that changes in fuzzy inputs has been done in such a way that the performance of physical machines is maintained against the fluctuations of virtual machines, so choosing an efficient physical machine to perform tasks has reduced execution costs. The simulation process is repeated 100 times and the results are the average of 100 simulations.

Fig. 4
figure 4

Details of the cost of task execution against the increase in workload in benchmark 512

Response time in the process of assigning tasks to virtual machines under the management of physical machines in the data center includes waiting time in a queue, task processing time by the algorithm, time of assigning tasks to the data center, time of assigning tasks from data center to physical machines and finally the time required to allocate requests to virtual machines. The comparison of Response time between the proposed method and PSO + ACO and FBPSO + FBACO methods has been done in three different scenarios each with different modes for physical and virtual machines (for example, for Scenario 1, the number of physical machines is between 1 and 20 and the number of virtual machines is between 10 and 200, that can be randomly selected in these intervals). In each scenario, given that the number of physical machines is fixed, if we assign the requests from the queue to the virtual machines correctly, we can determine which one has the shortest response time. Both in the case of a small number and in the case of a large number of virtual machines, the presented fuzzy pattern has less execution time in some cases and needs more time in some cases, But in general, by calculating the average response time in three different scenarios, it is observed that the proposed method gives us less response time than other methods in the allocation process, which leads to impose lower costs on the system. As shown in Fig. 5, when the PSO + ACO algorithm is used, it generates a higher response time due to the random generation of its initial population. Also, the FBPSO + FBACO method, which uses both the meta-heuristic algorithm and the fuzzy pattern, causes a delay in the allocation process, but works better than the PSO + ACO method. Comparisons between methods with impact coefficients of 5 and 10 have been made for physical machines, and in both cases the response time value of the proposed method was lower than other methods.

Fig. 5
figure 5

Response time in different scenarios with the specified virtual machine and physical machine

Energy consumption refers to the energy consumed to allocate a task in the cloud network. Now we want to know how energy consumption changes as the number of tasks increases. By calculating the Energy Consumption criterion as shown in Fig. 6, through the time and increasing the number of tasks, the same results as the PSO + ACO and FBPSO + FBACO methods are obtained, so their diagram is the same but in some cases the proposed method performed better, and in other ones PSO + ACO and FBPSO + FBACO methods performed better. For the number of requests between 200 and 700, almost all three methods gave the same results, for the number between 700 and 1300, the FBPSO + FBACO method worked better, for the requests between 1300 and 2100, all methods gave the same results, and finally for the number of requests between 2100 and 2200, the proposed method performed better than other methods.

Fig. 6
figure 6

Energy consumption of the network for the number of available tasks

By investigating the details, we found that the proposed FIMDEAP method had a \(2.12\%\) improvement in performance compared to the FBACO + FBPSO method, and \(3.31\%\) improvement in Energy Consumption compared to the PSO + ACO method. This cost (energy consumed) includes all tasks including successfully executed, failed, or running in the system.

Fig. 7
figure 7

Profitability of resources for virtual machines in the network

Fig. 8
figure 8

Make span for different numbers of tasks

Considering that the different methods presented in this research have the same energy consumption and on the other hand, because a fixed benchmark has been applied to the methods, it is expected that the cost of the methods is their execution cost and the gain of cost is what we expected before. Comparing the proposed method with other methods in terms of Gain of Cost, it should be noted that assigning tasks to virtual machines in the proposed method is less expensive than other methods. Due to the fact that in the proposed method, the assigned tasks are processed in physical machines whose efficiency is maintained and the fluctuations of virtual machines and fuzzy inputs are controlled to maintain performance, the proposed FIMDEAP method has a lower gain of cost than other methods. As can be seen in Fig. 7, because of producing different initial populations, the PSO + ACO method has a poorer performance. Also, the FBPSO, FBACO and FBPSO + FBACO methods have the same performance, but in the proposed method Gain of Cost improves by increasing physical machines.

One of the important criteria for evaluating the proposed method is Makespan, and if we have a proper makespan, we will have less delay and therefore a proper execution cost. Comparing the proposed method with other methods in Makespan criterion, it is observed that FIMDEAP method gives less Makespan. As well, when the number of requests increases, the proposed method has better performance compared to PSO + ACO and FBPSO + FBACO methods. Calculating the Makespan arithmetic mean for a number of different tasks indicated the better performance of the proposed method. As shown in Fig. 8, by increasing the number of tasks by 10 times, a lower average Makespan is observed for the proposed method. The values obtained for Makespan show that, as we expected, the proposed algorithm produced good values for Response times. To test the Makespan criterion, a set of 512 \(\times\) 16 benchmark data sets was used.

5 Conclusion

In Cloud, Fog and IoT networks, due to the large number of heterogeneous devices and sensors that are interconnected, we are faced with large amounts of data, so resource allocation and request allocation with less energy consumption is a vital problem (Fig. 9). In this paper, we could improve the task scheduling process by introducing a new fuzzy pattern. In some cases, the proposed method performed better and in some other cases, compared methods performed better. But by investigating previous methods and the proposed method, it is clear that the proposed method has the appropriate efficiency and performance. we reached our goals that were optimizing energy, response time and Makespan and achieving green computing. The proposed FIMDEAP method, which was a combination of the of FIDEA and FMDP, improved the performance of the Task Scheduling process by selecting efficient physical machines and appropriately assigning requests to virtual machines. We compared the proposed method with PSO + ACO and FBPSO + FBACO methods. Simulation results showed that the proposed method had improvements in Response time, Execution cost, Gain of cost, Makespan and Energy consumption. In this study, in addition to providing a mathematical optimization model, algorithms and flowcharts of the proposed method are also given. Given that the proposed model is fuzzy, we recommend researchers of this field to use other fuzzy methods and fuzzy ranking methods for machine selection process as future work. machine learning methods and request forecasting based methods are recommended for allocation process, as well as examining the overlap and conflict between requests and the queue generated to select virtual machines can be adopted for future work.