Initializing help system before first use

GeneralConstraint.Definition

  • Enclosing class:
    GeneralConstraint

    public static final class GeneralConstraint.Definition
    extends ConstraintDefinition<GeneralConstraint>
    Definition of a general constraint. Instances of this class describe a constraint that has not yet been added but can be added using XpressProblem.addConstraint() or XpressProblem.addConstraints(). Users should usually not have to deal with this class explicitly.
    Since:
    43.00
    • Constructor Detail

      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          java.util.stream.Stream<Variable> variables,
                          java.util.stream.Stream<java.lang.Double> value,
                          java.lang.String name)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        value - The values in the general constraint. May be null.
        name - The name of the general constraint. May be null.
        Since:
        43.00
      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          java.util.stream.Stream<Variable> variables,
                          java.lang.String name)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        name - Constraint name. May be null.
        Since:
        43.00
      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          Variable... variables)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        Since:
        43.00
      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          Variable[] variables,
                          double[] values)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        values - The values in the general constraint. May be null.
        Since:
        43.00
      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          java.util.stream.Stream<Variable> variables,
                          java.util.stream.DoubleStream value,
                          java.lang.String name)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        value - The values in the general constraint. May be null.
        name - The name of the general constraint. May be null.
        Since:
        43.00
      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          Variable[] variables,
                          double[] value,
                          java.lang.String name)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        value - The values in the general constraint. May be null.
        name - The name of the general constraint. May be null.
        Since:
        43.00
      • Definition

        public Definition​(Variable resultant,
                          XPRSenumerations.GenConsType type,
                          java.lang.Iterable<Variable> variables,
                          java.lang.Iterable<java.lang.Double> value,
                          java.lang.String name)
        Create a new general constraint description. In order to actually add this constraint to a problem you must use the problem's addConstraint function.
        Parameters:
        resultant - The resultant variable.
        type - Type of constraint.
        variables - The variables in the general constraint. May be null.
        value - The values in the general constraint. May be null.
        name - The name of the general constraint. May be null.
        Since:
        43.00

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.