@frontlinesystems/rason-mcp-server 2026.5.0 → 2026.5.1

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.
Files changed (195) hide show
  1. package/LICENSE +35 -35
  2. package/README.md +1 -1
  3. package/examples/EXAMPLES_REFERENCE.md +128 -128
  4. package/examples/calculation/DMNExamples/DMN Box Fun with typeDef result.json +53 -53
  5. package/examples/calculation/DMNExamples/DMN Context example.json +69 -69
  6. package/examples/calculation/DMNExamples/DMN DT with typeDef result.json +43 -43
  7. package/examples/calculation/DMNExamples/FEEL Date Time example.json +28 -28
  8. package/examples/calculation/DMNExamples/FEEL For iteration example.json +66 -66
  9. package/examples/calculation/DMNExamples/FEEL For with two indices.json +15 -15
  10. package/examples/calculation/DMNExamples/FEEL For with typeDef result.json +88 -88
  11. package/examples/calculation/DMNExamples/FEEL If Then Else example.json +25 -25
  12. package/examples/calculation/DMNExamples/FEEL List example.json +37 -37
  13. package/examples/calculation/DMNExamples/FEEL List operator.json +17 -17
  14. package/examples/calculation/DMNExamples/FEEL List with typeDef collection.json +36 -36
  15. package/examples/calculation/DMNExamples/FEEL Some or Every example.json +65 -65
  16. package/examples/calculation/DecisionTables/DT Datasource example.json +52 -52
  17. package/examples/calculation/DecisionTables/DT Date and Time examples.json +91 -91
  18. package/examples/calculation/DecisionTables/DT Expression example.json +32 -32
  19. package/examples/calculation/DecisionTables/DT Hit Policy examples.json +136 -136
  20. package/examples/calculation/DecisionTables/DT Loan Recommend model.json +81 -81
  21. package/examples/calculation/DecisionTables/DT Loan Strategy Model and Predictive CSV-XML.json +218 -218
  22. package/examples/calculation/DecisionTables/DT Loan Strategy model and Datasource.json +286 -286
  23. package/examples/calculation/DecisionTables/DT Loan Strategy model and Predictive.json +203 -203
  24. package/examples/calculation/DecisionTables/DT Loan Strategy model by scratch.json +214 -214
  25. package/examples/calculation/DecisionTables/DT Output Order example.json +39 -39
  26. package/examples/calculation/DecisionTables/DT Unique example.json +38 -38
  27. package/examples/calculation/TypeDefinitions/TypeDefCF.json +64 -64
  28. package/examples/calculation/TypeDefinitions/TypeDefDT.json +57 -57
  29. package/examples/datamining/AffinityAnalysis/AssociationRules.json +51 -51
  30. package/examples/datamining/Classification/DecisionTree.json +90 -90
  31. package/examples/datamining/Classification/DiscriminantAnalysis.json +81 -81
  32. package/examples/datamining/Classification/Ensembles/Bagging.json +66 -66
  33. package/examples/datamining/Classification/Ensembles/Boosting.json +67 -67
  34. package/examples/datamining/Classification/Ensembles/RandomTrees.json +91 -91
  35. package/examples/datamining/Classification/FindBestModel.json +86 -86
  36. package/examples/datamining/Classification/LogisticRegression.json +82 -82
  37. package/examples/datamining/Classification/NaiveBayes.json +78 -78
  38. package/examples/datamining/Classification/NearestNeighbors.json +84 -84
  39. package/examples/datamining/Classification/NeuralNetwork.json +92 -92
  40. package/examples/datamining/Clustering/Hierarchical.json +54 -54
  41. package/examples/datamining/Clustering/KMeans.json +71 -71
  42. package/examples/datamining/DataSources/DelimitedFile.json +49 -49
  43. package/examples/datamining/DataSources/JSONFile.json +49 -49
  44. package/examples/datamining/DataSources/MSAccessDatabase.json +49 -49
  45. package/examples/datamining/DataSources/MSExcelTable.json +50 -50
  46. package/examples/datamining/DataSources/MSSQLDatabase.json +49 -49
  47. package/examples/datamining/DataSources/ODATATable.json +49 -49
  48. package/examples/datamining/DataSources/ODBCDatabase.json +49 -49
  49. package/examples/datamining/FeatureSelection/LinearWrapping.json +53 -53
  50. package/examples/datamining/FeatureSelection/LogisticWrapping.json +56 -56
  51. package/examples/datamining/FeatureSelection/Univariate.json +78 -78
  52. package/examples/datamining/Regression/DecisionTree.json +82 -82
  53. package/examples/datamining/Regression/Ensembles/Bagging.json +62 -62
  54. package/examples/datamining/Regression/Ensembles/Boosting.json +62 -62
  55. package/examples/datamining/Regression/Ensembles/RandomTrees.json +78 -78
  56. package/examples/datamining/Regression/FindBestModel.json +86 -86
  57. package/examples/datamining/Regression/LinearRegression.json +124 -124
  58. package/examples/datamining/Regression/NearestNeighbors.json +77 -77
  59. package/examples/datamining/Regression/NeuralNetwork.json +82 -82
  60. package/examples/datamining/Scoring/JSONClassifier.json +62 -62
  61. package/examples/datamining/Scoring/JSONClassifierNN.json +62 -62
  62. package/examples/datamining/Scoring/JSONClusterizer.json +37 -37
  63. package/examples/datamining/Scoring/JSONForecaster.json +49 -49
  64. package/examples/datamining/Scoring/JSONLinearRegression.json +56 -56
  65. package/examples/datamining/Scoring/JSONPCA.json +41 -41
  66. package/examples/datamining/Scoring/JSONRegressor.json +56 -56
  67. package/examples/datamining/Scoring/JSONTransformer.json +38 -38
  68. package/examples/datamining/Scoring/PMMLClassifier.json +42 -42
  69. package/examples/datamining/Scoring/PMMLForecaster.json +43 -43
  70. package/examples/datamining/Scoring/PMMLRegressor.json +38 -38
  71. package/examples/datamining/Scoring/PMMLTransformer.json +38 -38
  72. package/examples/datamining/Simulation/LinearRegressionSimulation.json +117 -117
  73. package/examples/datamining/Simulation/SyntheticDataGeneration.json +108 -108
  74. package/examples/datamining/Simulation/pmml-risk-scoring.json +62 -62
  75. package/examples/datamining/Summarizer/Summarization.json +54 -54
  76. package/examples/datamining/TextMining/LatentSemanticAnalysis.json +51 -51
  77. package/examples/datamining/TextMining/TfIdf-FileData.json +65 -65
  78. package/examples/datamining/TextMining/TfIdf-InlineData.json +55 -55
  79. package/examples/datamining/TimeSeries/AddHoltWinters.json +79 -79
  80. package/examples/datamining/TimeSeries/Arima.json +74 -74
  81. package/examples/datamining/TimeSeries/DoubleExponential.json +65 -65
  82. package/examples/datamining/TimeSeries/Exponential.json +64 -64
  83. package/examples/datamining/TimeSeries/LagAnalysis.json +48 -48
  84. package/examples/datamining/TimeSeries/MovingAverage.json +65 -65
  85. package/examples/datamining/TimeSeries/MulHoltWinters.json +65 -65
  86. package/examples/datamining/TimeSeries/NoTrendHoltWinters.json +65 -65
  87. package/examples/datamining/Transformation/Binning.json +69 -69
  88. package/examples/datamining/Transformation/CanonicalVariateAnalysis.json +47 -47
  89. package/examples/datamining/Transformation/CategoryReduction.json +51 -51
  90. package/examples/datamining/Transformation/Factorization.json +50 -50
  91. package/examples/datamining/Transformation/MissingDataHandling.json +83 -83
  92. package/examples/datamining/Transformation/OneHotEncoding-DataInline.json +54 -54
  93. package/examples/datamining/Transformation/OneHotEncoding-DatainFile.json +48 -48
  94. package/examples/datamining/Transformation/PartitionTimeSeries.json +48 -48
  95. package/examples/datamining/Transformation/Partitioning-DF.json +72 -72
  96. package/examples/datamining/Transformation/Partitioning.json +46 -46
  97. package/examples/datamining/Transformation/PartitioningWithOversampling-DF.json +65 -65
  98. package/examples/datamining/Transformation/PartitioningWithOversampling.json +44 -44
  99. package/examples/datamining/Transformation/PrincipalComponentsAnalysis.json +52 -52
  100. package/examples/datamining/Transformation/Rescaling.json +67 -67
  101. package/examples/datamining/Transformation/Sampling.json +43 -43
  102. package/examples/datamining/Transformation/StratifiedSampling.json +46 -46
  103. package/examples/flow/SQLServerTransform.json +260 -260
  104. package/examples/flow/dm-calc-pipeline.json +277 -277
  105. package/examples/flow/dm-pipeline-simulation.json +113 -113
  106. package/examples/flow/opt-sim-pipeline.json +159 -159
  107. package/examples/flow/sim-dm-pipeline.json +106 -106
  108. package/examples/flow/sim-sim-pipeline.json +136 -136
  109. package/examples/index.json +4678 -4678
  110. package/examples/{Optimization → optimization}/Conic/AirlineHubConic.json +111 -111
  111. package/examples/{Optimization → optimization}/Conic/AirlineHubConic2.json +108 -108
  112. package/examples/{Optimization → optimization}/Conic/AirlineHubConic3.json +111 -111
  113. package/examples/{Optimization → optimization}/Conic/AirlineHubConic4.json +99 -99
  114. package/examples/{Optimization → optimization}/Conic/AirlineHubConic5.json +101 -101
  115. package/examples/{Optimization → optimization}/DataBinding/ProductMixCsv.json +81 -81
  116. package/examples/{Optimization → optimization}/DataBinding/ProductMixCsv4.json +96 -96
  117. package/examples/{Optimization → optimization}/DataBinding/ProductMixExcel.json +73 -73
  118. package/examples/{Optimization → optimization}/DataBinding/ProductMixExcel1.json +86 -86
  119. package/examples/{Optimization → optimization}/DataBinding/ProductMixExcel11.json +108 -108
  120. package/examples/{Optimization → optimization}/DataBinding/ProductMixExcel2.json +77 -77
  121. package/examples/{Optimization → optimization}/DataBinding/ProductMixTab.json +89 -89
  122. package/examples/{Optimization → optimization}/DataBinding/ProductMixTab1.json +73 -73
  123. package/examples/{Optimization → optimization}/DataBinding/ProductMixTab2.json +77 -77
  124. package/examples/{Optimization → optimization}/Linear/Inventory.json +199 -199
  125. package/examples/{Optimization → optimization}/Linear/Matop.json +119 -119
  126. package/examples/{Optimization → optimization}/Linear/ProductMix.json +97 -97
  127. package/examples/{Optimization → optimization}/Linear/ProductMix2.json +72 -72
  128. package/examples/{Optimization → optimization}/Linear/ProductMix3.json +49 -49
  129. package/examples/{Optimization → optimization}/Linear/ProductMix4.json +56 -56
  130. package/examples/{Optimization → optimization}/Linear/ProductMixCsv1.json +106 -106
  131. package/examples/{Optimization → optimization}/Linear/ProductMixCsv2.json +106 -106
  132. package/examples/{Optimization → optimization}/Linear/ProductMixSQL11.json +82 -82
  133. package/examples/{Optimization → optimization}/Linear/Rowop.json +126 -126
  134. package/examples/{Optimization → optimization}/NonLinear/AirlineHub.json +63 -63
  135. package/examples/{Optimization → optimization}/NonLinear/AirlineHub2.json +47 -47
  136. package/examples/{Optimization → optimization}/NonLinear/AirlineHub3.json +47 -47
  137. package/examples/{Optimization → optimization}/NonSmooth/Inventory2.json +159 -159
  138. package/examples/{Optimization → optimization}/Quadratic/PortfolioOpt.json +55 -55
  139. package/examples/{Optimization → optimization}/Quadratic/PortfolioOpt2.json +65 -65
  140. package/examples/{Optimization → optimization}/WithUncertainty/GasCompanyChance.json +78 -78
  141. package/examples/{Optimization → optimization}/WithUncertainty/GasCompanyRecourse.json +78 -78
  142. package/examples/{Optimization → optimization}/WithUncertainty/ProjectSelect.json +77 -77
  143. package/examples/{Optimization → optimization}/WithUncertainty/ProjectSelect2.json +81 -81
  144. package/examples/{Optimization → optimization}/WithUncertainty/ProjectSelect3.json +84 -84
  145. package/examples/{Optimization → optimization}/WithUncertainty/ProjectSelect4.json +74 -74
  146. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/DataFiltering/ListwithFilter.json +52 -52
  147. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ProductMix5.json +57 -57
  148. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/compoundWhileStatement.json +35 -35
  149. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ifThenElseStatement.json +33 -33
  150. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/nestedLoop.json +25 -25
  151. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/ParallelArray.json +47 -47
  152. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/indexedArray.json +69 -69
  153. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/nonParallelArray.json +49 -49
  154. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/sumAggregateExample.json +337 -337
  155. package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/tsp.json +61 -61
  156. package/examples/rason-features/BoxIterators/Box_Fun_Loop_Iter_Sim_RASON.json +190 -190
  157. package/examples/rason-features/BoxIterators/Box_Fun_Loop_Sim_RASON.json +75 -75
  158. package/examples/rason-features/BoxIterators/Box_Fun_Sim_RASON.json +108 -108
  159. package/examples/rason-features/BoxIterators/Box_Iter_SIM_RASON.json +68 -68
  160. package/examples/rason-features/BoxIterators/Box_Iterator_Calc_Loop.json +183 -183
  161. package/examples/rason-features/BoxIterators/Box_Iterator_with_typeDef_partial.json +79 -79
  162. package/examples/rason-features/BoxLambdaExamples/BoxFunOptimize.json +154 -154
  163. package/examples/rason-features/BoxLambdaExamples/BoxFunSimulate.json +118 -118
  164. package/examples/rason-features/BoxLambdaExamples/LambdaFunOptimize.json +142 -142
  165. package/examples/rason-features/BoxLambdaExamples/LambdaFunSimulate.json +81 -81
  166. package/examples/rason-features/ReferenceGuide/RGFirehouseLocation.json +69 -69
  167. package/examples/rason-features/ReferenceGuide/RGFirehouseLocationConic.json +113 -113
  168. package/examples/rason-features/ReferenceGuide/RGProductMixCsv1.json +107 -107
  169. package/examples/rason-features/ReferenceGuide/RGProductMixExcel11.json +117 -117
  170. package/examples/rason-features/ReferenceGuide/RGProductMixSQL11.json +108 -108
  171. package/examples/rason-features/UserGuide/UGAirlineHubCSV.json +67 -67
  172. package/examples/rason-features/UserGuide/UGForecast.json +50 -50
  173. package/examples/rason-features/UserGuide/UGProductMix1.json +48 -48
  174. package/examples/rason-features/UserGuide/UGProductMix2.json +48 -48
  175. package/examples/rason-features/UserGuide/UGProductMixTab1.json +67 -67
  176. package/examples/rason-features/UserGuide/UGProductMixTab2.json +76 -76
  177. package/examples/rason-features/UserGuide/UGProductMixTab3.json +66 -66
  178. package/examples/rason-features/UserGuide/UGProductMixTab4.json +70 -70
  179. package/examples/rason-features/UserGuide/UGProductMixTab5.json +67 -67
  180. package/examples/rason-features/UserGuide/UGProjectSelect0.json +91 -91
  181. package/examples/rason-features/UserGuide/UGProjectSelect1.json +74 -74
  182. package/examples/rason-features/UserGuide/UGProjectSelect2.json +74 -74
  183. package/examples/rason-features/UserGuide/UGYieldManagement1.json +61 -61
  184. package/examples/rason-features/UserGuide/UGYieldManagement2.json +61 -61
  185. package/examples/rason-features/UserGuide/UGYieldManagement3.json +63 -63
  186. package/examples/{Simulation → simulation}/CandyStoreSalesUsingSIP.json +147 -147
  187. package/examples/{Simulation → simulation}/CollegeFundGrowth1.json +423 -423
  188. package/examples/{Simulation → simulation}/CollegeFundGrowth1SIPModel.json +27 -27
  189. package/examples/{Simulation → simulation}/CollegeFundGrowth2.json +415 -415
  190. package/examples/{Simulation → simulation}/CollegeFundGrowthSIP.json +401 -401
  191. package/examples/{Simulation → simulation}/GBMSimulationModel.json +236 -236
  192. package/examples/{Simulation → simulation}/YieldManagement(Sim).json +69 -69
  193. package/examples/{Simulation → simulation}/YieldManagement2(Sim).json +72 -72
  194. package/out/index.cjs +38 -38
  195. package/package.json +2 -2
