Class Constructive.NullConstructive<S extends Solution<S,I>,I extends Instance>

java.lang.Object
es.urjc.etsii.grafo.create.Constructive<S,I>
es.urjc.etsii.grafo.create.Constructive.NullConstructive<S,I>
Enclosing class:
Constructive<S extends Solution<S,I>,I extends Instance>

public static class Constructive.NullConstructive<S extends Solution<S,I>,I extends Instance> extends Constructive<S,I>
No operation constructive method Returns the solution immediately without executing any operation Not included by default as an autoconfig component because most problems require a constructive method or solutions will not be valid
  • Constructor Details

    • NullConstructive

      public NullConstructive()
      Create a no operation constructive method Returns the solution immediately without executing any operation
  • Method Details

    • construct

      public S construct(S solution)
      Description copied from class: Constructive
      Build a solution. Start with an empty solution, end when the solution is valid.
      Specified by:
      construct in class Constructive<S extends Solution<S,I>,I extends Instance>
      Parameters:
      solution - Empty solution, the result of calling the constructor.
      Returns:
      A valid solution that fulfills all the problem constraints.