Class Reconstructive<S extends Solution<S,I>,I extends Instance>

java.lang.Object
es.urjc.etsii.grafo.create.Constructive<S,I>
es.urjc.etsii.grafo.create.Reconstructive<S,I>
Type Parameters:
S - Solution class
I - Instance class
Direct Known Subclasses:
GRASPConstructive

public abstract class Reconstructive<S extends Solution<S,I>,I extends Instance> extends Constructive<S,I>
Represents a constructive method that can rebuild solutions after they have been partially destroyed, or any solution in general that it is not fully constructed. An example use case is in IteratedGreedy and similar algorithms, applied after the destruction phase. If your method does not work if the solution given as a parameter can be partially built, do NOT extend this class, and use Constructive instead.
See Also:
  • Constructor Details

    • Reconstructive

      public Reconstructive()
  • Method Details

    • reconstruct

      public abstract S reconstruct(S solution)
      Rebuild a partially assigned / partially destroyed solution
      Parameters:
      solution - solution partially built
      Returns:
      valid solution completely built