VariableBuilder.ArrayBuilder
- java.lang.Object
-  
  - com.dashoptimization.VariableBuilder.ArrayBuilder
 
-  
   - Enclosing class:
- VariableBuilder
 
 public static final class VariableBuilder.ArrayBuilder extends java.lang.ObjectBuild a 1 dimensional array of columns or variables.- Since:
- 43.00
 
-  
    
   -  
         Constructor SummaryConstructor Description ArrayBuilder(int dim)Create a builder that will create a multi-dimensional array of columns or variables with the specified dimensions.
 -  
         Method SummaryModifier and Type Method Description Variable[]build(XpressProblem prob)Create variables as specified by this builder.int[]build(XPRSprob prob)Create columns as specified by this builder.VariableBuilder.ArrayBuilderwithLB(double lb)Set a constant lower bound for all columns or variables.VariableBuilder.ArrayBuilderwithLB(double[] lb)Set a lower bound that is given by an array.VariableBuilder.ArrayBuilderwithLB(java.util.function.IntFunction<java.lang.Double> lb)Set a lower bound that depends on the index.VariableBuilder.ArrayBuilderwithLimit(double limit)Set a constant limit for all columns or variables.VariableBuilder.ArrayBuilderwithLimit(double[] limit)Set a limit that is given by an array.VariableBuilder.ArrayBuilderwithLimit(java.util.function.IntFunction<java.lang.Double> limit)Set a limit depends on the index.VariableBuilder.ArrayBuilderwithName(java.lang.String name)Set a constant name for all columns or variables.VariableBuilder.ArrayBuilderwithName(java.lang.String[] name)Set a name bound that is given by an array.VariableBuilder.ArrayBuilderwithName(java.util.function.IntFunction<java.lang.String> name)Set a name that depends on the index.VariableBuilder.ArrayBuilderwithType(ColumnType type)Set the type for all columns or variables.VariableBuilder.ArrayBuilderwithType(ColumnType[] type)Set a type that is given by an array.VariableBuilder.ArrayBuilderwithType(java.util.function.IntFunction<ColumnType> type)Set a type that depends on the index.VariableBuilder.ArrayBuilderwithUB(double ub)Set a constant upper bound for all columns or variables.VariableBuilder.ArrayBuilderwithUB(double[] ub)Set an upper bound that is given by an array.VariableBuilder.ArrayBuilderwithUB(java.util.function.IntFunction<java.lang.Double> ub)Set a upper bound that depends on the index.
 
-  
         
-  
    
   -  
         Method Detail-  withLBpublic VariableBuilder.ArrayBuilder withLB(java.util.function.IntFunction<java.lang.Double> lb) Set a lower bound that depends on the index.- Parameters:
- 
          lb- The lower bound for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLBpublic VariableBuilder.ArrayBuilder withLB(double lb) Set a constant lower bound for all columns or variables.- Parameters:
- 
          lb- The lower bound for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLBpublic VariableBuilder.ArrayBuilder 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 or variables.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withUBpublic VariableBuilder.ArrayBuilder withUB(java.util.function.IntFunction<java.lang.Double> ub) Set a upper bound that depends on the index.- Parameters:
- 
          ub- The upper bound for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withUBpublic VariableBuilder.ArrayBuilder withUB(double ub) Set a constant upper bound for all columns or variables.- Parameters:
- 
          ub- The upper bound for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withUBpublic VariableBuilder.ArrayBuilder 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 or variables.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLimitpublic VariableBuilder.ArrayBuilder withLimit(java.util.function.IntFunction<java.lang.Double> limit) Set a limit 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:
- 
          limit- The limit for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLimitpublic VariableBuilder.ArrayBuilder withLimit(double limit) 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:
- 
          limit- The limit for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withLimitpublic VariableBuilder.ArrayBuilder 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 or variables.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withNamepublic VariableBuilder.ArrayBuilder withName(java.util.function.IntFunction<java.lang.String> name) Set a name that depends on the index.- Parameters:
- 
          name- The name for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withNamepublic VariableBuilder.ArrayBuilder withName(java.lang.String name) Set a constant name for all columns or variables.- Parameters:
- 
          name- The name for all columns or variables 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.ArrayBuilder 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 or variables.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withTypepublic VariableBuilder.ArrayBuilder withType(java.util.function.IntFunction<ColumnType> type) Set a type that depends on the index.- Parameters:
- 
          type- The type for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withTypepublic VariableBuilder.ArrayBuilder withType(ColumnType type) Set the type for all columns or variables.- Parameters:
- 
          type- The type for all columns or variables created by this builder.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  withTypepublic VariableBuilder.ArrayBuilder 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 or variables.
- Returns:
- Always returns this instance.
- Since:
- 43.00
 
 -  buildpublic 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
 
 -  buildpublic 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-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.
 
