This sample file contains code for two different optimization sequences, both based on the Portfolio Allocation example models. This file is located in the Examples folder beneath the main Crystal Ball installation folder. To use it, open OptDevKitRuntimeSample.xls in Crystal Balll. Choose to enable the macros. Then, open your development environment, for example, the Microsoft Excel Visual Basic Editor. In the project tree, select the class module PortfolioOptimizeClass. Commented sample code appears in the code window. You can run the code by clicking buttons on the Model worksheet. Then, you can examine the code and the comments to see how the samples were constructed. For more information about this sample, see Coding an Optimization following.