no back to the ok previous step
This commit is contained in:
@@ -118,7 +118,6 @@ export const getFeaturesForNextDay = ({
|
|||||||
teamWorkExperience
|
teamWorkExperience
|
||||||
})
|
})
|
||||||
) {
|
) {
|
||||||
feature.step = Math.min(4, feature.step + 1)
|
|
||||||
feature.qualityIssue++
|
feature.qualityIssue++
|
||||||
} else {
|
} else {
|
||||||
feature.step--
|
feature.step--
|
||||||
@@ -170,21 +169,21 @@ const getOverburdenMultiplicator = (tasksInParallel: number) => {
|
|||||||
case 1:
|
case 1:
|
||||||
return 1
|
return 1
|
||||||
case 2:
|
case 2:
|
||||||
return 1.1
|
return 1.2
|
||||||
case 3:
|
case 3:
|
||||||
return 1.3
|
return 1.5
|
||||||
case 4:
|
case 4:
|
||||||
return 1.6
|
return 1.8
|
||||||
case 5:
|
case 5:
|
||||||
return 2.2
|
return 2.6
|
||||||
case 6:
|
case 6:
|
||||||
return 3.2
|
return 4
|
||||||
case 7:
|
case 7:
|
||||||
return 4.5
|
return 5.5
|
||||||
case 8:
|
case 8:
|
||||||
return 6
|
return 7
|
||||||
default:
|
default:
|
||||||
return 8
|
return 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,16 +198,16 @@ const getQualityProbability = (
|
|||||||
probabilityOfGoodQuality = 0.97
|
probabilityOfGoodQuality = 0.97
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
probabilityOfGoodQuality = 0.93
|
probabilityOfGoodQuality = 0.9
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
probabilityOfGoodQuality = 0.88
|
|
||||||
break
|
|
||||||
case 4:
|
|
||||||
probabilityOfGoodQuality = 0.82
|
probabilityOfGoodQuality = 0.82
|
||||||
break
|
break
|
||||||
|
case 4:
|
||||||
|
probabilityOfGoodQuality = 0.71
|
||||||
|
break
|
||||||
case 5:
|
case 5:
|
||||||
probabilityOfGoodQuality = 0.75
|
probabilityOfGoodQuality = 0.6
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,25 +9,25 @@ const NUMBER_OF_SIMULATION = 1000
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<button
|
<button
|
||||||
class="button button-outline"
|
class="button button-outline"
|
||||||
@click="simulationStore.simulate('push')"
|
@click="simulationStore.multiSimulation(1, 'push')"
|
||||||
>
|
>
|
||||||
simulate push system
|
simulate push system
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="button button-outline"
|
class="button button-outline"
|
||||||
@click="simulationStore.simulate('pull')"
|
@click="simulationStore.multiSimulation(1, 'pull')"
|
||||||
>
|
>
|
||||||
simulate pull system
|
simulate pull system
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="button button-outline"
|
class="button button-outline"
|
||||||
@click="simulationStore.simulate('pull-dps')"
|
@click="simulationStore.multiSimulation(1, 'pull-dps')"
|
||||||
>
|
>
|
||||||
simulate pull and problem solving
|
simulate pull and problem solving
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="button button-outline"
|
class="button button-outline"
|
||||||
@click="simulationStore.simulate('push-dps')"
|
@click="simulationStore.multiSimulation(1, 'push-dps')"
|
||||||
>
|
>
|
||||||
simulate push and problem solving
|
simulate push and problem solving
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ export const useSimulationStore = defineStore('dashboard', {
|
|||||||
this.dashboards.push(dashboard)
|
this.dashboards.push(dashboard)
|
||||||
},
|
},
|
||||||
async simulate(strategy: Strategy) {
|
async simulate(strategy: Strategy) {
|
||||||
this.requestedSimulation++
|
|
||||||
const steps = featureSteps
|
const steps = featureSteps
|
||||||
const backlog = await instance.newBacklog()
|
const backlog = await instance.newBacklog()
|
||||||
const features = await instance.initBoard(steps, backlog)
|
const features = await instance.initBoard(steps, backlog)
|
||||||
|
|||||||
Reference in New Issue
Block a user