Initializing help system before first use

# VariableBuilder.ColumnMapBuilder

- java.lang.Object
- - com.dashoptimization.VariableBuilder.ColumnMapBuilder<K1>

- Enclosing class:
    VariableBuilder

      public static class VariableBuilder.ColumnMapBuilder<K1>
      extends java.lang.Object

  Build a 1-dimensional map of columns.
  Since:
    43.00

- - ### Constructor Summary

    Constructor | Description
    --- | ---
    `ColumnMapBuilder​(java.lang.Iterable<K1> iterable1, XPRSprob prob)` | Create a builder that will create a 1-dimensional map of columns from the specified data.
    `ColumnMapBuilder​(java.util.stream.Stream<K1> strm, XPRSprob prob)` | Create a builder that will create a 1-dimensional map of columns from the specified stream.
    `ColumnMapBuilder​(K1[] arr1, XPRSprob prob)` | Deprecated. since 44.00, use the equivalent overload that takes Iterable arguments

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.HashMap<K1,​java.lang.Integer>` | `toMap()` | Create the columns specified by this builder.
    `<I> I` | `toMap​(java.util.function.Supplier<I> makeResult, Action3<I,​K1,​java.lang.Integer> addResult)` | Create the columns specified by this builder.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withFilter​(java.util.function.Function<K1,​java.lang.Boolean> newFilter)` | Set a filter that selects elements.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withLB​(double newLb)` | Set a constant lower bound for all columns.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withLB​(java.util.function.Function<K1,​java.lang.Double> newLb)` | Set a lower bound that depends on the index.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withLimit​(double newLimit)` | Set a constant limit for all columns.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withLimit​(java.util.function.Function<K1,​java.lang.Double> newLimit)` | Set a limit that depends on the index.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withName​(java.lang.String newName)` | Set a constant name for all columns.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withName​(java.util.function.Function<K1,​java.lang.String> newName)` | Set a name that depends on the index.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withType​(ColumnType newType)` | Set a constant type for all columns.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withType​(java.util.function.Function<K1,​ColumnType> newType)` | Set a type that depends on the index.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withUB​(double newUb)` | Set a constant upper bound for all columns.
    `VariableBuilder.ColumnMapBuilder<K1>` | `withUB​(java.util.function.Function<K1,​java.lang.Double> newUb)` | Set a upper bound that depends on the index.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ColumnMapBuilder

          public ColumnMapBuilder​(java.lang.Iterable<K1> iterable1,
                                  XPRSprob prob)

      Create a builder that will create a 1-dimensional map of columns from the specified data.
      Parameters:
        `iterable1` - Data for the builder.
        `prob` - The problem for which to create columns.
      Since:
        44.00

    - #### ColumnMapBuilder

          @Deprecated
          public ColumnMapBuilder​(K1[] arr1,
                                  XPRSprob prob)

      Deprecated.
      since 44.00, use the equivalent overload that takes Iterable arguments
      Create a builder that will create a 1-dimensional map of columns from the specified arrays.
      Parameters:
        `arr1` - Data for the builder.
        `prob` - The problem for which to create columns.
      Since:
        43.00

    - #### ColumnMapBuilder

          public ColumnMapBuilder​(java.util.stream.Stream<K1> strm,
                                  XPRSprob prob)

      Create a builder that will create a 1-dimensional map of columns from the specified stream.
      Parameters:
        `strm` - Data for creating columns.
        `prob` - The problem for which to create columns.
      Since:
        43.00

  - ### Method Detail

    - #### withLB

          public VariableBuilder.ColumnMapBuilder<K1> withLB​(java.util.function.Function<K1,​java.lang.Double> newLb)

      Set a lower bound that depends on the index.

      Examples using `withLB`:

      - CuttingStock.java
      - FacilityLocationArray.java
      - FacilityLocationCollection.java
      - Glidert.java
      - Polygon.java
      - PolygonMap.java
      - PolygonMapDelta.java
      - PolygonMultiMap.java
      - PolygonMultiMapDelta.java
      - PolygonVecMap.java
      - PolygonVecMapDelta.java
      Parameters:
        `newLb` - The lower bound for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withLB

          public VariableBuilder.ColumnMapBuilder<K1> withLB​(double newLb)

      Set a constant lower bound for all columns.

      Examples using `withLB`:

      - CuttingStock.java
      - FacilityLocationArray.java
      - FacilityLocationCollection.java
      - Glidert.java
      - Polygon.java
      - PolygonMap.java
      - PolygonMapDelta.java
      - PolygonMultiMap.java
      - PolygonMultiMapDelta.java
      - PolygonVecMap.java
      - PolygonVecMapDelta.java
      Parameters:
        `newLb` - The lower bound for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withUB

          public VariableBuilder.ColumnMapBuilder<K1> withUB​(java.util.function.Function<K1,​java.lang.Double> newUb)

      Set a upper bound that depends on the index.

      Examples using `withUB`:

      - CuttingStock.java
      - FacilityLocationArray.java
      - FolioMip2.java
      - MultipleProblems.java
      - Polygon.java
      - PolygonMap.java
      - PolygonMapDelta.java
      - PolygonMultiMap.java
      - PolygonMultiMapDelta.java
      - PolygonObjects.java
      - PolygonVecMap.java
      - PolygonVecMapDelta.java
      - ProductionPlanning_Index.java
      - PurchasePWL.java
      - PurchaseSOS2.java
      - TravelingSalesPerson.java
      Parameters:
        `newUb` - The upper bound for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withUB

          public VariableBuilder.ColumnMapBuilder<K1> withUB​(double newUb)

      Set a constant upper bound for all columns.

      Examples using `withUB`:

      - CuttingStock.java
      - FacilityLocationArray.java
      - FolioMip2.java
      - MultipleProblems.java
      - Polygon.java
      - PolygonMap.java
      - PolygonMapDelta.java
      - PolygonMultiMap.java
      - PolygonMultiMapDelta.java
      - PolygonObjects.java
      - PolygonVecMap.java
      - PolygonVecMapDelta.java
      - ProductionPlanning_Index.java
      - PurchasePWL.java
      - PurchaseSOS2.java
      - TravelingSalesPerson.java
      Parameters:
        `newUb` - The upper bound for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withLimit

          public VariableBuilder.ColumnMapBuilder<K1> withLimit​(java.util.function.Function<K1,​java.lang.Double> newLimit)

      Set a limit that 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.

      Examples using `withLimit`:

      - ContractAllocation.java
      Parameters:
        `newLimit` - The limit for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withLimit

          public VariableBuilder.ColumnMapBuilder<K1> withLimit​(double newLimit)

      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.

      Examples using `withLimit`:

      - ContractAllocation.java
      Parameters:
        `newLimit` - The limit for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withName

          public VariableBuilder.ColumnMapBuilder<K1> withName​(java.util.function.Function<K1,​java.lang.String> newName)

      Set a name that depends on the index.

      Examples using `withName`:

      - Boxes02.java
      - Capbgt2l.java
      - CuttingStock.java
      - ELS.java
      - ELSCut.java
      - ELSManagedCuts.java
      - FacilityLocationCollection.java
      - FolioCB.java
      - FolioHeuristic.java
      - FolioIIS.java
      - FolioInit.java
      - FolioMip1.java
      - FolioMipIIS.java
      - FolioQC.java
      - FolioQP.java
      - MultipleKnapsack_Arrays.java
      - MultipleKnapsack_Collections.java
      - MultipleProblems.java
      - Polygon.java
      - PolygonMap.java
      - PolygonMapDelta.java
      - PolygonMultiMap.java
      - PolygonMultiMapDelta.java
      - PolygonVecMap.java
      - PolygonVecMapDelta.java
      - RecursiveFinancialPlanning.java
      - Sangraalind.java
      - SpecialOrderedSetsQuadratic.java
      - TravelingSalesPerson.java
      Parameters:
        `newName` - The name for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withName

          public VariableBuilder.ColumnMapBuilder<K1> withName​(java.lang.String newName)

      Set a constant name for all columns.

      Examples using `withName`:

      - Boxes02.java
      - Capbgt2l.java
      - CuttingStock.java
      - ELS.java
      - ELSCut.java
      - ELSManagedCuts.java
      - FacilityLocationCollection.java
      - FolioCB.java
      - FolioHeuristic.java
      - FolioIIS.java
      - FolioInit.java
      - FolioMip1.java
      - FolioMipIIS.java
      - FolioQC.java
      - FolioQP.java
      - MultipleKnapsack_Arrays.java
      - MultipleKnapsack_Collections.java
      - MultipleProblems.java
      - Polygon.java
      - PolygonMap.java
      - PolygonMapDelta.java
      - PolygonMultiMap.java
      - PolygonMultiMapDelta.java
      - PolygonVecMap.java
      - PolygonVecMapDelta.java
      - RecursiveFinancialPlanning.java
      - Sangraalind.java
      - SpecialOrderedSetsQuadratic.java
      - TravelingSalesPerson.java
      Parameters:
        `newName` - The name for all columns 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

    - #### withType

          public VariableBuilder.ColumnMapBuilder<K1> withType​(java.util.function.Function<K1,​ColumnType> newType)

      Set a type that depends on the index.

      Examples using `withType`:

      - Boxes02.java
      - ContractAllocation.java
      - ELSManagedCuts.java
      - FacilityLocationArray.java
      - FolioCB.java
      - FolioMip2.java
      - FolioMipIIS.java
      - MultipleKnapsack_Arrays.java
      - MultipleKnapsack_Collections.java
      - Pplan.java
      - TravelingSalesPerson.java
      Parameters:
        `newType` - The type for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withType

          public VariableBuilder.ColumnMapBuilder<K1> withType​(ColumnType newType)

      Set a constant type for all columns.

      Examples using `withType`:

      - Boxes02.java
      - ContractAllocation.java
      - ELSManagedCuts.java
      - FacilityLocationArray.java
      - FolioCB.java
      - FolioMip2.java
      - FolioMipIIS.java
      - MultipleKnapsack_Arrays.java
      - MultipleKnapsack_Collections.java
      - Pplan.java
      - TravelingSalesPerson.java
      Parameters:
        `newType` - The type for all columns created by this builder.
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### withFilter

          public VariableBuilder.ColumnMapBuilder<K1> withFilter​(java.util.function.Function<K1,​java.lang.Boolean> newFilter)

      Set a filter that selects elements.
      Parameters:
        `newFilter` - Element filter
      Returns:
        Always returns this instance.
      Since:
        43.00

    - #### toMap

          public java.util.HashMap<K1,​java.lang.Integer> toMap()

      Create the columns specified by this builder.

      Examples using `toMap`:

      - BinBurglar.java
      - FacilityLocationCollection.java
      - MultipleKnapsack_Collections.java
      Returns:
        The created columns.
      Since:
        43.00

    - #### toMap

          public <I> I toMap​(java.util.function.Supplier<I> makeResult,
                             Action3<I,​K1,​java.lang.Integer> addResult)

      Create the columns specified by this builder.

      Examples using `toMap`:

      - BinBurglar.java
      - FacilityLocationCollection.java
      - MultipleKnapsack_Collections.java
      Type Parameters:
        `I` - Type of result
      Parameters:
        `makeResult` - Function to create an (empty) result.
        `addResult` - Function to add an element to the result.
      Returns:
        The created columns.
      Since:
        43.00

Parent Topic Class Summary

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