Solving with Simulation Optimization
We'll first solve this problem using simulation optimization using either the Desktop IDE or the Web IDE. If using the Desktop IDE, simply click the Solve icon at the top of the application.
If using the Web IDE,
- Click POST rason.net/api/model to post the model.
- Click POST rason.net/api/model/id/optimize or /solve to begin the simulation optimization.
- Click GET rason.net/api/model/id/status to obtain the status of the solve.
- Click GET rason.net/api/model/id/result to obtain the final result.
The results are shown below.
{
"status": {
"code": 2,
"id": "2590+UGProjectSelect0+2020-03-20-14-44-27-831535",
"codeText": "Solver cannot improve the current solution. All
constraints are satisfied."
},
"variables": {
"x": {
"finalValue": [1, 0, 1, 1, 1, 0, 1, 0]
}
},
"objective": {
"total": {
"finalValue": 1.39564e+06
}
}
}
We've decided to fund projects #1, 3, 4, 5 and 7 for an expected total net cash flow of $1.36808M. That's a great result but for a 'scaled-up' model
that might involve hundreds or thousands of projects, the solution might have taken far more time to solve.
|