File: intsinpolytope.h

package info (click to toggle)
gfan 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,372 kB
  • sloc: cpp: 53,144; makefile: 556
file content (16 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef INTSINPOLYTOPE_H_INCLUDED
#define INTSINPOLYTOPE_H_INCLUDED

#include "vektor.h"
#include "matrix.h"

bool solveIntegerProgramIneq(IntegerMatrix const &M, IntegerVector const &rightHandSide, IntegerVector &solution);

/** Returns the integer points in a polytope.
    The polytope is of the form Mx<=rightHandSide.
    One point p in the polytope must be given as input.
 */
IntegerVectorList intsInPolytopeGivenIneqAndPt(IntegerMatrix const &M, IntegerVector const &rightHandSide, IntegerVector const &p);
IntegerVectorList intsInPolytopeGivenIneq(IntegerMatrix const &M, IntegerVector const &rightHandSide);

#endif