Class ProblemValidator


public final class ProblemValidator extends ObjectValidator<Problem>
Validator for Problems.
  • Constructor Details

    • ProblemValidator

      public ProblemValidator(String propertyName, Problem problem)
      Constructs a new problem validator.
      Parameters:
      propertyName - the property name
      problem - the problem
  • Method Details

    • isUnconstrained

      public final void isUnconstrained()
      Asserts the problem has no constraints.
    • isType

      public final void isType(Class<? extends Variable> type)
      Asserts the decision variables are all of the requested type.
      Parameters:
      type - the requested type