VariableBuilder.ColumnArray2Builder
- java.lang.Object
-  
  - com.dashoptimization.VariableBuilder.ColumnArray2Builder
 
-  
   - Enclosing class:
- VariableBuilder
 
 public static final class VariableBuilder.ColumnArray2Builder extends java.lang.ObjectBuild a 2 dimensional array of columns.- Since:
- 43.00
 
-  
    
   -  
         Constructor SummaryConstructor Description ColumnArray2Builder(int dim1, int dim2, XPRSprob prob)Create a builder that will create a 2-dimensional array of columns with the specified dimensions.
 -  
         Method SummaryModifier and Type Method Description int[][]toArray()Create columns as specified by this builder.<I> ItoArray(java.util.function.Supplier<I> makeResult, Action4<I,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult)Create columns as specified by this builder.VariableBuilder.ColumnArray2BuilderwithLB(double lb)Set a constant lower bound for all columns.VariableBuilder.ColumnArray2BuilderwithLB(double[][] lb)Set a lower bound that is given by an array.VariableBuilder.ColumnArray2BuilderwithLB(IntFunction2<java.lang.Double> lb)Set a lower bound that depends on the index.VariableBuilder.ColumnArray2BuilderwithLimit(double limit)Set a constant limit for all columns.VariableBuilder.ColumnArray2BuilderwithLimit(double[][] limit)Set a limit that is given by an array.VariableBuilder.ColumnArray2BuilderwithLimit(IntFunction2<java.lang.Double> limit)Set a limit depends on the index.VariableBuilder.ColumnArray2BuilderwithName(IntFunction2<java.lang.String> name)Set a name that depends on the index.VariableBuilder.ColumnArray2BuilderwithName(java.lang.String name)Set a constant name for all columns.VariableBuilder.ColumnArray2BuilderwithName(java.lang.String[][] name)Set a name bound that is given by an array.VariableBuilder.ColumnArray2BuilderwithType(ColumnType type)Set the type for all columns.VariableBuilder.ColumnArray2BuilderwithType(ColumnType[][] type)Set a type that is given by an array.VariableBuilder.ColumnArray2BuilderwithType(IntFunction2<ColumnType> type)Set a type that depends on the index.VariableBuilder.ColumnArray2BuilderwithUB(double ub)Set a constant upper bound for all columns.VariableBuilder.ColumnArray2BuilderwithUB(double[][] ub)Set an upper bound that is given by an array.VariableBuilder.ColumnArray2BuilderwithUB(IntFunction2<java.lang.Double> ub)Set a upper bound that depends on the index.
 
-  
         
-  
    
   -  
         Constructor Detail-  ColumnArray2Builderpublic ColumnArray2Builder(int dim1, int dim2, XPRSprob prob)Create a builder that will create a 2-dimensional array of columns with the specified dimensions.- Parameters:
- 
          dim1- Dimension 1.
- 
          dim2- Dimension 2.
- 
          prob- The problem for which to create columns.
- Since:
- 43.00
 
 
-  
 -  
         Method Detail-  withLBpublic VariableBuilder.ColumnArray2Builder withLB(IntFunction2<java.lang.Double> lb) Set a lower bound that depends on the index.- Parameters:
- 
          lb- The lower bound for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLBpublic VariableBuilder.ColumnArray2Builder withLB(double lb) Set a constant lower bound for all columns.- Parameters:
- 
          lb- The lower bound for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLBpublic VariableBuilder.ColumnArray2Builder withLB(double[][] lb) 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:
- 
          lb- Lower bounds for the individual columns.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withUBpublic VariableBuilder.ColumnArray2Builder withUB(IntFunction2<java.lang.Double> ub) Set a upper bound that depends on the index.- Parameters:
- 
          ub- The upper bound for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withUBpublic VariableBuilder.ColumnArray2Builder withUB(double ub) Set a constant upper bound for all columns.- Parameters:
- 
          ub- The upper bound for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withUBpublic VariableBuilder.ColumnArray2Builder withUB(double[][] ub) 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:
- 
          ub- Upper bounds for the individual columns.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLimitpublic VariableBuilder.ColumnArray2Builder withLimit(IntFunction2<java.lang.Double> limit) Set a limit depends on the index. A limit specifies the bounds for semi-continuous/integer columns and the limit for partial integer columns. It does not apply to columns of other types.- Parameters:
- 
          limit- The limit for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLimitpublic VariableBuilder.ColumnArray2Builder withLimit(double limit) Set a constant limit for all columns. A limit specifies the bounds for semi-continuous/integer columns and the limit for partial integer columns. It does not apply to columns of other types.- Parameters:
- 
          limit- The limit for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLimitpublic VariableBuilder.ColumnArray2Builder withLimit(double[][] limit) 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:
- 
          limit- Limits for the individual columns.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withNamepublic VariableBuilder.ColumnArray2Builder withName(IntFunction2<java.lang.String> name) Set a name that depends on the index.- Parameters:
- 
          name- The name for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withNamepublic VariableBuilder.ColumnArray2Builder withName(java.lang.String name) Set a constant name for all columns.- Parameters:
- 
          name- The name for all columns created by this builder. This must benullor a format string that will be invoked with the index as argument.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withNamepublic VariableBuilder.ColumnArray2Builder withName(java.lang.String[][] name) 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:
- 
          name- Names for the individual columns.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withTypepublic VariableBuilder.ColumnArray2Builder withType(IntFunction2<ColumnType> type) Set a type that depends on the index.- Parameters:
- 
          type- The type for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withTypepublic VariableBuilder.ColumnArray2Builder withType(ColumnType type) Set the type for all columns.- Parameters:
- 
          type- The type for all columns created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withTypepublic VariableBuilder.ColumnArray2Builder withType(ColumnType[][] type) 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:
- 
          type- Types for the individual columns.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  toArraypublic int[][] toArray() Create columns as specified by this builder.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Since:
- 43.00
 
 -  toArraypublic <I> I toArray(java.util.function.Supplier<I> makeResult, Action4<I,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult)Create columns as specified by this builder.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Type Parameters:
- 
          I- Type of return value.
- Parameters:
- 
          makeResult- A function to create the (empty) return value.
- 
          addResult- A function to add a value to the result.
- 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.
 
