public class ConfigurationXml extends java.lang.Object implements java.lang.Comparable<ConfigurationXml>
Modifier and Type | Field and Description |
---|---|
java.util.TreeSet<AlgorithmXml> |
algorithmResults
Results of each algorithm.
|
double |
density
Density of F.
|
double |
diagonal
Weight of the diagonal term.
|
java.lang.String |
instanceClass
Instance class.
|
double |
omega
Coefficient of the nonlinear term.
|
boolean |
positive
Whether the matrix has only positive terms.
|
int |
rank
Rank of the matrix Sigma.
|
int |
size
Size of the instance.
|
double |
tightness
Tightness of the constraint.
|
double |
tolerance
Tolerance of the solver.
|
Modifier | Constructor and Description |
---|---|
|
ConfigurationXml()
Default constructor.
|
protected |
ConfigurationXml(int size,
double omega,
int rank,
double diagonal,
double density,
boolean positive,
java.lang.String instanceClass,
double tolerance)
Constructor by parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(java.lang.String algorithm,
long seed,
long time,
int iterations,
int QPs,
double upperBound,
double lowerBound,
double rootRelaxation)
Adds a new result.
|
int |
compareTo(ConfigurationXml o) |
protected boolean |
exists(java.lang.String algorithm,
long seed)
Checks whether a give instance already exists in the file.
|
public int size
public double omega
public int rank
public double diagonal
public double density
public boolean positive
public java.lang.String instanceClass
public double tightness
public double tolerance
public java.util.TreeSet<AlgorithmXml> algorithmResults
public ConfigurationXml()
protected ConfigurationXml(int size, double omega, int rank, double diagonal, double density, boolean positive, java.lang.String instanceClass, double tolerance)
size
- The size of the instance. omega
- The nonlinear coefficient. rank
- The rank of the positive definite matrix. diagonal
- The diagonal weight. density
- The density of F. positive
- Whether the matrix has only positive entries. instanceClass
- The instance class. tolerance
- Tolerance of the solver. protected void add(java.lang.String algorithm, long seed, long time, int iterations, int QPs, double upperBound, double lowerBound, double rootRelaxation)
algorithm
- The algorithm used. seed
- The seed. time
- The time. iterations
- The number of iterations. QPs
- The QPs solved.upperBound
- The upper bound. lowerBound
- The lower bound. rootRelaxation
- The value of the root relaxation.protected boolean exists(java.lang.String algorithm, long seed)
algorithm
- The algorithm used. seed
- The seed. public int compareTo(ConfigurationXml o)
compareTo
in interface java.lang.Comparable<ConfigurationXml>