Class FasterInvertedConstructive

java.lang.Object
es.urjc.etsii.grafo.create.Constructive<ACSolution,ACInstance>
es.urjc.etsii.grafo.autoconfigtests.components.FasterInvertedConstructive

public class FasterInvertedConstructive extends Constructive<ACSolution,ACInstance>
Test constructive method used to validate the behaviour of the autoconfig mode
  • Constructor Details

    • FasterInvertedConstructive

      @AutoconfigConstructor public FasterInvertedConstructive(@RealParam(min=-50.0,max=50.0) double sumThis)
      Similar to the SlowConstructive, but instead reverses the sign of the sumThis parameter.
      Parameters:
      sumThis - How much to sum to the o.f in each construction
  • Method Details

    • construct

      public ACSolution construct(ACSolution 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<ACSolution,ACInstance>
      Parameters:
      solution - Empty solution, the result of calling the constructor.
      Returns:
      A valid solution that fulfills all the problem constraints.