Solve either by clicking Simulate in the Desktop IDE or PUT rason.net/api/model/{nameorid} then
POST rason.net/api/model/{nameorid}/simulate in the WEB IDE:
41 simulations are completed, each with a different value for sold. The results for the first three simulations are below.
{
"simulations": [{
"status": {
"code": 0,
"id": "2590+UGYieldManagement1Example+2020-02-11-18-32-41055855",
"codeText": "Solver has completed the simulation."
},
"simulation": 1,
"parameters": {
"sold": {
"finalValue": 110
}
},
"uncertainFunctions": {
"revenue": {
"mean": 20445.3,
"percentiles": [
[18098.5, 18100, 18250, 18250, 18250, 18250, 18400, 18400,
…
21700, 21850, 22000, 22300, 22600, 22900, 23353, 24101]
],
"trials": [
[19300, 19750, 18700, 19750, 22300, 19150, 17950, 18550,
…
18100, 19900, 20200, 18400, 21850, 21250, 19900]
]
}
},
"uncertainVariables": {
"no_shows": {
"mean": 10.9922
}
}
},
{
"status": {
"code": 0,
"id": "2590+UGYieldManagement1Example+2020-02-11-18-32-41-055855",
"codeText": "Solver has completed the simulation."
},
"simulation": 2,
"parameters": {
"sold": {
"finalValue": 111
}
},
"uncertainFunctions": {
"revenue": {
"mean": 20500.2,
"percentiles": [
[18098.5, 18100, 18250, 18250, 18250, 18250, 18400, 18400,
…
21550, 21700, 21850, 22000, 22300, 22600, 22900, 23353, 24101]
],
"trials": [
[19300, 19750, 18700, 19750, 22300, 19150, 17950, 18550,
…
22750, 18100, 19900, 20200, 18400, 21850, 21250, 19900]
]
}
},
"uncertainVariables": {
"no_shows": {
"mean": 11.0921
}
}
},
{
"status": {
"code": 0,
"id": "2590+UGYieldManagement1Example+2020-02-11-18-32-41-055855",
"codeText": "Solver has completed the simulation."
},
"simulation": 3,
"parameters": {
"sold": {
"finalValue": 112
}
},
"uncertainFunctions": {
"revenue": {
"mean": 20543.4,
"percentiles": [
[18098.5, 18100, 18250, 18250, 18250, 18250, 18400,
…
21850, 22000, 22300, 22600, 22900, 23353, 24101]
],
"trials": [
[19300, 19750, 18700, 19750, 22300, 19150, 17950,
…
18100, 19900, 20200, 18400, 21850, 21250, 19900]
]
}
},
"uncertainVariables": {
"no_shows": {
"mean": 11.1921
}
}
},
Since we asked for the finalValue for sold, this value is printed for each simulation, along with the expected value
and percentile values.
To see the result for simulation # 5 only, add simulationIndex: 5 to modelSettings as shown below, then
update the model and resolve.
modelSettings: { numSimulations: 41, numTrials: 1000, randomSeed: 1, simulationIndex: 5 },
The Result will contain information for simulation #5 only.
{
"simulations": [{
"status": {
"code": 0,
"id": "2590+UGYieldManagement1Example+2020-02-11-19-24-31-042646",
"codeText": "Solver has completed the simulation."
},
"simulation": 5,
"parameters": {
"sold": {
"finalValue": 114
}
},
"uncertainFunctions": {
"revenue": {
"mean": 20597.1,
"percentiles": [
[19299, 19600, 19750, 19750, 19750, 19900, 19900, 19900,
…
21300, 21300, 21300, 21400, 21400, 21400, 21400]
],
"trials": [
[20650, 20950, 20200, 20950, 20400, 20500, 19600, 20200,
…
20100, 19750, 21100, 21400, 20050, 20600, 20900, 21100]
]
}
},
"uncertainVariables": {
"no_shows": {
"mean": 11.3919
}
}
}]
}