Skip to content

Commit

Permalink
Fix PolicyRuns
Browse files Browse the repository at this point in the history
  • Loading branch information
norellia committed Jun 28, 2024
1 parent c86e277 commit 09c6804
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions epo/src/main/java/uk/ac/ox/poseidon/epo/policies/PolicyRuns.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
import java.util.Map.Entry;
import java.util.Set;
import java.util.logging.Logger;
import java.util.stream.IntStream;

import static com.google.common.collect.ImmutableList.toImmutableList;
import static com.google.common.collect.ImmutableMap.toImmutableMap;
import static java.util.stream.Collectors.toList;

Expand Down Expand Up @@ -172,10 +174,9 @@ private Map<String, List<Policy<EpoScenario<?>>>> makePolicies() {
final ImmutableList<Double> proportions =
ImmutableList.of(0.75, 0.50, 0.25, 0.10, 0.0);
final ImmutableList<Double> fineProportions =
ImmutableList.of(1.00, 0.80, 0.50, 0.25);
// IntStream.rangeClosed(1, 20)
// .mapToObj(i -> i * 0.05)
// .collect(toImmutableList());
IntStream.rangeClosed(1, 20)
.mapToObj(i -> i * 0.05)
.collect(toImmutableList());
return ImmutableMap.of(
"global_object_set_limits", new GlobalObjectSetLimit(
yearsActive,
Expand All @@ -188,12 +189,12 @@ private Map<String, List<Policy<EpoScenario<?>>>> makePolicies() {
fineProportions,
false
),
"fad_limits_fine_with_override", new ActiveFadLimitsPolicies(
/* "fad_limits_fine_with_override", new ActiveFadLimitsPolicies(
yearsActive,
2023,
fineProportions,
true
),
),*/
"extended_closures", new ExtendedClosurePolicies(
yearsActive,
ImmutableList.of(5, 15, 30)
Expand Down

0 comments on commit 09c6804

Please sign in to comment.