Extra scoring changes, mark expert recipes as difficult

This commit is contained in:
Asriel Camora
2024-07-28 19:37:15 -07:00
parent 03eb60ee8c
commit 1bc7c46e03
3 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ internal sealed class Simulator : SimulatorNoRandom
if (action == ActionType.TrainedEye)
return baseAction.CouldUse(this);
var isDifficult = Input.Stats.Level - Input.Recipe.ClassJobLevel < 10;
var isDifficult = Input.Stats.Level - Input.Recipe.ClassJobLevel < 10 || Input.Recipe.IsExpert;
// don't allow quality moves under Muscle Memory for difficult crafts
if (isDifficult &&
+7 -7
View File
@@ -44,18 +44,18 @@ public readonly record struct SolverConfig
ExplorationConstant = 4;
MaxStepCount = 30;
MaxRolloutStepCount = 99;
// Use 80% of all cores if less than 20 cores are available, otherwise use all but 4 cores. Keep at least 1 core.
MaxThreadCount = Math.Max(1, Math.Max(Environment.ProcessorCount - 4, (int)MathF.Floor(Environment.ProcessorCount * 0.8f)));
// Use 75% of all cores if less than 12 cores are available, otherwise use all but 4 cores. Keep at least 1 core.
MaxThreadCount = Math.Max(1, Math.Max(Environment.ProcessorCount - 4, (int)MathF.Floor(Environment.ProcessorCount * 0.75f)));
// Use 32 forks at minimum, or the number of cores, whichever is higher.
ForkCount = Math.Max(Environment.ProcessorCount, 32);
FurcatedActionCount = ForkCount / 2;
StrictActions = true;
ScoreProgress = .20f;
ScoreQuality = .65f;
ScoreDurability = .05f;
ScoreCP = .05f;
ScoreSteps = .05f;
ScoreProgress = 10;
ScoreQuality = 80;
ScoreDurability = 2;
ScoreCP = 3;
ScoreSteps = 5;
ActionPool = DeterministicActionPool;
Algorithm = SolverAlgorithm.StepwiseGenetic;