public class Tool4LinearProgramming
extends java.lang.Object
Tool4LinearProgramming
provides functions for linear programming.Modifier and Type | Field and Description |
---|---|
static int |
DEGENERATED_SOLUTION |
static int |
IMPOSSIBLE_SOLUTION |
static int |
INFINITE_SOLUTION |
static int |
LIN_PROG_GOMORY
ganzzahliges Lineares Programmieren nach Gomory.
|
static int |
LIN_PROG_SIMPLEX
kontinuierliches Lineares Programmieren.
|
static int |
MORE_THAN_ONE_OPTIMIZED_SOLUTION |
static int |
OPTIMIZED_SOLUTION |
Constructor and Description |
---|
Tool4LinearProgramming(int type_of_opt)
Konstruktor
Tool4LinearProgramming der Klasse. |
Modifier and Type | Method and Description |
---|---|
int |
doOptimization()
The method
doOptimize optimizes a given lin prog problem. |
double |
getGoalFunctionValue()
get field: errechneter Zielfunktionswert.
|
double[] |
getNeb()
get field: Nebenbedingungsvektor.
|
double[] |
getXI()
get field: Hilfsarray Basisvariablen der optimalen L�sung.
|
void |
setParameter(double[] paZielFunkt,
int panzVar,
double[] paVars,
int panzNeb,
double[] paNeb,
double[][] paKoeff,
int panzEVar,
int panzKlein)
Die Methode
setParameter sets the nessesary parameter to initial values. |
public static final int LIN_PROG_SIMPLEX
public static final int LIN_PROG_GOMORY
public static final int OPTIMIZED_SOLUTION
public static final int MORE_THAN_ONE_OPTIMIZED_SOLUTION
public static final int DEGENERATED_SOLUTION
public static final int IMPOSSIBLE_SOLUTION
public static final int INFINITE_SOLUTION
public Tool4LinearProgramming(int type_of_opt)
Tool4LinearProgramming
der Klasse.type_of_opt
- type of optimaziation algorithm.public void setParameter(double[] paZielFunkt, int panzVar, double[] paVars, int panzNeb, double[] paNeb, double[][] paKoeff, int panzEVar, int panzKlein) throws java.lang.Exception
setParameter
sets the nessesary parameter to initial values.paZielFunkt
- Zielfunktionsvektor.panzVar
- Anzahl Variable.paVars
- Variablenvektor.panzNeb
- Anzahl Nebenbedingungen.paNeb
- Nebenbedingungsvektor.paKoeff
- Koeffizientenmatrix.panzEVar
- Anzahl Entscheidungsvariable der Zielfunktion.panzKlein
- Anzahl Kleinerbedingungen.java.lang.Exception
- if errorpublic double getGoalFunctionValue()
public double[] getXI()
public double[] getNeb()
public int doOptimization() throws java.lang.Exception
doOptimize
optimizes a given lin prog problem.java.lang.Exception
- if error