contents.gifprev1.gifnext1.gif


SolverOptions

Equivalent to choosing Range Analyze Solver... and then choosing the Options button in the Solver Parameters dialog box. Specifies the Solver algorithmic options.

Syntax

SolverOptions(MaxTime, Iterations, Precision, AssumeLinear, StepThru, Estimates, Derivatives, SearchOption, IntTolerance, Scaling, Convergence, AssumeNonneg)

The arguments correspond to the options in the Solver Options dialog box. If any of the arguments are of the wrong type, LotusScript will report an error. If all arguments are of the correct type, but an argument has an invalid value, the function returns a positive integer corresponding to its position. A zero indicates that all options were accepted.

MaxTime must be an integer greater than zero. It corresponds to the Max Time edit box.

Iterations must be an integer greater than zero. It corresponds to the Iterations edit box.

Precision must be a number between zero and one, but not equal to zero or one. It corresponds to the Precision edit box.

AssumeLinear is a value 1 or 0 corresponding to the Assume Linear Model check box.

StepThru is a value 1 or 0 corresponding to the Show Iteration Results check box. If 1, Solver pauses at each trial solution; if 0 it does not. If you have supplied SolverSolve with a valid LotusScript function reference, your function or macro will be called each time Solver pauses; otherwise the standard Show Trial Solution dialog box will appear.

Estimates is the number 1 or 2 and corresponds to the Estimates option: 1 for Tangent and 2 for Quadratic.

Derivatives is the number 1 or 2 and corresponds to the Derivatives option: 1 for Forward and 2 for Central.

SearchOption is the number 1 or 2 and corresponds to the Search option: 1 for Newton and 2 for Conjugate.

IntTolerance is a number between zero and one, corresponding to the Tolerance edit box. This argument applies only if integer constraints have been defined.

Scaling is a value 1 or 0 corresponding to the Use Automatic Scaling check box. If 1, then Solver rescales the constraints internally to similar orders of magnitude during computation. If 0, Solver calculates normally.

Convergence is a number between zero and one, but not equal to zero or one. It corresponds to the Convergence box.

AssumeNonneg is a value 1 or 0 corresponding to the Assume Non-Negative check box. If 1, Solver supplies a lower bound of zero for all variables without explicit lower bounds in the Constraint list box.