Docsity

Some Notes on Cdd - Lecture Notes | MA 515, Study notes of Mathematics

Toggle sidebar
bg1
Some Notes on cdd
Description from the website, www.ifor.math.ethz.ch/~fukuda/cdd_home/cdd.html:
The program cdd+ is a C++ implementation of the Double Description
Method of Motzkin et al. for generating all vertices (i.e. extreme points) and
extreme rays of a general convex polyhedron in Rdgiven by a system of linear
inequalities:
P={x:Ax ≤b}
where Ais an m×dreal matrix and bis a real mdimensional vector. The program
can be used for the reverse operation (i.e. convex hull computation) if one run
cdd with “hull” option. This means that one can move back and forth between
an inequality representation and a generator (i.e. vertex and ray) representation
of a polyhedron with cdd+. Also, cdd+ can solve a linear programming problem,
i.e. a problem of maximizing and minimizing a linear function over P.
The program cdd+ is a C++ version of the ANSI C program cdd basically
for the same purpose. The main difference is that it can be compiled for both
rational (exact) arithmetic and floating point arithmetic. (Note that cdd runs
on floating arithmetic only.)
If you have an account on UK’s Mathematical Sciences system, you can open a unix window
by clicking “Start,”, then “All Programs,” then “Telnet T.” Login and then run cdd from
the unix prompt by typing the command
~lee/cdd/new/cdd-061/cdd
This is probably not the latest version of cdd, but I have not installed a later version yet.
To give you an example of using the program, first prepare the following file, calling it
test1.ext:
1
pf3

Partial preview of the text

Download Some Notes on Cdd - Lecture Notes | MA 515 and more Study notes Mathematics in PDF only on Docsity!

Some Notes on cdd

Description from the website, www.ifor.math.ethz.ch/~fukuda/cdd_home/cdd.html:

The program cdd+ is a C++ implementation of the Double Description Method of Motzkin et al. for generating all vertices (i.e. extreme points) and extreme rays of a general convex polyhedron in Rd^ given by a system of linear inequalities: P = {x : Ax ≤ b} where A is an m×d real matrix and b is a real m dimensional vector. The program can be used for the reverse operation (i.e. convex hull computation) if one run cdd with “hull” option. This means that one can move back and forth between an inequality representation and a generator (i.e. vertex and ray) representation of a polyhedron with cdd+. Also, cdd+ can solve a linear programming problem, i.e. a problem of maximizing and minimizing a linear function over P. The program cdd+ is a C++ version of the ANSI C program cdd basically for the same purpose. The main difference is that it can be compiled for both rational (exact) arithmetic and floating point arithmetic. (Note that cdd runs on floating arithmetic only.)

If you have an account on UK’s Mathematical Sciences system, you can open a unix window by clicking “Start,”, then “All Programs,” then “Telnet T.” Login and then run cdd from the unix prompt by typing the command

~lee/cdd/new/cdd-061/cdd

This is probably not the latest version of cdd, but I have not installed a later version yet. To give you an example of using the program, first prepare the following file, calling it test1.ext:

begin 7 4 integer 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 1 0 1 1 0 1 1 0 1 1 end hull incidence

Each of the seven rows in the matrix gives the coordinates of a point in R^3. The first coordinate is always a “1” for points, and a “0” for rays. Supply this file as the input to cdd, typing

~lee/cdd/new/cdd-061/cdd test1.ext.

Then look at the output files that are created, test1.ine and test1.icd. Here is test1.ine:

  • cdd: Double Description Method C-Code:Version 0.61 (December 1, 1997)
  • Copyright (C) 1996, Komei Fukuda, [email protected] *Input File:test1.ext ( 7 x 4) *HyperplaneOrder: LexMin *Degeneracy preknowledge for computation: None (possible degeneracy) *Hull computation is chosen. *Computation starts at Wed Aug 17 14:10:04 2005
  • terminates at Wed Aug 17 14:10:04 2005 *Total processor time = 0 seconds
  • = 0 hour 0 min 0 sec *Since hull computation is chosen, the output is a minimal inequality system *FINAL RESULT: *Number of Facets = 7 H-representation