@frontlinesystems/rason-mcp-server 2026.5.1 → 2026.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +35 -35
- package/examples/EXAMPLES_REFERENCE.md +128 -128
- package/examples/{optimization → Optimization}/Conic/AirlineHubConic.json +111 -111
- package/examples/{optimization → Optimization}/Conic/AirlineHubConic2.json +108 -108
- package/examples/{optimization → Optimization}/Conic/AirlineHubConic3.json +111 -111
- package/examples/{optimization → Optimization}/Conic/AirlineHubConic4.json +99 -99
- package/examples/{optimization → Optimization}/Conic/AirlineHubConic5.json +101 -101
- package/examples/{optimization → Optimization}/DataBinding/ProductMixCsv.json +81 -81
- package/examples/{optimization → Optimization}/DataBinding/ProductMixCsv4.json +96 -96
- package/examples/{optimization → Optimization}/DataBinding/ProductMixExcel.json +73 -73
- package/examples/{optimization → Optimization}/DataBinding/ProductMixExcel1.json +86 -86
- package/examples/{optimization → Optimization}/DataBinding/ProductMixExcel11.json +108 -108
- package/examples/{optimization → Optimization}/DataBinding/ProductMixExcel2.json +77 -77
- package/examples/{optimization → Optimization}/DataBinding/ProductMixTab.json +89 -89
- package/examples/{optimization → Optimization}/DataBinding/ProductMixTab1.json +73 -73
- package/examples/{optimization → Optimization}/DataBinding/ProductMixTab2.json +77 -77
- package/examples/{optimization → Optimization}/Linear/Inventory.json +199 -199
- package/examples/{optimization → Optimization}/Linear/Matop.json +119 -119
- package/examples/{optimization → Optimization}/Linear/ProductMix.json +97 -97
- package/examples/{optimization → Optimization}/Linear/ProductMix2.json +72 -72
- package/examples/{optimization → Optimization}/Linear/ProductMix3.json +49 -49
- package/examples/{optimization → Optimization}/Linear/ProductMix4.json +56 -56
- package/examples/{optimization → Optimization}/Linear/ProductMixCsv1.json +106 -106
- package/examples/{optimization → Optimization}/Linear/ProductMixCsv2.json +106 -106
- package/examples/{optimization → Optimization}/Linear/ProductMixSQL11.json +82 -82
- package/examples/{optimization → Optimization}/Linear/Rowop.json +126 -126
- package/examples/{optimization → Optimization}/NonLinear/AirlineHub.json +63 -63
- package/examples/{optimization → Optimization}/NonLinear/AirlineHub2.json +47 -47
- package/examples/{optimization → Optimization}/NonLinear/AirlineHub3.json +47 -47
- package/examples/{optimization → Optimization}/NonSmooth/Inventory2.json +159 -159
- package/examples/{optimization → Optimization}/Quadratic/PortfolioOpt.json +55 -55
- package/examples/{optimization → Optimization}/Quadratic/PortfolioOpt2.json +65 -65
- package/examples/{optimization → Optimization}/WithUncertainty/GasCompanyChance.json +78 -78
- package/examples/{optimization → Optimization}/WithUncertainty/GasCompanyRecourse.json +78 -78
- package/examples/{optimization → Optimization}/WithUncertainty/ProjectSelect.json +77 -77
- package/examples/{optimization → Optimization}/WithUncertainty/ProjectSelect2.json +81 -81
- package/examples/{optimization → Optimization}/WithUncertainty/ProjectSelect3.json +84 -84
- package/examples/{optimization → Optimization}/WithUncertainty/ProjectSelect4.json +74 -74
- package/examples/{simulation → Simulation}/CandyStoreSalesUsingSIP.json +147 -147
- package/examples/{simulation → Simulation}/CollegeFundGrowth1.json +423 -423
- package/examples/{simulation → Simulation}/CollegeFundGrowth1SIPModel.json +27 -27
- package/examples/{simulation → Simulation}/CollegeFundGrowth2.json +415 -415
- package/examples/{simulation → Simulation}/CollegeFundGrowthSIP.json +401 -401
- package/examples/{simulation → Simulation}/GBMSimulationModel.json +236 -236
- package/examples/{simulation → Simulation}/YieldManagement(Sim).json +69 -69
- package/examples/{simulation → Simulation}/YieldManagement2(Sim).json +72 -72
- package/examples/calculation/DMNExamples/DMN Box Fun with typeDef result.json +53 -53
- package/examples/calculation/DMNExamples/DMN Context example.json +69 -69
- package/examples/calculation/DMNExamples/DMN DT with typeDef result.json +43 -43
- package/examples/calculation/DMNExamples/FEEL Date Time example.json +28 -28
- package/examples/calculation/DMNExamples/FEEL For iteration example.json +66 -66
- package/examples/calculation/DMNExamples/FEEL For with two indices.json +15 -15
- package/examples/calculation/DMNExamples/FEEL For with typeDef result.json +88 -88
- package/examples/calculation/DMNExamples/FEEL If Then Else example.json +25 -25
- package/examples/calculation/DMNExamples/FEEL List example.json +37 -37
- package/examples/calculation/DMNExamples/FEEL List operator.json +17 -17
- package/examples/calculation/DMNExamples/FEEL List with typeDef collection.json +36 -36
- package/examples/calculation/DMNExamples/FEEL Some or Every example.json +65 -65
- package/examples/calculation/DecisionTables/DT Datasource example.json +52 -52
- package/examples/calculation/DecisionTables/DT Date and Time examples.json +91 -91
- package/examples/calculation/DecisionTables/DT Expression example.json +32 -32
- package/examples/calculation/DecisionTables/DT Hit Policy examples.json +136 -136
- package/examples/calculation/DecisionTables/DT Loan Recommend model.json +81 -81
- package/examples/calculation/DecisionTables/DT Loan Strategy Model and Predictive CSV-XML.json +218 -218
- package/examples/calculation/DecisionTables/DT Loan Strategy model and Datasource.json +286 -286
- package/examples/calculation/DecisionTables/DT Loan Strategy model and Predictive.json +203 -203
- package/examples/calculation/DecisionTables/DT Loan Strategy model by scratch.json +214 -214
- package/examples/calculation/DecisionTables/DT Output Order example.json +39 -39
- package/examples/calculation/DecisionTables/DT Unique example.json +38 -38
- package/examples/calculation/TypeDefinitions/TypeDefCF.json +64 -64
- package/examples/calculation/TypeDefinitions/TypeDefDT.json +57 -57
- package/examples/datamining/AffinityAnalysis/AssociationRules.json +51 -51
- package/examples/datamining/Classification/DecisionTree.json +90 -90
- package/examples/datamining/Classification/DiscriminantAnalysis.json +81 -81
- package/examples/datamining/Classification/Ensembles/Bagging.json +66 -66
- package/examples/datamining/Classification/Ensembles/Boosting.json +67 -67
- package/examples/datamining/Classification/Ensembles/RandomTrees.json +91 -91
- package/examples/datamining/Classification/FindBestModel.json +86 -86
- package/examples/datamining/Classification/LogisticRegression.json +82 -82
- package/examples/datamining/Classification/NaiveBayes.json +78 -78
- package/examples/datamining/Classification/NearestNeighbors.json +84 -84
- package/examples/datamining/Classification/NeuralNetwork.json +92 -92
- package/examples/datamining/Clustering/Hierarchical.json +54 -54
- package/examples/datamining/Clustering/KMeans.json +71 -71
- package/examples/datamining/DataSources/DelimitedFile.json +49 -49
- package/examples/datamining/DataSources/JSONFile.json +49 -49
- package/examples/datamining/DataSources/MSAccessDatabase.json +49 -49
- package/examples/datamining/DataSources/MSExcelTable.json +50 -50
- package/examples/datamining/DataSources/MSSQLDatabase.json +49 -49
- package/examples/datamining/DataSources/ODATATable.json +49 -49
- package/examples/datamining/DataSources/ODBCDatabase.json +49 -49
- package/examples/datamining/FeatureSelection/LinearWrapping.json +53 -53
- package/examples/datamining/FeatureSelection/LogisticWrapping.json +56 -56
- package/examples/datamining/FeatureSelection/Univariate.json +78 -78
- package/examples/datamining/Regression/DecisionTree.json +82 -82
- package/examples/datamining/Regression/Ensembles/Bagging.json +62 -62
- package/examples/datamining/Regression/Ensembles/Boosting.json +62 -62
- package/examples/datamining/Regression/Ensembles/RandomTrees.json +78 -78
- package/examples/datamining/Regression/FindBestModel.json +86 -86
- package/examples/datamining/Regression/LinearRegression.json +124 -124
- package/examples/datamining/Regression/NearestNeighbors.json +77 -77
- package/examples/datamining/Regression/NeuralNetwork.json +82 -82
- package/examples/datamining/Scoring/JSONClassifier.json +62 -62
- package/examples/datamining/Scoring/JSONClassifierNN.json +62 -62
- package/examples/datamining/Scoring/JSONClusterizer.json +37 -37
- package/examples/datamining/Scoring/JSONForecaster.json +49 -49
- package/examples/datamining/Scoring/JSONLinearRegression.json +56 -56
- package/examples/datamining/Scoring/JSONPCA.json +41 -41
- package/examples/datamining/Scoring/JSONRegressor.json +56 -56
- package/examples/datamining/Scoring/JSONTransformer.json +38 -38
- package/examples/datamining/Scoring/PMMLClassifier.json +42 -42
- package/examples/datamining/Scoring/PMMLForecaster.json +43 -43
- package/examples/datamining/Scoring/PMMLRegressor.json +38 -38
- package/examples/datamining/Scoring/PMMLTransformer.json +38 -38
- package/examples/datamining/Simulation/LinearRegressionSimulation.json +117 -117
- package/examples/datamining/Simulation/SyntheticDataGeneration.json +108 -108
- package/examples/datamining/Simulation/pmml-risk-scoring.json +62 -62
- package/examples/datamining/Summarizer/Summarization.json +54 -54
- package/examples/datamining/TextMining/LatentSemanticAnalysis.json +51 -51
- package/examples/datamining/TextMining/TfIdf-FileData.json +65 -65
- package/examples/datamining/TextMining/TfIdf-InlineData.json +55 -55
- package/examples/datamining/TimeSeries/AddHoltWinters.json +79 -79
- package/examples/datamining/TimeSeries/Arima.json +74 -74
- package/examples/datamining/TimeSeries/DoubleExponential.json +65 -65
- package/examples/datamining/TimeSeries/Exponential.json +64 -64
- package/examples/datamining/TimeSeries/LagAnalysis.json +48 -48
- package/examples/datamining/TimeSeries/MovingAverage.json +65 -65
- package/examples/datamining/TimeSeries/MulHoltWinters.json +65 -65
- package/examples/datamining/TimeSeries/NoTrendHoltWinters.json +65 -65
- package/examples/datamining/Transformation/Binning.json +69 -69
- package/examples/datamining/Transformation/CanonicalVariateAnalysis.json +47 -47
- package/examples/datamining/Transformation/CategoryReduction.json +51 -51
- package/examples/datamining/Transformation/Factorization.json +50 -50
- package/examples/datamining/Transformation/MissingDataHandling.json +83 -83
- package/examples/datamining/Transformation/OneHotEncoding-DataInline.json +54 -54
- package/examples/datamining/Transformation/OneHotEncoding-DatainFile.json +48 -48
- package/examples/datamining/Transformation/PartitionTimeSeries.json +48 -48
- package/examples/datamining/Transformation/Partitioning-DF.json +72 -72
- package/examples/datamining/Transformation/Partitioning.json +46 -46
- package/examples/datamining/Transformation/PartitioningWithOversampling-DF.json +65 -65
- package/examples/datamining/Transformation/PartitioningWithOversampling.json +44 -44
- package/examples/datamining/Transformation/PrincipalComponentsAnalysis.json +52 -52
- package/examples/datamining/Transformation/Rescaling.json +67 -67
- package/examples/datamining/Transformation/Sampling.json +43 -43
- package/examples/datamining/Transformation/StratifiedSampling.json +46 -46
- package/examples/flow/SQLServerTransform.json +260 -260
- package/examples/flow/dm-calc-pipeline.json +277 -277
- package/examples/flow/dm-pipeline-simulation.json +113 -113
- package/examples/flow/opt-sim-pipeline.json +159 -159
- package/examples/flow/sim-dm-pipeline.json +106 -106
- package/examples/flow/sim-sim-pipeline.json +136 -136
- package/examples/index.json +4678 -4678
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/DataFiltering/ListwithFilter.json +52 -52
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ProductMix5.json +57 -57
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/compoundWhileStatement.json +35 -35
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ifThenElseStatement.json +33 -33
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/nestedLoop.json +25 -25
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/ParallelArray.json +47 -47
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/indexedArray.json +69 -69
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/nonParallelArray.json +49 -49
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/sumAggregateExample.json +337 -337
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/tsp.json +61 -61
- package/examples/rason-features/BoxIterators/Box_Fun_Loop_Iter_Sim_RASON.json +190 -190
- package/examples/rason-features/BoxIterators/Box_Fun_Loop_Sim_RASON.json +75 -75
- package/examples/rason-features/BoxIterators/Box_Fun_Sim_RASON.json +108 -108
- package/examples/rason-features/BoxIterators/Box_Iter_SIM_RASON.json +68 -68
- package/examples/rason-features/BoxIterators/Box_Iterator_Calc_Loop.json +183 -183
- package/examples/rason-features/BoxIterators/Box_Iterator_with_typeDef_partial.json +79 -79
- package/examples/rason-features/BoxLambdaExamples/BoxFunOptimize.json +154 -154
- package/examples/rason-features/BoxLambdaExamples/BoxFunSimulate.json +118 -118
- package/examples/rason-features/BoxLambdaExamples/LambdaFunOptimize.json +142 -142
- package/examples/rason-features/BoxLambdaExamples/LambdaFunSimulate.json +81 -81
- package/examples/rason-features/ReferenceGuide/RGFirehouseLocation.json +69 -69
- package/examples/rason-features/ReferenceGuide/RGFirehouseLocationConic.json +113 -113
- package/examples/rason-features/ReferenceGuide/RGProductMixCsv1.json +107 -107
- package/examples/rason-features/ReferenceGuide/RGProductMixExcel11.json +117 -117
- package/examples/rason-features/ReferenceGuide/RGProductMixSQL11.json +108 -108
- package/examples/rason-features/UserGuide/UGAirlineHubCSV.json +67 -67
- package/examples/rason-features/UserGuide/UGForecast.json +50 -50
- package/examples/rason-features/UserGuide/UGProductMix1.json +48 -48
- package/examples/rason-features/UserGuide/UGProductMix2.json +48 -48
- package/examples/rason-features/UserGuide/UGProductMixTab1.json +67 -67
- package/examples/rason-features/UserGuide/UGProductMixTab2.json +76 -76
- package/examples/rason-features/UserGuide/UGProductMixTab3.json +66 -66
- package/examples/rason-features/UserGuide/UGProductMixTab4.json +70 -70
- package/examples/rason-features/UserGuide/UGProductMixTab5.json +67 -67
- package/examples/rason-features/UserGuide/UGProjectSelect0.json +91 -91
- package/examples/rason-features/UserGuide/UGProjectSelect1.json +74 -74
- package/examples/rason-features/UserGuide/UGProjectSelect2.json +74 -74
- package/examples/rason-features/UserGuide/UGYieldManagement1.json +61 -61
- package/examples/rason-features/UserGuide/UGYieldManagement2.json +61 -61
- package/examples/rason-features/UserGuide/UGYieldManagement3.json +63 -63
- package/out/index.cjs +1 -1
- package/package.json +3 -2
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
{
|
|
2
|
-
"comment": "RASON model illustrating PsiSip() functionality using past monthly candy sales",
|
|
3
|
-
"modelName": "CandyStoreSales(Sim)",
|
|
4
|
-
"modelDescription": "RASON model that uses a SIP (PsiSip) which uses a historical data point for each trial. Benjamin is the owner/operator of a candy store. His best selling products are chocolate bars, JuJu Beans, chocolate nuggets and eclairs. Using last year's sales data from each product, he has estimated his daily Gross Profit from these four products using four different SIPs (Stochastic Information Packets), one for each product.",
|
|
5
|
-
"modelType": "simulation",
|
|
6
|
-
"modelSettings": {
|
|
7
|
-
"comment": "When using a SIP or SLURP, it is important to set the number of trials to a multiple of the number of data points in the historical data. For example, in this model, there are 365 data points in the Past Bars Sales Data. As a result, numTrials is set to 730 or 2 * 365.",
|
|
8
|
-
"numTrials": 730
|
|
9
|
-
},
|
|
10
|
-
"engineSettings": {
|
|
11
|
-
"comment": "Use the engineSettings section to set options related to the engine being used to solve the model, in the case of a simulation model, the Risk Solver Engine. In most cases, the default values are sufficient.",
|
|
12
|
-
"randomGenerator": "Lecuyer",
|
|
13
|
-
"samplingMethod": "Latin"
|
|
14
|
-
},
|
|
15
|
-
"uncertainVariables": {
|
|
16
|
-
"comment": "The are four uncertain variables in the model, all representing the daily sales for each product. Each uncertain variable pulls historical data (directly and in order) from a SIP, or Stochastic Information Packet.",
|
|
17
|
-
"bars": {
|
|
18
|
-
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for bars.",
|
|
19
|
-
"formula": "PsiSip(Past Bars Sales Data)",
|
|
20
|
-
"trials": []
|
|
21
|
-
},
|
|
22
|
-
"beans": {
|
|
23
|
-
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for beans.",
|
|
24
|
-
"formula": "PsiSip(Past Beans Sales Data)",
|
|
25
|
-
"trials": []
|
|
26
|
-
},
|
|
27
|
-
"nuggets": {
|
|
28
|
-
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for nuggets.",
|
|
29
|
-
"formula": "PsiSip(Past Nuggets Sales Data)",
|
|
30
|
-
"trials": []
|
|
31
|
-
},
|
|
32
|
-
"eclairs": {
|
|
33
|
-
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for eclairs.",
|
|
34
|
-
"formula": "PsiSip(Past Eclairs Sales Data)",
|
|
35
|
-
"trials": []
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"data": {
|
|
39
|
-
"comment": "The 'data' section contains the daily historical sales data for each product for 1 year.",
|
|
40
|
-
"Past Bars Sales Data": {
|
|
41
|
-
"value": [ 7, 16, 8, 10, 14, 7, 6, 10, 7, 5, 9, 7, 11, 7, 10, 16, 9, 6, 12, 16, 24, 5, 6, 6, 9, 15, 10, 17, 16, 21, 3, 13, 11, 12, 8, 7, 5, 4, 8, 19, 12, 5, 10, 11, 7, 11, 9, 9, 5, 11, 7, 15, 6, 6, 12, 6, 7, 15, 13, 3, 13, 4, 4, 10, 10, 11, 26, 13, 11, 7, 9, 8, 9, 6, 14, 4, 6, 3, 6, 12, 10, 8, 9, 6, 8, 9, 5, 9, 5, 11, 7, 5, 8, 6, 6, 14, 12, 13, 18, 6, 17, 33, 6, 9, 6, 5, 6, 3, 12, 6, 13, 11, 5, 11, 12, 30, 7, 10, 10, 9, 8, 10, 5, 6, 5, 14, 12, 10, 12, 5, 14, 12, 16, 18, 14, 6, 6, 4, 31, 21, 8, 8, 8, 6, 11, 21, 16, 5, 7, 20, 10, 8, 11, 4, 6, 7, 4, 9, 12, 16, 15, 16, 6, 9, 7, 11, 11, 8, 5, 7, 4, 5, 12, 6, 6, 3, 8, 5, 13, 18, 6, 6, 8, 7, 8, 19, 14, 5, 12, 7, 9, 8, 11, 6, 12, 7, 8, 22, 2, 13, 7, 22, 6, 13, 8, 9, 10, 9, 4, 15, 8, 10, 6, 13, 6, 13, 4, 11, 8, 20, 5, 10, 9, 7, 4, 9, 3, 4, 18, 16, 5, 10, 4, 4, 15, 9, 9, 9, 17, 6, 5, 8, 5, 9, 10, 5, 7, 5, 10, 8, 7, 5, 9, 8, 16, 6, 10, 6, 8, 11, 8, 4, 7, 4, 7, 12, 11, 13, 9, 6, 7, 8, 8, 18, 7, 7, 6, 10, 19, 6, 7, 12, 6, 7, 9, 8, 7, 5, 5, 8, 9, 15, 10, 6, 12, 9, 9, 5, 7, 5, 12, 11, 8, 8, 7, 10, 13, 12, 6, 5, 11, 12, 6, 9, 9, 17, 8, 3, 10, 8, 5, 10, 10, 6, 6, 9, 12, 11, 12, 7, 6, 14, 3, 8, 5, 5, 10, 7, 6, 11, 3, 6, 7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3, 1, 3, 1, 5, 2, 2, 3, 6, 6, 2, 1, 1, 4, 1, 3, 9, 5, 4, 7, 3, 2, 4, 3, 2, 5, 5, 4, 5, 3, 8, 4, 4, 2, 3, 2, 2, 5, 1, 2, 2, 3, 9, 4, 1, 5, 2, 2, 3, 4, 6, 3, 5, 4, 3, 3, 0, 2, 4, 4, 1, 3, 1, 7, 1, 3, 8, 2, 3, 3, 1, 7, 3, 6, 5, 2, 6, 5, 2, 5, 2, 2, 6, 3, 4, 5, 5, 3, 4, 2, 1, 2, 5, 7, 2, 2, 2, 4, 3, 2, 7, 2, 5, 2, 1, 4, 1, 2, 1, 4, 4, 3, 3, 6, 10, 3, 5, 2, 6, 5, 4, 4, 2, 7, 4, 2, 15, 4, 1, 4, 1, 3, 6, 5, 3, 4, 4, 6, 1, 0, 9, 1, 2, 2, 5, 3, 4, 3, 3 ]
|
|
51
|
-
},
|
|
52
|
-
"priceBars": {
|
|
53
|
-
"comment": "The price of a chocolate bar.",
|
|
54
|
-
"value": 2.5
|
|
55
|
-
},
|
|
56
|
-
"costBars": {
|
|
57
|
-
"comment": "The cost to make 1 chocolate bar.",
|
|
58
|
-
"value": 1.5
|
|
59
|
-
},
|
|
60
|
-
"priceBeans": {
|
|
61
|
-
"comment": "The price of a bag of juju beans.",
|
|
62
|
-
"value": 1.75
|
|
63
|
-
},
|
|
64
|
-
"costBeans": {
|
|
65
|
-
"comment": "The cost to make 1 bag of juju beans.",
|
|
66
|
-
"value": 1.05
|
|
67
|
-
},
|
|
68
|
-
"priceNuggets": {
|
|
69
|
-
"comment": "The price of a chocolate nugget.",
|
|
70
|
-
"value": 3.5
|
|
71
|
-
},
|
|
72
|
-
"costNuggets": {
|
|
73
|
-
"comment": "The cost to make 1 chocolate nugget.",
|
|
74
|
-
"value": 2.25
|
|
75
|
-
},
|
|
76
|
-
"priceEclairs": {
|
|
77
|
-
"comment": "The price of an eclair.",
|
|
78
|
-
"value": 4
|
|
79
|
-
},
|
|
80
|
-
"costEclairs": {
|
|
81
|
-
"comment": "The cost to make 1 eclair.",
|
|
82
|
-
"value": 2.95
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"formulas": {
|
|
86
|
-
"salesBars": {
|
|
87
|
-
"comment": "calculating the sales revenue for bars.",
|
|
88
|
-
"formula": "priceBars * bars"
|
|
89
|
-
},
|
|
90
|
-
"salesBeans": {
|
|
91
|
-
"comment": "calculating the sales revenue for juju beans.",
|
|
92
|
-
"formula": "priceBeans * beans"
|
|
93
|
-
},
|
|
94
|
-
"salesNuggets": {
|
|
95
|
-
"comment": "calculating the sales revenue for nuggets.",
|
|
96
|
-
"formula": "priceNuggets * nuggets"
|
|
97
|
-
},
|
|
98
|
-
"salesEclairs": {
|
|
99
|
-
"comment": "calculating the sales revenue for eclairs.",
|
|
100
|
-
"formula": "priceEclairs * eclairs"
|
|
101
|
-
},
|
|
102
|
-
"totalCostBars": {
|
|
103
|
-
"comment": "calculating the production costs associated with chocolate bars.",
|
|
104
|
-
"formula": "costBars * bars"
|
|
105
|
-
},
|
|
106
|
-
"totalCostBeans": {
|
|
107
|
-
"comment": "calculating the production costs associated with juju beans.",
|
|
108
|
-
"formula": "costBeans * beans"
|
|
109
|
-
},
|
|
110
|
-
"totalCostNuggets": {
|
|
111
|
-
"comment": "calculating the production costs associated with chocolate nuggets.",
|
|
112
|
-
"formula": "costNuggets * nuggets"
|
|
113
|
-
},
|
|
114
|
-
"totalCostEclairs": {
|
|
115
|
-
"comment": "calculating the production costs associated with chocolate eclairs.",
|
|
116
|
-
"formula": "costEclairs * eclairs"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"uncertainFunctions": {
|
|
120
|
-
"comment": "The uncertain functions calculate the gross profit for each product.",
|
|
121
|
-
"profitBars": {
|
|
122
|
-
"comment": "Gross profit for chocolate bars",
|
|
123
|
-
"formula": "salesBars - totalCostBars",
|
|
124
|
-
"mean": []
|
|
125
|
-
},
|
|
126
|
-
"profitBeans": {
|
|
127
|
-
"comment": "Gross profit for chocolate juju beans",
|
|
128
|
-
"formula": "salesBeans - totalCostBeans",
|
|
129
|
-
"mean": []
|
|
130
|
-
},
|
|
131
|
-
"profitNuggets": {
|
|
132
|
-
"comment": "Gross profit for chocolate nuggets",
|
|
133
|
-
"formula": "salesNuggets - totalCostNuggets",
|
|
134
|
-
"mean": []
|
|
135
|
-
},
|
|
136
|
-
"profitEclairs": {
|
|
137
|
-
"comment": "Gross profit for eclairs",
|
|
138
|
-
"formula": "salesEclairs - totalCostEclairs",
|
|
139
|
-
"mean": []
|
|
140
|
-
},
|
|
141
|
-
"Total Profit": {
|
|
142
|
-
"comment": "Calculates the Gross Profit for all products combined.",
|
|
143
|
-
"formula": "sum(profitBars + profitBeans + profitNuggets + profitEclairs)",
|
|
144
|
-
"mean": [],
|
|
145
|
-
"trials": []
|
|
146
|
-
}
|
|
147
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"comment": "RASON model illustrating PsiSip() functionality using past monthly candy sales",
|
|
3
|
+
"modelName": "CandyStoreSales(Sim)",
|
|
4
|
+
"modelDescription": "RASON model that uses a SIP (PsiSip) which uses a historical data point for each trial. Benjamin is the owner/operator of a candy store. His best selling products are chocolate bars, JuJu Beans, chocolate nuggets and eclairs. Using last year's sales data from each product, he has estimated his daily Gross Profit from these four products using four different SIPs (Stochastic Information Packets), one for each product.",
|
|
5
|
+
"modelType": "simulation",
|
|
6
|
+
"modelSettings": {
|
|
7
|
+
"comment": "When using a SIP or SLURP, it is important to set the number of trials to a multiple of the number of data points in the historical data. For example, in this model, there are 365 data points in the Past Bars Sales Data. As a result, numTrials is set to 730 or 2 * 365.",
|
|
8
|
+
"numTrials": 730
|
|
9
|
+
},
|
|
10
|
+
"engineSettings": {
|
|
11
|
+
"comment": "Use the engineSettings section to set options related to the engine being used to solve the model, in the case of a simulation model, the Risk Solver Engine. In most cases, the default values are sufficient.",
|
|
12
|
+
"randomGenerator": "Lecuyer",
|
|
13
|
+
"samplingMethod": "Latin"
|
|
14
|
+
},
|
|
15
|
+
"uncertainVariables": {
|
|
16
|
+
"comment": "The are four uncertain variables in the model, all representing the daily sales for each product. Each uncertain variable pulls historical data (directly and in order) from a SIP, or Stochastic Information Packet.",
|
|
17
|
+
"bars": {
|
|
18
|
+
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for bars.",
|
|
19
|
+
"formula": "PsiSip(Past Bars Sales Data)",
|
|
20
|
+
"trials": []
|
|
21
|
+
},
|
|
22
|
+
"beans": {
|
|
23
|
+
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for beans.",
|
|
24
|
+
"formula": "PsiSip(Past Beans Sales Data)",
|
|
25
|
+
"trials": []
|
|
26
|
+
},
|
|
27
|
+
"nuggets": {
|
|
28
|
+
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for nuggets.",
|
|
29
|
+
"formula": "PsiSip(Past Nuggets Sales Data)",
|
|
30
|
+
"trials": []
|
|
31
|
+
},
|
|
32
|
+
"eclairs": {
|
|
33
|
+
"comment": "Check the output for the PsiSip values used for this uncertain function by using the trials: [] property. You'll notice that they will match the historical data for eclairs.",
|
|
34
|
+
"formula": "PsiSip(Past Eclairs Sales Data)",
|
|
35
|
+
"trials": []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"data": {
|
|
39
|
+
"comment": "The 'data' section contains the daily historical sales data for each product for 1 year.",
|
|
40
|
+
"Past Bars Sales Data": {
|
|
41
|
+
"value": [ 7, 16, 8, 10, 14, 7, 6, 10, 7, 5, 9, 7, 11, 7, 10, 16, 9, 6, 12, 16, 24, 5, 6, 6, 9, 15, 10, 17, 16, 21, 3, 13, 11, 12, 8, 7, 5, 4, 8, 19, 12, 5, 10, 11, 7, 11, 9, 9, 5, 11, 7, 15, 6, 6, 12, 6, 7, 15, 13, 3, 13, 4, 4, 10, 10, 11, 26, 13, 11, 7, 9, 8, 9, 6, 14, 4, 6, 3, 6, 12, 10, 8, 9, 6, 8, 9, 5, 9, 5, 11, 7, 5, 8, 6, 6, 14, 12, 13, 18, 6, 17, 33, 6, 9, 6, 5, 6, 3, 12, 6, 13, 11, 5, 11, 12, 30, 7, 10, 10, 9, 8, 10, 5, 6, 5, 14, 12, 10, 12, 5, 14, 12, 16, 18, 14, 6, 6, 4, 31, 21, 8, 8, 8, 6, 11, 21, 16, 5, 7, 20, 10, 8, 11, 4, 6, 7, 4, 9, 12, 16, 15, 16, 6, 9, 7, 11, 11, 8, 5, 7, 4, 5, 12, 6, 6, 3, 8, 5, 13, 18, 6, 6, 8, 7, 8, 19, 14, 5, 12, 7, 9, 8, 11, 6, 12, 7, 8, 22, 2, 13, 7, 22, 6, 13, 8, 9, 10, 9, 4, 15, 8, 10, 6, 13, 6, 13, 4, 11, 8, 20, 5, 10, 9, 7, 4, 9, 3, 4, 18, 16, 5, 10, 4, 4, 15, 9, 9, 9, 17, 6, 5, 8, 5, 9, 10, 5, 7, 5, 10, 8, 7, 5, 9, 8, 16, 6, 10, 6, 8, 11, 8, 4, 7, 4, 7, 12, 11, 13, 9, 6, 7, 8, 8, 18, 7, 7, 6, 10, 19, 6, 7, 12, 6, 7, 9, 8, 7, 5, 5, 8, 9, 15, 10, 6, 12, 9, 9, 5, 7, 5, 12, 11, 8, 8, 7, 10, 13, 12, 6, 5, 11, 12, 6, 9, 9, 17, 8, 3, 10, 8, 5, 10, 10, 6, 6, 9, 12, 11, 12, 7, 6, 14, 3, 8, 5, 5, 10, 7, 6, 11, 3, 6, 7, 8, 25, 6, 4, 6, 7, 5, 6, 11, 7, 4, 6, 4, 19, 8, 9, 11, 17, 8, 6, 15, 4 ]
|
|
42
|
+
},
|
|
43
|
+
"Past Beans Sales Data": {
|
|
44
|
+
"value": [ 8, 6, 6, 7, 7, 4, 7, 7, 8, 7, 6, 7, 5, 7, 5, 4, 5, 7, 6, 6, 4, 5, 6, 8, 5, 6, 8, 8, 7, 7, 6, 7, 4, 7, 5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2, 6, 5, 2, 5, 2, 2, 6, 3, 4, 5, 5, 3, 4, 2, 1, 2, 5, 7, 2, 2, 2, 4, 3, 2, 7, 2, 5, 2, 1, 4, 1, 2, 1, 4, 4, 3, 3, 6, 10, 3, 5, 2, 6, 5, 4, 4, 2, 7, 4, 2, 15, 4, 1, 4, 1, 3, 6, 5, 3, 4, 4, 6, 1, 0, 9, 1, 2, 2, 5, 3, 4, 3, 3 ]
|
|
51
|
+
},
|
|
52
|
+
"priceBars": {
|
|
53
|
+
"comment": "The price of a chocolate bar.",
|
|
54
|
+
"value": 2.5
|
|
55
|
+
},
|
|
56
|
+
"costBars": {
|
|
57
|
+
"comment": "The cost to make 1 chocolate bar.",
|
|
58
|
+
"value": 1.5
|
|
59
|
+
},
|
|
60
|
+
"priceBeans": {
|
|
61
|
+
"comment": "The price of a bag of juju beans.",
|
|
62
|
+
"value": 1.75
|
|
63
|
+
},
|
|
64
|
+
"costBeans": {
|
|
65
|
+
"comment": "The cost to make 1 bag of juju beans.",
|
|
66
|
+
"value": 1.05
|
|
67
|
+
},
|
|
68
|
+
"priceNuggets": {
|
|
69
|
+
"comment": "The price of a chocolate nugget.",
|
|
70
|
+
"value": 3.5
|
|
71
|
+
},
|
|
72
|
+
"costNuggets": {
|
|
73
|
+
"comment": "The cost to make 1 chocolate nugget.",
|
|
74
|
+
"value": 2.25
|
|
75
|
+
},
|
|
76
|
+
"priceEclairs": {
|
|
77
|
+
"comment": "The price of an eclair.",
|
|
78
|
+
"value": 4
|
|
79
|
+
},
|
|
80
|
+
"costEclairs": {
|
|
81
|
+
"comment": "The cost to make 1 eclair.",
|
|
82
|
+
"value": 2.95
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"formulas": {
|
|
86
|
+
"salesBars": {
|
|
87
|
+
"comment": "calculating the sales revenue for bars.",
|
|
88
|
+
"formula": "priceBars * bars"
|
|
89
|
+
},
|
|
90
|
+
"salesBeans": {
|
|
91
|
+
"comment": "calculating the sales revenue for juju beans.",
|
|
92
|
+
"formula": "priceBeans * beans"
|
|
93
|
+
},
|
|
94
|
+
"salesNuggets": {
|
|
95
|
+
"comment": "calculating the sales revenue for nuggets.",
|
|
96
|
+
"formula": "priceNuggets * nuggets"
|
|
97
|
+
},
|
|
98
|
+
"salesEclairs": {
|
|
99
|
+
"comment": "calculating the sales revenue for eclairs.",
|
|
100
|
+
"formula": "priceEclairs * eclairs"
|
|
101
|
+
},
|
|
102
|
+
"totalCostBars": {
|
|
103
|
+
"comment": "calculating the production costs associated with chocolate bars.",
|
|
104
|
+
"formula": "costBars * bars"
|
|
105
|
+
},
|
|
106
|
+
"totalCostBeans": {
|
|
107
|
+
"comment": "calculating the production costs associated with juju beans.",
|
|
108
|
+
"formula": "costBeans * beans"
|
|
109
|
+
},
|
|
110
|
+
"totalCostNuggets": {
|
|
111
|
+
"comment": "calculating the production costs associated with chocolate nuggets.",
|
|
112
|
+
"formula": "costNuggets * nuggets"
|
|
113
|
+
},
|
|
114
|
+
"totalCostEclairs": {
|
|
115
|
+
"comment": "calculating the production costs associated with chocolate eclairs.",
|
|
116
|
+
"formula": "costEclairs * eclairs"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"uncertainFunctions": {
|
|
120
|
+
"comment": "The uncertain functions calculate the gross profit for each product.",
|
|
121
|
+
"profitBars": {
|
|
122
|
+
"comment": "Gross profit for chocolate bars",
|
|
123
|
+
"formula": "salesBars - totalCostBars",
|
|
124
|
+
"mean": []
|
|
125
|
+
},
|
|
126
|
+
"profitBeans": {
|
|
127
|
+
"comment": "Gross profit for chocolate juju beans",
|
|
128
|
+
"formula": "salesBeans - totalCostBeans",
|
|
129
|
+
"mean": []
|
|
130
|
+
},
|
|
131
|
+
"profitNuggets": {
|
|
132
|
+
"comment": "Gross profit for chocolate nuggets",
|
|
133
|
+
"formula": "salesNuggets - totalCostNuggets",
|
|
134
|
+
"mean": []
|
|
135
|
+
},
|
|
136
|
+
"profitEclairs": {
|
|
137
|
+
"comment": "Gross profit for eclairs",
|
|
138
|
+
"formula": "salesEclairs - totalCostEclairs",
|
|
139
|
+
"mean": []
|
|
140
|
+
},
|
|
141
|
+
"Total Profit": {
|
|
142
|
+
"comment": "Calculates the Gross Profit for all products combined.",
|
|
143
|
+
"formula": "sum(profitBars + profitBeans + profitNuggets + profitEclairs)",
|
|
144
|
+
"mean": [],
|
|
145
|
+
"trials": []
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
148
|
}
|