Commit 059c20bb authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

Forgotten files

parent d280bd58
#include <vector>
#include "algorithm.h"
#include "CriticalPath.h"
#include "util.h"
using namespace std;
CriticalPath::CriticalPath(const AlgOptions & options) {
}
double CriticalPath::compute(Instance& ins) {
vector<double> ranks = ins.computeMinRank();
return getMax(ranks);
}
#ifndef CRITICALPATH_H
#define CRITICALPATH_H
#include "algorithm.h"
class CriticalPath : public Bound {
public:
CriticalPath(const AlgOptions & options);
double compute(Instance& ins);
std::string name() { return "cp"; };
};
#endif
#ifndef INDEPDUALGENERIC_H
#define INDEPDUALGENERIC_H
#include "IndepAllocator.h"
#include "instance.h"
#include <vector>
extern double lowerBoundTwoResource(Instance& ins, std::vector<int> taskSet,
double CPUload = 0, double GPUload = 0);
class IndepDualGeneric : public IndepAllocator {
protected:
virtual double tryGuess(Instance &, std::vector<int> taskSet, std::vector<double>& loads,
double maxlen, IndepResult & result, bool getResult) = 0;
double epsilon = 0.01;
public:
IndepDualGeneric(const AlgOptions& opt);
IndepResult compute(Instance &, std::vector<int> &taskSet, std::vector<double> &loads);
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment