1 #ifndef OPTIMIZATION_LCP_H 2 #define OPTIMIZATION_LCP_H 4 #include <KrisLibrary/math/matrix.h> 32 void GetW(
Vector& w)
const;
33 void GetZ(
Vector& z)
const;
34 void Print(std::ostream& out)
const;
39 int PickPivot(
int enter)
const;
40 bool Pivot(
int enter,
int leave);
42 const static int z0=-2;
43 const static int constant=-1;
44 bool IsVarW(
int var)
const {
return 0 <= var && var < dictionary.m; }
45 bool IsVarZ(
int var)
const {
return var >= dictionary.m; }
46 int WToZ(
int var)
const {
return var+dictionary.m; }
47 int ZToW(
int var)
const {
return var-dictionary.m; }
48 int VarToW(
int var)
const {
return var; }
49 int VarToZ(
int var)
const {
return var-dictionary.m; }
50 int WToVar(
int index)
const {
return index; }
51 int ZToVar(
int index)
const {
return index+dictionary.m; }
52 std::string VarName(
int var)
const;
60 std::vector<int> basic,nonbasic;
Namespace for classes and functions in the Optimization package.
Definition: CSet.h:7
Solves a linear complementarity problem.
Definition: LCP.h:27
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12