Commit 92b5a61a authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

Allow non integer time limits

parent 36dc113b
......@@ -19,7 +19,7 @@ public:
double compute(Instance &ins, SchedAction *action) override;
private:
int limit;
double limit;
double gap;
int chooseTask(int worker, double now) override;
......
......@@ -8,7 +8,7 @@
using namespace std;
SchedLPIndep::SchedLPIndep(AlgOptions opt) : GreedyAlgorithm(opt) {
limit = opt.asInt("limit", 0);
limit = opt.asDouble("limit", 0);
gap = opt.asDouble("gap", -1);
}
......
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