The Solver Object

The Solver object is an element of the Solvers collection and contains all the information stored about each solver that is loaded in OptiMax.

Collections contained by the Solver Object

Options

Returns the SolverOptions collection for the solver. (Object Property)

Properties for the Solver Object

Filename

The filename for the solver. (String Property - Read Only)

Name

The name of the solver. (String Property - Read Only)

Pathname

The full pathname for the solver. (String Property - Read Only)

Visual Basic Example:


    Dim MPL As OptiMax
    Dim cplexSolver As Solver
    Dim solvOption As SolverOption

    Set MPL = New OptiMax
    Set cplexSolver = MPL.Solvers.Add("c:\mplwin4\cplex125.dll")
    cplexSolver.Options("IterationLimit").Value = 1000
    For Each solvOption In cplexSolver.Options
        Debug.Print "CPXOPT: " & solvOption.Name & " : " & _
                    " val=" & solvOption.Value & _
                    " def=" & solvOption.DefaultValue & _
                    " max=" & solvOption.MaxValue & _
                    " min=" & solvOption.MinValue
    Next solvOption

        

Back To Top | Maximal Home Page | Table of Contents | Previous Page | Next Page