Creating a solver
Spark solver to perform a What-If Analysis similar to Goal Seek at each API call.
Spark solver to perform a What-If Analysis similar to Goal Seek at each API call. This is useful to determine the needed value to achieve a target input. For example, Goal Seek could be used to determine how long it would take to pay off a certain loan amount.
Users can build a simple solver that works similarly to Excel’s Goal seek function in order to perform a What-If Analysis. This solver is recognized by Spark and returns the forecasted value.
For example, to reach a specific goal for the amount of annual premium paid by changing the sum assured. This is an effective method to find out how much an individual can be assured for, with a premium constraint.
If a Spark Service has multiple solves, they will be executed in alphabetical order.
How to create a solver block?
Navigate to the Solver application.
Click on Create a solver.
Select the target cell and the changing cell. Select the algorithm you wish to use, and the value you wish to target.

Select an empty area that is at least 2 cells wide, and 13 cells long.
You can rename the solver by changing the XSolve_[address] before creating or changing it through the name manager.
Once the indicator is green, click on the Create button to add the solver block to your selection.
Solver Block Parameters
Run if
A TRUE or FALSE value indicating whether or not this solve should be executed.
Target Cell
A link to the formulated cell that needs to reach the Target value. This is generally recommended to be defined as a difference between the desired Target value of 0.
Target value
The value of the Target cell to achieve. This is best set to 0.
By changing
A link to the cell that has to change in order to for the Target cell to reach the Target value.
Solve algorithm
The available options are SECANT, STOPSATZERO, SMARTSECANT, BRENT.
Max change
Maximum acceptable value of |Solve result - Target value| within Max iterations, default 1.
Max Iterations
Maximum iterations for the number of solve.
Initial guess
Provide an initial guess to help reach the Target value sooner.
Solve Started
TRUE or FALSE value. Spark will write this into the cell during execution. This enables downstream calculations to use this value.
Solve target
This is provided in order to help assess how close the solve was in reaching the target, given the solve can conclude within the Max change. Spark will write this into the cell during execution. This enables downstream calculations to use this value.
Solve iteration
Spark will write this into the cell during execution. This enables downstream calculations to use this value.
Solve result
This will contain either the successful solve value or #N/A. Spark will write this into the cell during execution. This enables downstream calculations to use this value.
Solve successful
TRUE or FALSE value. Spark will write this into the cell during execution. This enables downstream calculations to use this value.
Last updated
