public final class Instances
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Instances.Instance |
Constructor and Description |
---|
Instances() |
Modifier and Type | Method and Description |
---|---|
static CplexInstance |
getCardinalityInstance(int size,
int cardinality,
int rank,
double Omega,
double diagonal,
double density,
boolean abs,
java.util.Random r) |
static CplexInstance |
getDagInstance(int size,
int rank,
double Omega,
double diagonal,
double density,
boolean abs,
java.util.Random r)
Gets a new instance of a DAG generated using the argument seed.
|
public static CplexInstance getDagInstance(int size, int rank, double Omega, double diagonal, double density, boolean abs, java.util.Random r)
size
- Size of the grid. rank
- Rank of the objective. Omega
- Coefficient of the nonlinear term. diagonal
- Coefficient of the diagonal matrix. density
- Density of F. abs
- Whether to use only positive values or not. r
- The random number generator. public static CplexInstance getCardinalityInstance(int size, int cardinality, int rank, double Omega, double diagonal, double density, boolean abs, java.util.Random r)