Class FLPInstance

java.lang.Object
es.urjc.etsii.grafo.io.Instance
es.urjc.etsii.grafo.flayouts.model.FLPInstance
All Implemented Interfaces:
Comparable<Instance>

public class FLPInstance extends Instance
  • Constructor Details

    • FLPInstance

      public FLPInstance(String name, int[] lengths, int[][] weigths, int nrows, Map<Integer,Integer> preassignments)
  • Method Details

    • DRFLP

      public static FLPInstance DRFLP(String name, int[] lengths, int[][] weigths)
    • 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-1
      f2 - facility2, between 0 and n-1
      Returns:
      flow
    • compareTo

      public int compareTo(Instance o)
      Description copied from class: Instance
      Sort order will determine in which order the instances will be solved Sort defaults to instance name
      Specified by:
      compareTo in interface Comparable<Instance>
      Overrides:
      compareTo in class Instance