knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
To get things running you have to included the matchingMarketsEvaluation package and some other requirements.
Note that the matchingMarketsEvaluation package is currently based on the function stabsim3
, which is not yet available in the official package. Please see github.com/tobiasreischmann/matchingMarkets for a current development state.
library(parallel) library(matchingMarkets) library(matchingMarketsEvaluation)
The package offers evaluation techniques to show how variations of different parameters influence the number of rounds needed for the execution of the decentralized college admission mechanism. The following code specifies a configuration analysing the mechanism for different values of the cut-off threshold. This threshold states, how many matchings are tolerated to be different from a full run of the algorithm if we select the results after an earlier round.
body(threshold_configuration)
threshold_configuration()
The calculation can be run using one simple function. The results are the needed rounds for all scenarios of the configuration.
data <- calculateScenarios(rows)
Afterwards, the results can be plotted as a line diagram.
plotEvaluation(data, elements, "Threshold", dimensionxval)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.