// // Created by eyraud on 25/03/19. // Based on A Comparison of Eleven Static Heuristics for // Mapping a Class of Independent Tasks onto // Heterogeneous Distributed Computing Systems // doi:10.1006/jpdc.2000.1714 #ifndef PMTOOL_MINMIN_H #define PMTOOL_MINMIN_H #include "IndepAllocator.h" class IndepMinMin : public IndepAllocator { private: Instance* ins; std::vector workerIndices; std::vector bestWorkers; /* length = nb worker types */ int getEarliestWorker(std::vector &loads, int type); inline double endTime(std::vector &loads, int workerType, int task); public: IndepResult compute(Instance &ins, std::vector &taskSet, std::vector &loads) override; IndepMinMin(const AlgOptions &options); }; #endif //PMTOOL_MINMIN_H