Linear constraints over float variables
Functionality by programming task » Programming models » Using float variables and constraints

## Functions

void | Gecode::linear (Home home, const FloatVarArgs &x, FloatRelType frt, FloatVal c)
| Post propagator for .
void | Gecode::linear (Home home, const FloatVarArgs &x, FloatRelType frt, FloatVar y)
| Post propagator for .
void | Gecode::linear (Home home, const FloatVarArgs &x, FloatRelType frt, FloatVal c, Reify r)
| Post propagator for .
void | Gecode::linear (Home home, const FloatVarArgs &x, FloatRelType frt, FloatVar y, Reify r)
| Post propagator for .
void | Gecode::linear (Home home, const FloatValArgs &a, const FloatVarArgs &x, FloatRelType frt, FloatVal c)
| Post propagator for .
void | Gecode::linear (Home home, const FloatValArgs &a, const FloatVarArgs &x, FloatRelType frt, FloatVar y)
| Post propagator for .
void | Gecode::linear (Home home, const FloatValArgs &a, const FloatVarArgs &x, FloatRelType frt, FloatVal c, Reify r)
| Post propagator for .
void | Gecode::linear (Home home, const FloatValArgs &a, const FloatVarArgs &x, FloatRelType frt, FloatVar y, Reify r)
| Post propagator for .

## Detailed Description

## Function Documentation

## linear() [1/8]

void Gecode::linear | ( | Home | home,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVal | c )

Post propagator for .

- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 41 of file linear.cpp.

## linear() [2/8]

void Gecode::linear | ( | Home | home,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVar | y )

Post propagator for .

- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 99 of file linear.cpp.

## linear() [3/8]

void Gecode::linear | ( | Home | home,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVal | c,
|  | Reify | r )

Post propagator for .

- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 54 of file linear.cpp.

## linear() [4/8]

void Gecode::linear | ( | Home | home,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVar | y,
|  | Reify | r )

Post propagator for .

- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 129 of file linear.cpp.

## linear() [5/8]

void Gecode::linear | ( | Home | home,
|  | const FloatValArgs & | a,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVal | c )

Post propagator for .

- Throws an exception of type Float::ArgumentSizeMismatch, if a and x are of different size.
- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 67 of file linear.cpp.

## linear() [6/8]

void Gecode::linear | ( | Home | home,
|  | const FloatValArgs & | a,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVar | y )

Post propagator for .

- Throws an exception of type Float::ArgumentSizeMismatch, if a and x are of different size.
- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 143 of file linear.cpp.

## linear() [7/8]

void Gecode::linear | ( | Home | home,
|  | const FloatValArgs & | a,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVal | c,
|  | Reify | r )

Post propagator for .

- Throws an exception of type Float::ArgumentSizeMismatch, if a and x are of different size.
- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 83 of file linear.cpp.

## linear() [8/8]

void Gecode::linear | ( | Home | home,
|  | const FloatValArgs & | a,
|  | const FloatVarArgs & | x,
|  | FloatRelType | frt,
|  | FloatVar | y,
|  | Reify | r )

Post propagator for .

- Throws an exception of type Float::ArgumentSizeMismatch, if a and x are of different size.
- Throws an exception of type Float::OutOfLimits, if the variables, coefficients, or c exceed the limits as defined in Float::Limits.
- Throws an exception of type Float::ValueMixedSign, if a coefficient has mixed signs (that is, the lower bound is strictly negative and the upper bound is strictly positive).

Definition at line 176 of file linear.cpp.