highs-lp: Linear Programming using HiGHS and comfort-array
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Simple interface to linear programming functions provided by HiGHS
using the flexible Array shape framework from comfort-array.
E.g. you can use Shape.Tuple to convert safely
between nested tuples and arrays with the same number of elements.
type X = Shape.Element
type PairShape = Shape.NestedTuple Shape.TupleIndex (X,X)
case Shape.indexTupleFromShape (Shape.static :: PairShape) of
(posIx,negIx) ->
case fmap (mapSnd Array.toTuple) $ snd $
LP.solve LP.choose [] [[1.*posIx, (-1).*negIx] ==. 314]
(LP.Minimize,
Array.fromTuple (23,42) :: Array PairShape Double)
of
Just (absol, (pos, neg)) ->
printf "absol %f, pos %f, neg %f\n" absol pos neg
_ -> fail "HiGHS solver failed"Alternatives: coinor-clp, comfort-glpk, hmatrix-glpk, glpk-hs
Properties
| Versions | 0.0, 0.0.1 |
|---|---|
| Change log | Changes.md |
| Dependencies | base (>=4.5 && <5), comfort-array (>=0.5.4 && <0.6), deepseq (>=1.3 && <1.7), guarded-allocation (>=0.0.1 && <0.1), linear-programming (>=0.0 && <0.1), non-empty (>=0.3.2 && <0.4), QuickCheck (>=2 && <3), storable-record (>=0.0.5 && <0.1), transformers (>=0.3 && <0.7), utility-ht (>=0.0.16 && <0.1) [details] |
| License | BSD-3-Clause |
| Author | Henning Thielemann <haskell@henning-thielemann.de> |
| Maintainer | Henning Thielemann <haskell@henning-thielemann.de> |
| Category | Math |
| Source repo | this: darcs get https://hub.darcs.net/thielema/highs-lp/ --tag 0.0.1 head: darcs get https://hub.darcs.net/thielema/highs-lp/ |
| Uploaded | by HenningThielemann at 2026-11-19T11:36:39Z |
Modules
- Numeric
- HiGHS
- Numeric.HiGHS.LP
- Numeric.HiGHS.LP.Example
- Numeric.HiGHS.LP.Monad
- Numeric.HiGHS.MIP
- Numeric.HiGHS.LP
- HiGHS
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| debug | Enable debug output | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- highs-lp-0.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees