IFOR Logo
 
 
CPLEX Web Interface @ IFOR
 
Help
 
 

 IFOR Home

english - deutsch


CPLEX Solver Help

Using the CPLEX Web Interface

You can simply write an LP into the text area using the CPLEX lp format. This format is the one you know from textbooks and lectures. Below you'll see two examples for "legal" inputs.

Example 1

A simple LP:
  minimize x1 + x2 + 3 x3
  subject to
  x1 + x2 - x3 <= 7
  2 x2 + 3 x3 >= 2
  end

Example 2

The rows can have names; use a colon (:) to separate the name from the rest of the line:
  max  2 x1 + 3.56 x2 - 1.234 x3
  subject to
  c1:   x1 + x2 >= 1
  c2: 2 x1 + 2 x3 <= 12
  c3: x1 - 2 x2 + 3 x3 <= 3
  c4: x2 + 3 x3 <= 99
  end

Details

  • You can use inequalities (>=, <=) and equations (=).
  • Lines can not be longer than 70 characters; everything beyond that will be thrown away!
  • The LP MUST end with an "end".
  • CPLEX assumes all variables to be nonnegative!





Last Change:  March 5, 2009, 16:05

Author:  Wolfram Schlickenrieder

Maintainer:   Webmaster