Rename Furcated to Genetic
This commit is contained in:
+2
-2
@@ -60,7 +60,7 @@ public sealed class Solver : IDisposable
|
||||
SolverAlgorithm.OneshotForked => (SearchOneshotForked, false),
|
||||
SolverAlgorithm.Stepwise => (SearchStepwise, true),
|
||||
SolverAlgorithm.StepwiseForked => (SearchStepwiseForked, true),
|
||||
SolverAlgorithm.StepwiseFurcated => (SearchStepwiseFurcated, true),
|
||||
SolverAlgorithm.StepwiseGenetic => (SearchStepwiseGenetic, true),
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(config), config, $"Invalid algorithm: {config.Algorithm}")
|
||||
});
|
||||
|
||||
@@ -136,7 +136,7 @@ public sealed class Solver : IDisposable
|
||||
Interlocked.Increment(ref progressStage);
|
||||
}
|
||||
|
||||
private async Task<SolverSolution> SearchStepwiseFurcated()
|
||||
private async Task<SolverSolution> SearchStepwiseGenetic()
|
||||
{
|
||||
var iterCount = Config.Iterations / Config.ForkCount;
|
||||
maxProgress = iterCount * Config.ForkCount;
|
||||
|
||||
@@ -10,7 +10,7 @@ public enum SolverAlgorithm
|
||||
OneshotForked,
|
||||
Stepwise,
|
||||
StepwiseForked,
|
||||
StepwiseFurcated,
|
||||
StepwiseGenetic,
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Auto)]
|
||||
@@ -58,7 +58,7 @@ public readonly record struct SolverConfig
|
||||
ScoreSteps = .05f;
|
||||
|
||||
ActionPool = DeterministicActionPool;
|
||||
Algorithm = SolverAlgorithm.StepwiseFurcated;
|
||||
Algorithm = SolverAlgorithm.StepwiseGenetic;
|
||||
}
|
||||
|
||||
public static ActionType[] OptimizeActionPool(IEnumerable<ActionType> actions) =>
|
||||
|
||||
Reference in New Issue
Block a user