|
@@ -400,7 +400,7 @@ public class FlexExample implements Algorithm {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- result.activatedFlex += amountflexActivated++;
|
|
|
|
|
|
+ result.activatedFlex += amountflexActivated;
|
|
|
|
|
|
println("Activated FlexThisTimeStep: "+ amountflexActivated+" CostForThisTimeStep:" + costForThisTimeStep);
|
|
println("Activated FlexThisTimeStep: "+ amountflexActivated+" CostForThisTimeStep:" + costForThisTimeStep);
|
|
result.totalCost += costForThisTimeStep;
|
|
result.totalCost += costForThisTimeStep;
|
|
@@ -597,7 +597,7 @@ public class FlexExample implements Algorithm {
|
|
private class RunResult {
|
|
private class RunResult {
|
|
public int activatedFlex = 0;
|
|
public int activatedFlex = 0;
|
|
public int deactivatedElements = 0;
|
|
public int deactivatedElements = 0;
|
|
- public int totalCost = 0;
|
|
|
|
|
|
+ public float totalCost = 0;
|
|
public LinkedList<TimeStepStateResult> timeStepList = new LinkedList<TimeStepStateResult>();
|
|
public LinkedList<TimeStepStateResult> timeStepList = new LinkedList<TimeStepStateResult>();
|
|
|
|
|
|
|
|
|