Logo GenPRES

Types Module

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

Types and nested modules

Type/Module Description

Events

Holds the events the solver logs while solving equations and applying constraints.

Exceptions

Holds the messages for the errors the solver can raise, such as a minimum above a maximum or too many solver loops.

Logging

Holds the message type that wraps a solver error or a solver event for the logging library.

Constraint

Represents a constraint on a Variable. I.e., either a set of values or an increment, minimum or maximum.

Equation

An equation is either a ProductEquation or a SumEquation, the first variable is the dependent variable, i.e., the result of the equation, the second part are the independent variables in the equation

Increment

A set of increments

Maximum

The maximum value in a ValueRange. Can be inclusive or exclusive.

Minimum

The minimal value in a ValueRange. Can be inclusive or exclusive.

Name

Represents a non-empty/null string identifying a Variable. Name can be no longer than 1000 characters and cannot be a null string

Property

Represents a property of a Variable.

SolveResult

The Result of solving an Equation is that either the Equation is the same or has Changed.

ValueRange

Represents a domain of rational numbers.

ValueSet

A set of discrete values

Variable

Represents a variable in an Equation. The variable is identified by Name and has a Values described by the ValueRange.

Type something to start searching.