Library for constraint programming with arithmetic constraints over reals.
Functions:
*.
| +.
| -.
| /.
| <.
| <=.
| >.
| >=.
| i2f
| maximize
| maximumFor
| minimize
| minimumFor
|
Summary of exported functions:
|
(+.) :: Float -> Float -> Float
|
|
Addition on floats in arithmetic constraints.
|
|
(-.) :: Float -> Float -> Float
|
|
Subtraction on floats in arithmetic constraints.
|
|
(*.) :: Float -> Float -> Float
|
|
Multiplication on floats in arithmetic constraints.
|
|
(/.) :: Float -> Float -> Float
|
|
Division on floats in arithmetic constraints.
|
|
(<.) :: Float -> Float -> Success
|
|
"Less than" constraint on floats.
|
|
(>.) :: Float -> Float -> Success
|
|
"Greater than" constraint on floats.
|
|
(<=.) :: Float -> Float -> Success
|
|
"Less than or equal" constraint on floats.
|
|
(>=.) :: Float -> Float -> Success
|
|
"Greater than or equal" constraint on floats.
|
|
i2f :: Int -> Float
|
|
Conversion function from integers to floats.
|
|
minimumFor :: (a -> Success) -> (a -> Float) -> a
|
|
Computes the minimum with respect to a given constraint.
|
|
minimize :: (a -> Success) -> (a -> Float) -> a -> Success
|
|
Minimization constraint.
|
|
maximumFor :: (a -> Success) -> (a -> Float) -> a
|
|
Computes the maximum with respect to a given constraint.
|
|
maximize :: (a -> Success) -> (a -> Float) -> a -> Success
|
|
Maximization constraint.
|
|
Prelude
(+.) :: Float -> Float -> Float
Addition on floats in arithmetic constraints.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 6
(-.) :: Float -> Float -> Float
Subtraction on floats in arithmetic constraints.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 6
(*.) :: Float -> Float -> Float
Multiplication on floats in arithmetic constraints.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 7
(/.) :: Float -> Float -> Float
Division on floats in arithmetic constraints.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 7
(<.) :: Float -> Float -> Success
"Less than" constraint on floats.
-
Further infos:
-
-
defined as non-associative infix operator with precedence 4
(>.) :: Float -> Float -> Success
"Greater than" constraint on floats.
-
Further infos:
-
-
defined as non-associative infix operator with precedence 4
(<=.) :: Float -> Float -> Success
"Less than or equal" constraint on floats.
-
Further infos:
-
-
defined as non-associative infix operator with precedence 4
(>=.) :: Float -> Float -> Success
"Greater than or equal" constraint on floats.
-
Further infos:
-
-
defined as non-associative infix operator with precedence 4
i2f :: Int -> Float
Conversion function from integers to floats.
Rigid in the first argument, i.e., suspends until the first argument
is ground.
minimumFor :: (a -> Success) -> (a -> Float) -> a
Computes the minimum with respect to a given constraint.
(minimumFor g f) evaluates to x if (g x) is satisfied and
(f x) is minimal. The evaluation fails if such a minimal value
does not exist. The evaluation suspends if it contains
unbound non-local variables.
-
Further infos:
-
minimize :: (a -> Success) -> (a -> Float) -> a -> Success
Minimization constraint.
(minimize g f x) is satisfied if (g x) is satisfied and
(f x) is minimal. The evaluation suspends if it contains
unbound non-local variables.
maximumFor :: (a -> Success) -> (a -> Float) -> a
Computes the maximum with respect to a given constraint.
(maximumFor g f) evaluates to x if (g x) is satisfied and
(f x) is maximal. The evaluation fails if such a maximal value
does not exist. The evaluation suspends if it contains
unbound non-local variables.
-
Further infos:
-
maximize :: (a -> Success) -> (a -> Float) -> a -> Success
Maximization constraint.
(maximize g f x) is satisfied if (g x) is satisfied and
(f x) is maximal. The evaluation suspends if it contains
unbound non-local variables.
Generated by CurryDoc
(Version 0.4.1 of June 7, 2007) at Aug 28 15:27:25 2008