simulate to a thousands simulations

This commit is contained in:
Julien Calixte
2023-07-25 00:37:50 +02:00
parent eaac5520e8
commit 00ccbe21a7
5 changed files with 101 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ import { Strategy } from '@/modules/lean/strategy'
import { FeatureState } from '@/store-type'
import { getMean, pickRandomElement, popNElement, shuffleArray } from '@/utils'
const MAX_FEATURES = 30
const MAX_FEATURES = 200
const HARD_STOP = 5000
const hasQualityIssue = ({
@@ -22,7 +22,7 @@ const hasQualityIssue = ({
daysWithProblemSolving
)
let multiplicator = getOverburdenMultiplicator(tasksInParallel)
const multiplicator = getOverburdenMultiplicator(tasksInParallel)
const quality = Math.random()
return quality > qualityProbability / multiplicator