%Hier eine Beispielsession mit CPLEX. %Kommentarzeilen habe vorne ein "%"! dragon:~ <18>% cplex Welcome to CPLEX Linear Optimizer 6.6.1 with Mixed Integer & Barrier Solvers Copyright (c) ILOG 1997-2000 CPLEX is a registered trademark of ILOG Type 'help' for a list of available commands. Type 'help' followed by a command name for more information on commands. CPLEX> help add add constraints to the problem baropt solve using barrier algorithm change change the problem display display problem, solution, or parameter settings enter enter a new problem help provide information on CPLEX commands mipopt solve a mixed integer program netopt solve the problem using network method primopt solve using the primal method quit leave CPLEX read read problem or basis information from a file set set parameters tranopt solve using the dual method write write problem or solution info. to a file xecute execute a command from the operating system Enter enough characters to uniquely identify commands & options. Commands may be executed in either of two formats: 1. Incremental entry--enter the command name, and CPLEX will prompt you for additional required information. 2. Single-line entry--CPLEX accepts single-line command strings, provided simple syntax rules are observed. CPLEX> read test.lp %Das Beispielproblem aus der Datei test.lp wird eingelesen! Problem 'test.lp' read. Read time = 0.00 sec. CPLEX> primopt %Das Problem wird mit einer "primalen" Methode geloest. Tried aggregator 1 time. LP Presolve eliminated 1 rows and 2 columns. All rows and columns eliminated. Presolve time = 0.00 sec. Primal - Optimal: Objective = 2.0000000000e+00 Solution time = 0.00 sec. Iterations = 0 (0) CPLEX> display %Jetzt moechte ich die Loesung ausgeben! Display Options: iis display infeasibility diagnostics (IIS constraints) problem display problem characteristics sensitivity display sensitivity analysis settings display parameter settings solution display existing solution Display what: sol %Eine eindeutige Abkuerzung genuegt. Display Solution Options: basis display a range of basic constraints or variables bestbound display the current MIP best bound dual display a set of solution dual values kappa display the condition number of the basis matrix objective display solution objective value quality display quality of solution reduced display a set of solution reduced costs slacks display a set of solution slack values variables display a set of solution variable values Display what: variables x1-2 Variable Name Solution Value x2 1.000000 All other variables in the range 1-2 are zero. CPLEX> quit dragon:~ <19>%