Skip to content

Improve high level bindings to allow easier specification of integrality or bounds #3

@stefaj

Description

@stefaj

It's very rare for a single variable type to have integer and non-integer instances.

Define a class which a Variable must be an instance of.

data Type = Continuous | Binary | Integer

data Bound = Fin Int | Infinite

newtype Bounded = Bounded (Bound, Bound) 

class isVar a where
  hasType :: a -> Type
  hasBound :: a -> Bounded

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions