1 / 17

Optimization in GoldSim

Optimization in GoldSim. Jason Lillywhite and Ryan Roper June 2012 Webinar. Agenda. Intro – Jason - 15 minutes Simple examples – Ryan – 30 minutes Submodel examples – Jason – 10 minutes Questions – 5 minutes. Why Optimization?. Finding best input values for a model

thanh
Download Presentation

Optimization in GoldSim

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Optimization in GoldSim Jason Lillywhite and Ryan Roper June 2012 Webinar

  2. Agenda • Intro – Jason - 15 minutes • Simple examples – Ryan – 30 minutes • Submodel examples – Jason – 10 minutes • Questions – 5 minutes

  3. Why Optimization? • Finding best input values for a model • Selecting best option among alternatives • Safest, cheapest, most reliable, etc • Optimizing the timing of actions

  4. GoldSim’s Optimization Feature • Box’s complex method • Box, M. J. (1965) “A new method of constrained optimization and comparison with other methods” • Start with initial “complex” (valid solutions) • Search the solution space iteratively • Replace least optimal solutions with more optimal ones • Iterate until convergence

  5. Setting up an Optimization • Minimize/Maximize • Precision • Randomize optimization sequence? • Define your objective function • Required condition • Optimization variables

  6. Precision • Low: 2N; F < 0.01 Ri or 100 solutions • Medium: 4N; F < 0.001 Ri or 1000 solutions • High: 10N; F < 0.00001 Ri or 1E4 solutions • Maximum: 10N; no longer improve result or 1E6 solutions N = number of optimization variables to generate the initial complex F = objective function Ri = initial range

  7. Objective Function • Define your objective function • Minimize or maximize? • Model output • Final values only! • Examples: • Cumulative cost • Total number of events • Peak value during simulation

  8. Objective Function

  9. Required Condition • Add another boundary to the optimization search space • Examples: • Regulatory limit • Financial budget • Restrict unacceptable combination of variables

  10. Optimization Variables • Data or Stochastic elements • Represent decision variables • Have direct control • Examples: • Pipe size • How much to spend? • When something occurs • Objective function dependent on ALL optimization variables!

  11. Optimization Variables

  12. Running an Optimization • Best Function Value vs. Iterations • Plot the optimal value per iteration • Top results • Table showing objective function and variables from the 10 most optimal iterations • Interrupts are ignored during optimization runs if continue or skip options are selected

  13. Running the Optimization

  14. Optimization of Complex Models • Multiple optima • Choice of bounds may be important • Convergence may not be possible • May converge on a local optimum • Randomize optimization helps search through multiple optimal outcomes

  15. Potential Warnings • Unable to create a valid complex • Cannot find 2N valid solutions (N=opt. vars.) • Cannot improve the solution • Found a number of valid solutions but can’t find any better ones (stuck) • Convergence might be too strict • Examine the top results • Failure to converge • No convergence after many iterations • 100 for low, 1000 for medium, 10,000 for high precision

  16. Optimization of a Probabilistic Model • Objective function must be a statistic • i.e. Minimize the mean or value at 95% • Must use a submodel

  17. Applications…

More Related