Optimizations/improve action gen

This commit is contained in:
Asriel Camora
2023-07-07 20:18:30 +02:00
parent 636501ab86
commit 436858e65c
2 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -94,6 +94,13 @@ public sealed class Simulator : SimulatorNoRandom
baseAction.IncreasesQuality) baseAction.IncreasesQuality)
return false; return false;
// use First Turn actions if it's available and the craft is difficult
if (baseAction.Category != ActionCategory.FirstTurn &&
Input.Recipe.ClassJobLevel == 90 &&
StepCount == 1 &&
CP > 10)
return false;
// don't allow pure quality moves under Veneration // don't allow pure quality moves under Veneration
if (HasEffect(EffectType.Veneration) && if (HasEffect(EffectType.Veneration) &&
!baseAction.IncreasesProgress && !baseAction.IncreasesProgress &&
@@ -130,7 +137,7 @@ public sealed class Simulator : SimulatorNoRandom
return false; return false;
if (action == ActionType.Observe && if (action == ActionType.Observe &&
CP < 5) CP < 12)
return false; return false;
if (action == ActionType.MastersMend && if (action == ActionType.MastersMend &&
+2 -2
View File
@@ -18,9 +18,9 @@ public readonly record struct SolverConfig
Iterations = 300000; Iterations = 300000;
ScoreStorageThreshold = 1f; ScoreStorageThreshold = 1f;
MaxScoreWeightingConstant = 0.1f; MaxScoreWeightingConstant = 0.1f;
ExplorationConstant = 2; ExplorationConstant = 4;
MaxStepCount = 25; MaxStepCount = 25;
MaxRolloutStepCount = 99; MaxRolloutStepCount = MaxStepCount;
ThreadCount = Environment.ProcessorCount; ThreadCount = Environment.ProcessorCount;
} }
} }