Frontline solver parameter analysis
SolverOK SetCell:=Range("TotalProfit"), _ The SolverOK function defines a problem by specifying the SetCell, MaxMinVal, and B圜hange arguments. This example uses the Solver functions to maximize gross profit in a business problem. If Solver Add-in is not listed in the Add-Ins available box, click Browse to locate the add-in. In the Add-Ins available box, select the Solver Add-In check box, and then click OK. Corresponds to the Select a Solving Method dropdown list in the Solver Parameters dialog box. After you load the Solver Add-in, the Solver command is available in the Analysis group on the Data tab. An alternate way to specify the Solving method that should be used to solve the problem as a string: "Simplex LP", "GRG Nonlinear", or "Evolutionary". Corresponds to the Select a Solving Method dropdown list in the Solver Parameters dialog box.ĮngineDesc Optional Variant. The Solving method that should be used to solve the problem: 2 for the Simplex LP method, 1 for the GRG Nonlinear method, or 3 for the Evolutionary method.
Corresponds to the By Changing Cells box in the Solver Parameters dialog box.Įngine Optional Variant. The cell or range of cells that will be changed so that you will obtain the desired result in the target cell. If MaxMinVal is 3, you must specify the value to which the target cell is matched.ī圜hange Optional Variant.
Corresponds to the Max, Min, and Value options in the Solver Parameters dialog box. Corresponds to the Set Target Cell box in the Solver Parameters dialog box. Refers to a single cell on the active worksheet. SolverOk ( SetCell, MaxMinVal, ValueOf, B圜hange, Engine, EngineDesc) If Solver does not appear under Available References, click Browse, and then open Solver.xlam in the \Program Files\Microsoft Office\Office14\Library\SOLVER subfolder. In the Visual Basic Editor, with a module active, click References on the Tools menu, and then select Solver under Available References. After the Solver add-in is installed, you must establish a reference to the Solver add-in.
#FRONTLINE SOLVER PARAMETER ANALYSIS HOW TO#
For information about how to do that, see Using the Solver VBA Functions. Before you can use this function, you must have the Solver add-in enabled and installed. Note The Solver add-in is not enabled by default. Equivalent to clicking Solver in the Data | Analysis group and then specifying options in the Solver Parameters dialog box.