Class FLPInstance
java.lang.Object
es.urjc.etsii.grafo.io.Instance
es.urjc.etsii.grafo.flayouts.model.FLPInstance
- All Implemented Interfaces:
Comparable<Instance>
-
Field Summary
Fields inherited from class Instance
LOAD_TIME_NANOS -
Constructor Summary
ConstructorsConstructorDescriptionFLPInstance(String name, int[] lengths, int[][] weigths, int nrows, Map<Integer, Integer> preassignments) -
Method Summary
Modifier and TypeMethodDescriptionintSort order will determine in which order the instances will be solved Sort defaults to instance namestatic FLPInstanceintflow(int f1, int f2) Weight, flow, or cost between f1 and f2.intlength(int facility) Length / width / size of a facility.intNumber of facilitiesintnRows()Number of rows that can be generated by the solver.Methods inherited from class Instance
customProperties, equals, getId, getPath, getProperty, getPropertyOrDefault, getUniquePropertiesKeys, hashCode, resetProperties, setPath, setProperty, toString
-
Constructor Details
-
FLPInstance
-
-
Method Details
-
DRFLP
-
nRows
public int nRows()Number of rows that can be generated by the solver.- Returns:
- number of rows
-
nFacilities
public int nFacilities()Number of facilities- Returns:
- number of facilities
-
length
public int length(int facility) Length / width / size of a facility.- Parameters:
facility- facility id, between 0 and n-1- Returns:
- size
-
flow
public int flow(int f1, int f2) Weight, flow, or cost between f1 and f2.- Parameters:
f1- facility1, between 0 and n-1f2- facility2, between 0 and n-1- Returns:
- flow
-
compareTo
-