@@ -1,64 +1,64 @@
1
- {
2
- "modelName": "UGYieldManagement3Example",
3
- "modelDescription": "RASON Simulation Optimization Model: Running multiple parameterized simulations in UGYieldManagement2, and examining the results has given us a good deal of information about the behavior of this simulation model. However, if we take just a few more steps we can answer the question, 'How many tickets should we sell to realize the maximum expected net revenue?' By changing 'sold' from a simulation parameter to a decision variable, we can setup a simulation optimization model. See the Defining Your Stochastic Optimization chapter within the RASON User Guide for a complete discussion of this example and also the previous examples UGYieldManagement 1 and 2.",
4
- "comment": "Change the modelType property to 'optimization'. If left at 'modelType':'simulation' as in UGYieldManagement 1 and 2, only a simulation will be performed, not a simulation optimization.",
5
- "modelType": "optimization",
6
- "modelSettings": {
7
- "comment": "Replace numSimulations: 41 with simulationOptimization: True in modelSettings. Setting simulationOptimization to true will run a simulation optimization. The evolutionary engine must be selected in engineSettings below.",
8
- "simulationOptimization": true,
9
- "numTrials": 1000
10
- },
11
- "engineSettings": {
12
- "comment": "In order to run a simulation optimization, you must set the engine to 'Evolutionary'. The random seed option is set to provide reproducible results.",
13
- "engine": "Evolutionary",
14
- "randomSeed": 1
15
- },
16
- "variables": {
17
- "comment": "Replace parameters with variables and define sold as an integer variable (since we can't sell fractional tickets) with a lower bound of 0 (since we can't sell a negative number of tickets). We are interested in the value of this variable in the solution, so we must ask for the finalValue to be returned in the Result.",
18
- "sold": {
19
- "lower": 0,
20
- "upper": 500,
21
- "type": "integer",
22
- "finalValue": []
23
- }
24
- },
25
- "data": {
26
- "comment": "The data section remains unchanged from UGYieldManagement 2.",
27
- "price": {
28
- "value": 200
29
- },
30
- "capacity": {
31
- "value": 100
32
- },
33
- "refund_no_shows": {
34
- "value": 0.5
35
- },
36
- "refund_overbook": {
37
- "value": 1.25
38
- }
39
- },
40
- "uncertainVariables": {
41
- "comment": "The uncertainVariables section remains unchanged from UGYieldManagement 2.",
42
- "no_shows": {
43
- "formula": "PsiLogNormal(0.1*sold, 0.06*sold)"
44
- }
45
- },
46
- "formulas": {
47
- "comment": "The formulas section remains unchanged from UGYieldManagement 2.",
48
- "show_ups": {
49
- "formula": "sold - Round(no_shows, 0)"
50
- },
51
- "overbook": {
52
- "formula": "Max(0, show_ups - capacity)"
53
- }
54
- },
55
- "objective": {
56
- "comment": "The objective section remains unchanged from UGYieldManagement 2.",
57
- "revenue": {
58
- "formula": "price*(sold - refund_no_shows*Round(no_shows, 0) - refund_overbook*overbook)",
59
- "chanceType": "ExpVal",
60
- "type": "maximize",
61
- "finalValue": []
62
- }
63
- }
1
+ {
2
+ "modelName": "UGYieldManagement3Example",
3
+ "modelDescription": "RASON Simulation Optimization Model: Running multiple parameterized simulations in UGYieldManagement2, and examining the results has given us a good deal of information about the behavior of this simulation model. However, if we take just a few more steps we can answer the question, 'How many tickets should we sell to realize the maximum expected net revenue?' By changing 'sold' from a simulation parameter to a decision variable, we can setup a simulation optimization model. See the Defining Your Stochastic Optimization chapter within the RASON User Guide for a complete discussion of this example and also the previous examples UGYieldManagement 1 and 2.",
4
+ "comment": "Change the modelType property to 'optimization'. If left at 'modelType':'simulation' as in UGYieldManagement 1 and 2, only a simulation will be performed, not a simulation optimization.",
5
+ "modelType": "optimization",
6
+ "modelSettings": {
7
+ "comment": "Replace numSimulations: 41 with simulationOptimization: True in modelSettings. Setting simulationOptimization to true will run a simulation optimization. The evolutionary engine must be selected in engineSettings below.",
8
+ "simulationOptimization": true,
9
+ "numTrials": 1000
10
+ },
11
+ "engineSettings": {
12
+ "comment": "In order to run a simulation optimization, you must set the engine to 'Evolutionary'. The random seed option is set to provide reproducible results.",
13
+ "engine": "Evolutionary",
14
+ "randomSeed": 1
15
+ },
16
+ "variables": {
17
+ "comment": "Replace parameters with variables and define sold as an integer variable (since we can't sell fractional tickets) with a lower bound of 0 (since we can't sell a negative number of tickets). We are interested in the value of this variable in the solution, so we must ask for the finalValue to be returned in the Result.",
18
+ "sold": {
19
+ "lower": 0,
20
+ "upper": 500,
21
+ "type": "integer",
22
+ "finalValue": []
23
+ }
24
+ },
25
+ "data": {
26
+ "comment": "The data section remains unchanged from UGYieldManagement 2.",
27
+ "price": {
28
+ "value": 200
29
+ },
30
+ "capacity": {
31
+ "value": 100
32
+ },
33
+ "refund_no_shows": {
34
+ "value": 0.5
35
+ },
36
+ "refund_overbook": {
37
+ "value": 1.25
38
+ }
39
+ },
40
+ "uncertainVariables": {
41
+ "comment": "The uncertainVariables section remains unchanged from UGYieldManagement 2.",
42
+ "no_shows": {
43
+ "formula": "PsiLogNormal(0.1*sold, 0.06*sold)"
44
+ }
45
+ },
46
+ "formulas": {
47
+ "comment": "The formulas section remains unchanged from UGYieldManagement 2.",
48
+ "show_ups": {
49
+ "formula": "sold - Round(no_shows, 0)"
50
+ },
51
+ "overbook": {
52
+ "formula": "Max(0, show_ups - capacity)"
53
+ }
54
+ },
55
+ "objective": {
56
+ "comment": "The objective section remains unchanged from UGYieldManagement 2.",
57
+ "revenue": {
58
+ "formula": "price*(sold - refund_no_shows*Round(no_shows, 0) - refund_overbook*overbook)",
59
+ "chanceType": "ExpVal",
60
+ "type": "maximize",
61
+ "finalValue": []
62
+ }
63
+ }
64
64
  }
@@ -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, 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, 7, 6, 7, 7, 6, 7, 7, 7, 4, 5, 6, 7, 5, 6, 7, 7, 6, 4, 7, 8, 8, 4, 7, 6, 8, 6, 7, 4, 8, 9, 4, 6, 5, 7, 7, 6, 8, 8, 4, 8, 7, 3, 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 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,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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
  }