Referees-0.0.0: A utility for computing distributions of material to review among reviewers.

Copyright(c) Pablo Couto 2014
LicenseGPL-3
Maintainerpablo@infty.in
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Referees.Solver

Contents

Description

This module reexports some functions from Referees.Solver.Internal.

Synopsis

Constructors

mkProfitMatrix Source

Arguments

:: ProfitFunction a b c 
-> [a]

Items

-> [b]

Bins

-> Maybe c

Optional quality

-> ProfitMatrix 

Given a ProfitFunction, mkProfitMatrix computes a profit matrix between bins and items, optionally taking a quality as being by default shared between them. The values in a ProfitMatrix serve to distribute items among bins according to the capacities of the latter and the values of the former.

Runners and helpers

run_lpGAP :: ProfitMatrix -> [Capacity] -> Bounds Copies -> IO (ReturnCode, Maybe (Double, Map String Double)) Source

Simple helper function to run the glpk-hs interface to GLPK, as constructed with lpGAP. Takes the same arguments as lpGAP.

fromGLPKtoList :: (ReturnCode, Maybe (Double, Map String Double)) -> Maybe [(Col, Row)] Source

fromGLPKtoList turns the (unIOd) output of run_lpGAP into a more usable format.