An optimization has three phases: building the model, setting up the optimization and then running it. The sample code in OptDevKitRuntimeSample.xls illustrates these steps with two sample optimizations. The first is based on Portfolio Analysis.xls, in the Crystal Ball Examples folder. The second adds Efficient Frontier analysis. If you haven’t already, you might find it helpful to complete Tutorial 2 in the Oracle Crystal Ball Decision Optimizer OptQuest User's Guide. This tutorial explains how to complete the Portfolio Analysis.xls model, set up an optimization manually, and then run it. You will then understand the manual process and can better follow what the code is doing.
The following sections discuss optimization coding strategies:
Note: | Before you begin coding, you should learn to perform optimizations with OptQuest. Many of the items used in OptQuest, such as constraints and objectives, match the corresponding objects in the OptQuest Developer Kit. See the Oracle Crystal Ball Decision Optimizer OptQuest User's Guide for complete descriptions of the optimization process and items. |