Model.Abs Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Computes the absolute value of a decision, formula, goal, or constraint.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Shared Function Abs ( _
term As Term _
) As Term
public static Term Abs(
Term term
)
public:
static Term^ Abs(
Term^ term
)
static member Abs :
term:Term -> Term
public static function Abs(
term : Term
) : Term
Parameters
- term
Type: Microsoft.SolverFoundation.Services.Term
A decision, formula, goal, or constraint.
Return Value
Type: Microsoft.SolverFoundation.Services.Term
The absolute value of a decision, formula, goal, or constraint.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The operation is not valid for the given inputs. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.