public class ResultsXml
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.TreeSet<ConfigurationXml> |
configurations
The different configurations attempted.
|
static java.lang.String |
PATH_RESULTS
Path for saving the files with objective conic term.
|
Constructor and Description |
---|
ResultsXml()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int size,
double omega,
int rank,
double diagonal,
double density,
boolean positive,
java.lang.String instanceClass,
double tolerance,
java.lang.String algorithm,
long seed,
long time,
int iterations,
int QPs,
double upperBound,
double lowerBound,
double rootRelaxation)
Adds an element.
|
boolean |
exists(int size,
double omega,
int rank,
double diagonal,
double density,
boolean positive,
java.lang.String instanceClass,
java.lang.String algorithm,
long seed,
double tolerance)
Checks whether a given instance exists.
|
void |
Export(java.lang.String path)
Exports to a XML file.
|
static ResultsXml |
Import(java.lang.String path)
Imports from a XML file.
|
public static final java.lang.String PATH_RESULTS
public java.util.TreeSet<ConfigurationXml> configurations
public boolean exists(int size, double omega, int rank, double diagonal, double density, boolean positive, java.lang.String instanceClass, java.lang.String algorithm, long seed, double tolerance)
size
- The size of the problem. omega
- The nonlinear coefficient. rank
- The rank of Sigma. diagonal
- The diagonal element. density
- The density. positive
- Whether the matrix is positive. instanceClass
- The instance class used. algorithm
- The algorithm used. seed
- The seed of the random number generator. tolerance
- Tolerance of the solver. public void add(int size, double omega, int rank, double diagonal, double density, boolean positive, java.lang.String instanceClass, double tolerance, java.lang.String algorithm, long seed, long time, int iterations, int QPs, double upperBound, double lowerBound, double rootRelaxation)
size
- The size of the problem. omega
- The nonlinear coefficient. rank
- The rank of Sigma. diagonal
- The diagonal element. density
- The density. positive
- Whether the matrix is positive. instanceClass
- The instance class used. tolerance
- The tolerance of the solver. algorithm
- The algorithm used. seed
- The seed of the random number generator. time
- The time used to solve the instance. iterations
- The number of iterations. QPs
- The number of QPS. upperBound
- The upper bound. lowerBound
- The lower bound. rootRelaxation
- The value at the root node.public void Export(java.lang.String path) throws javax.xml.bind.JAXBException
path
- Path of the xml file. javax.xml.bind.JAXBException
public static ResultsXml Import(java.lang.String path) throws javax.xml.bind.JAXBException
path
- Path of the XML file. javax.xml.bind.JAXBException