Solver Platform SDK - Loading and Solving Excel WorkbooksLoading and Solving Excel WorkbooksSolver Platform SDK has the ability to load Excel workbooks with optimization and simulation models (created using one of our Excel products) and solve them anywhere, from desktop to server to cloud. Excel is required to create your model, but it's not required on the target system; everything you need is contained with SolverSDK.dll. Examples range from a .NET application running under Windows Server 2008 or SQL Server to a CGI for an Apache Web server under Linux. In workbooks that will be solved via the SDK, you can use almost any Excel formula or function (even new Excel 2010 functions) -- but you can't use functions written in VBA (check with us for other ways to accomplish this). Generally speaking, if your model runs with the PSI Interpreter in Risk Solver Platform or Premium Solver Platform, it will run in Solver Platform SDK. When run in the SDK, problem setup is usually faster, and solution runs at the same speed or faster than in Excel. Your Excel workbook must be in the new XML-based (.xlsx) file format , used in Excel 2010 and Excel 2007. If you're using Excel 2003, you'll need to install the Microsoft Office Compatibility Pack (a free download from Microsoft's Website) so you can save files in this format. Changing Your Input DataWhen you load your workbook, you can update the input data of the model (replacing numbers that originally appeared in worksheet cells), and hence solve a new problem instance. To do this, in Risk Solver Platform or Premium Solver Platform you simply "mark" a cell range for updating in the SDK with a call to the new PsiInput() function -- for example in the Product Mix model included with the SDK, we use =PsiInput(D17:F17) to mark the Profit per Product values for updating. When you load the Excel workbook in your SDK application program -- with a single statement such as problem.Load(filename, File_Format.XLStd) -- the SDK will automatically create InputData objects corresponding to the cell ranges marked with PsiInput() calls. You can reference these cell ranges like arrays, with syntax such as problem.InputData["D17:F17"].Value[i,j], or use a defined name instead of D17:F17. Getting Started with ExamplesIn the SDK Examples folder installed on your PC, you'll find dozens of examples written in all of the supported languages. To see a complete example of loading an Excel workbook, updating its data, and solving an optimization model, open the Product Mix example in Visual Studio, and build and run the application To see an example of loading an Excel workbook and running a Monte Carlo simulation model, open the College Fund example. We've included versions of these models in C#, VB.NET, C++, VB6, Java, and even procedural C, with project files for old and new versions of Visual Studio. Here is sample code in C#, which writes to the console for simplicity. It creates a Problem object, and calls its Load method, passing in a workbook filename. That's all it takes to define the model -- the code immediately calls Problem.Solver.Optimize to solve the problem. Then, in a few simple lines of C#, it accesses and displays the optimal values of the decision variables and the objective.
|
Platform Capabilities What's New in Version 10.0 Language/OS Support Monte Carlo Simulation Plug-in Solver Engines
Risk Solver Platform is an integrated superset of Premium Solver Platform and Risk Solver with best-of-breed simulation, best-of-breed optimization, and new stochastic programming and robust optimization capabilities you can't get anywhere else. Premium Solver Platform, our premier tool for conventional optimization, uses new PSI Technology to automatically analyze and transform your Excel model. It solves every type and size of problem, using built-in and plug-in Solver Engines. Premium Solver, our basic upgrade for the Excel Solver, solves up to 10X larger problems at much higher speed, and solves new kinds of problems with our Evolutionary Solver.
Risk Solver Platform is an integrated superset of Premium Solver Platform and Risk Solver with best-of-breed simulation, best-of-breed optimization, and new stochastic programming and robust optimization capabilities you can't get anywhere else. Risk Solver Premium integrates all the features of Premium Solver and Risk Solver, with far superior optimization and higher performance, easier to use simulation, for about the same price as competitive products for Monte Carlo simulation. Risk Solver is the easiest and fastest tool available for risk analysis of your Excel models, using Monte Carlo simulation. Evaluate thousands of scenarios in seconds, and see instantly updated charts and statistics, each time you ask "what if". Software Developer Tools: Solver Platform SDK makes it easy to solve any type or size of optimization problem in your Visual Basic, VB.NET, C/C++, C#, Java, or MATLAB program. And it's easy to deploy your application with our flexible licensing for software vendors and corporate developers. |


