| Copyright | (c) Masahiro Sakai 2014-2015 |
|---|---|
| License | BSD-style |
| Maintainer | masahiro.sakai@gmail.com |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
ToySolver.Arith.FourierMotzkin.Optimization
Description
Naïve implementation of Fourier-Motzkin Variable Elimination
Reference:
Documentation
optimize :: VarSet -> OptDir -> Expr Rational -> [Atom Rational] -> (Interval Rational, Rational -> Model Rational) Source
optimize dir obj φ returns (I, lift) where
Iis convex hull of feasible region, andliftis a function, that takesx ∈ Iand returns the feasible solution with objective value better than or equal tox.
Note:
(resp.lowerBoundi) is the optimal value in case of minimization (resp. maximization).upperBoundi- If
Iis empty, then the problem is INFEASIBLE.