

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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: