Logo GenPRES

Informedica.GenSolver.Lib Namespace

Modules Description

Api

Creates equations from strings, applies properties and constraints to the variables and solves the equations.

Constraint

Orders constraints by priority, applies a constraint to the matching variable in a list of equations and solves the equations. Raises a solver exception when no variable matches.

Equation

Creates, inspects and solves an equation whose first variable is the product or the sum of the other variables.

Exceptions

Holds the solver exception, raises the exception with a new error message added to a list of error messages, and writes an exception as text. Only the new error message is logged, and only when a logger is given.

Logger

Logs a solver event at a level and a solver error message, and builds a lazy event only when the logger takes the level.

Solver

Solves a list of product and sum equations, solving again every equation that holds a changed variable until no variable changes. Returns the equations with the errors when solving fails.

SolverLogging

Writes solver errors and solver events as text and creates a logger that passes the text to a function.

Types

Holds the types of the solver: the name, the value range and the variable, the equation, the solve result and the constraint.

Utils

Holds the limits of the solver, the maximum depth and the number of workers for parallel work, and the ValueUnit helpers for printing and for operator matching.

Variable

Creates a variable with a name and a value range, restricts and calculates with the value range, and sets the variable to a single value.

Type something to start searching.