Copyright | (c) Masahiro Sakai 2011 |
---|---|
License | BSD-style |
Maintainer | masahiro.sakai@gmail.com |
Stability | provisional |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions |
|
Synopsis
- type Tableau r = VarMap (Row r)
- type RowIndex = Int
- type ColIndex = Int
- type Row r = (VarMap r, r)
- emptyTableau :: Tableau r
- objRowIndex :: RowIndex
- pivot :: (Fractional r, Eq r) => RowIndex -> ColIndex -> Tableau r -> Tableau r
- lookupRow :: RowIndex -> Tableau r -> Row r
- addRow :: (Num r, Eq r) => Tableau r -> RowIndex -> Row r -> Tableau r
- setObjFun :: (Num r, Eq r) => Tableau r -> Expr r -> Tableau r
- module Data.OptDir
- currentValue :: Num r => Tableau r -> Var -> r
- currentObjValue :: Tableau r -> r
- isFeasible :: Real r => Tableau r -> Bool
- isOptimal :: Real r => OptDir -> Tableau r -> Bool
- simplex :: (Real r, Fractional r) => OptDir -> Tableau r -> (Bool, Tableau r)
- dualSimplex :: (Real r, Fractional r) => OptDir -> Tableau r -> (Bool, Tableau r)
- phaseI :: (Real r, Fractional r) => Tableau r -> VarSet -> (Bool, Tableau r)
- primalDualSimplex :: (Real r, Fractional r) => OptDir -> Tableau r -> (Bool, Tableau r)
- isValidTableau :: Tableau r -> Bool
- toCSV :: Num r => (r -> String) -> Tableau r -> String
The Tableau
type
emptyTableau :: Tableau r Source #
Optimization direction
module Data.OptDir
Reading status
currentObjValue :: Tableau r -> r Source #
High-level solving functions
dualSimplex :: (Real r, Fractional r) => OptDir -> Tableau r -> (Bool, Tableau r) Source #
primalDualSimplex :: (Real r, Fractional r) => OptDir -> Tableau r -> (Bool, Tableau r) Source #
For debugging
isValidTableau :: Tableau r -> Bool Source #