Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
feat(heuristic): PSO with combine
Browse files Browse the repository at this point in the history
Adds a variant of PSO that runs combine after partitions are resolved.
  • Loading branch information
marmitar committed Nov 12, 2023
1 parent 4c1d005 commit 586f8f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/lib/MCSP/TestLib/Heuristics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import MCSP.Data.Pair (Pair, both, second)
import MCSP.Data.String (String)
import MCSP.Data.String.Extra (occurrences, repeated, singletons)
import MCSP.Heuristics (Heuristic, UseSingletons (..), combine, greedy, pso)
import MCSP.Heuristics.PSOBased (PSOPure (..), getFirstBestIter)
import MCSP.Heuristics.PSOBased (PSOCombine (..), PSOPure (..), getFirstBestIter)
import MCSP.System.TimeIt (timeIt)
import MCSP.TestLib.Heuristics.Safe (Debug, checkedDiv, checkedLen, runChecked)
import MCSP.TestLib.Heuristics.TH (mkNamed)
Expand All @@ -43,7 +43,8 @@ heuristics =
("combineS", \s -> combine s <:: UseSingletons True),
("greedy", greedy),
("pso", pso),
("psoPure", \s -> pso s <:: PSOPure True)
("psoPure", \s -> pso s <:: PSOPure True),
("psoComb", \s -> pso s <:: PSOCombine True)
]

-- | A collection of information made on a single execution of a `Heuristic`.
Expand Down

0 comments on commit 586f8f6

Please sign in to comment.