Initializing help system before first use

VariableBuilder.Array4Builder

  • java.lang.Object
    • com.dashoptimization.VariableBuilder.Array4Builder
  • Enclosing class:
    VariableBuilder

    public static final class VariableBuilder.Array4Builder
    extends java.lang.Object
    Build a 4-dimensional array of columns or variables.
    Since:
    43.00
    • Constructor Detail

      • Array4Builder

        public Array4Builder​(int dim1,
                             int dim2,
                             int dim3,
                             int dim4)
        Create a builder that will create a multi-dimensional array of columns or variables with the specified dimensions.
        Parameters:
        dim1 - Dimension 1.
        dim2 - Dimension 2.
        dim3 - Dimension 3.
        dim4 - Dimension 4.
        Since:
        43.00
    • Method Detail

      • withLB

        public VariableBuilder.Array4Builder withLB​(IntFunction4<java.lang.Double> newLb)
        Set a lower bound that depends on the index.
        Parameters:
        newLb - The lower bound for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withLB

        public VariableBuilder.Array4Builder withLB​(double newLb)
        Set a constant lower bound for all columns or variables.
        Parameters:
        newLb - The lower bound for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withLB

        public VariableBuilder.Array4Builder withLB​(double[][][][] newLb)
        Set a lower bound that is given by an array. The dimension(s) of the passed array must match the dimension(s) that were passed to the constructor.
        Parameters:
        newLb - Lower bounds for the individual columns or variables.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withUB

        public VariableBuilder.Array4Builder withUB​(IntFunction4<java.lang.Double> newUb)
        Set a upper bound that depends on the index.
        Parameters:
        newUb - The upper bound for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withUB

        public VariableBuilder.Array4Builder withUB​(double newUb)
        Set a constant upper bound for all columns or variables.
        Parameters:
        newUb - The upper bound for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withUB

        public VariableBuilder.Array4Builder withUB​(double[][][][] newUb)
        Set an upper bound that is given by an array. The dimension(s) of the passed array must match the dimension(s) that were passed to the constructor.
        Parameters:
        newUb - Upper bounds for the individual columns or variables.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withLimit

        public VariableBuilder.Array4Builder withLimit​(IntFunction4<java.lang.Double> newLimit)
        Set a limit that depends on the index. A limit specifies the bounds for semi-continuous/integer columns or variables and the limit for partial integer columns or variables. It does not apply to columns or variables of other types.
        Parameters:
        newLimit - The limit for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withLimit

        public VariableBuilder.Array4Builder withLimit​(double newLimit)
        Set a constant limit for all columns or variables. A limit specifies the bounds for semi-continuous/integer columns or variables and the limit for partial integer columns or variables. It does not apply to columns or variables of other types.
        Parameters:
        newLimit - The limit for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withLimit

        public VariableBuilder.Array4Builder withLimit​(double[][][][] newLimit)
        Set a limit that is given by an array. The dimension(s) of the passed array must match the dimension(s) that were passed to the constructor.
        Parameters:
        newLimit - Limits for the individual columns or variables.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withName

        public VariableBuilder.Array4Builder withName​(IntFunction4<java.lang.String> newName)
        Set a name that depends on the index.
        Parameters:
        newName - The name for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withName

        public VariableBuilder.Array4Builder withName​(java.lang.String newName)
        Set a constant name for all columns or variables.
        Parameters:
        newName - The name for all columns or variables created by this builder. This must be null or a format string that will be invoked with the index as argument.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withName

        public VariableBuilder.Array4Builder withName​(java.lang.String[][][][] newName)
        Set a name bound that is given by an array. The dimension(s) of the passed array must match the dimension(s) that were passed to the constructor.
        Parameters:
        newName - Names for the individual columns or variables.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withType

        public VariableBuilder.Array4Builder withType​(IntFunction4<ColumnType> newType)
        Set a type that depends on the index.
        Parameters:
        newType - The type for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withType

        public VariableBuilder.Array4Builder withType​(ColumnType newType)
        Set the type for all columns or variables.
        Parameters:
        newType - The type for all columns or variables created by this builder.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • withType

        public VariableBuilder.Array4Builder withType​(ColumnType[][][][] newType)
        Set a type that is given by an array. The dimension(s) of the passed array must match the dimension(s) that were passed to the constructor.
        Parameters:
        newType - Types for the individual columns or variables.
        Returns:
        Always returns this instance.
        Since:
        43.00
      • build

        public int[][][][] build​(XPRSprob prob)
        Create columns as specified by this builder.
        Parameters:
        prob - The problem in which to create the columns.
        Returns:
        Indices of the generated columns.
        Since:
        43.00
      • build

        public Variable[][][][] build​(XpressProblem prob)
        Create variables as specified by this builder.
        Parameters:
        prob - The problem in which to create the variables.
        Returns:
        The generated variables.
        Since:
        43.00

© 2001-2025 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.