ColumnMap5Builder
Build a 5-dimensional map of columns. More...
Public Member Functions |
|
template<typename Iter0 , typename Iter1 , typename Iter2 , typename Iter3 , typename Iter4 , is-iterable(Iter0) , is-iterable(Iter1) , is-iterable(Iter2) , is-iterable(Iter3) , is-iterable(Iter4) > | |
ColumnMap5Builder (Iter0 const &iterable1, Iter1 const &iterable2, Iter2 const &iterable3, Iter3 const &iterable4, Iter4 const &iterable5, xpress::XPRSProblem *prob) | |
Create a builder that will create a 5-dimensional map of columns from the specified data. |
|
auto | toMap () -> xpress::maps::HashMap5< K1, K2, K3, K4, K5, int > |
Create the columns specified by this builder. |
|
template<typename I , typename Func0 , is-invocable(Func0, I) > | |
auto | toMap (Func0 makeResult, std::function< void(I &, K1, K2, K3, K4, K5, int)> addResult) -> I |
Create the columns specified by this builder. |
|
template<typename Func0 , is-invocable(Func0, bool, K1, K2, K3, K4, K5) > | |
auto | withFilter (Func0 newFilter) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a filter that selects elements. |
|
auto | withLB (double newLb) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a constant lower bound for all columns. |
|
template<typename Func0 , is-invocable(Func0, double, K1, K2, K3, K4, K5) > | |
auto | withLB (Func0 newLb) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a lower bound that depends on the index. |
|
auto | withLimit (double newLimit) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a constant limit for all columns. |
|
template<typename Func0 , is-invocable(Func0, double, K1, K2, K3, K4, K5) > | |
auto | withLimit (Func0 newLimit) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a limit that depends on the index. |
|
template<typename Func0 , is-invocable(Func0, std::optional< std::string >, K1, K2, K3, K4, K5) > | |
auto | withName (Func0 newName) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a name that depends on the index. |
|
auto | withName (std::optional< std::string > newName) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a constant name for all columns. |
|
auto | withType (ColumnType newType) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a constant type for all columns. |
|
template<typename Func0 , is-invocable(Func0, ColumnType, K1, K2, K3, K4, K5) > | |
auto | withType (Func0 newType) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a type that depends on the index. |
|
auto | withUB (double newUb) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a constant upper bound for all columns. |
|
template<typename Func0 , is-invocable(Func0, double, K1, K2, K3, K4, K5) > | |
auto | withUB (Func0 newUb) -> ColumnMap5Builder< K1, K2, K3, K4, K5 > & |
Set a upper bound that depends on the index. |
|
Detailed Description
class xpress::VariableBuilder::ColumnMap5Builder< K1, K2, K3, K4, K5 >
Build a 5-dimensional map of columns.
- Since
- 44.00
Constructor & Destructor Documentation
ColumnMap5Builder()
|
inline |
Create a builder that will create a 5-dimensional map of columns from the specified data.
- Parameters
-
iterable1 Data for the builder. iterable2 Data for the builder. iterable3 Data for the builder. iterable4 Data for the builder. iterable5 Data for the builder. prob The problem for which to create columns.
- Template Parameters
-
Iter0 Something that supports begin()
andend()
and contains values of typeK1
.Iter1 Something that supports begin()
andend()
and contains values of typeK2
.Iter2 Something that supports begin()
andend()
and contains values of typeK3
.Iter3 Something that supports begin()
andend()
and contains values of typeK4
.Iter4 Something that supports begin()
andend()
and contains values of typeK5
.
- Since
- 44.00
Member Function Documentation
toMap() [1/2]
|
inline |
Create the columns specified by this builder.
Examples using toMap
:
- Returns
- The created columns.
- Since
- 44.00
toMap() [2/2]
|
inline |
Create the columns specified by this builder.
Examples using toMap
:
- Parameters
-
makeResult Function to create an (empty) result. addResult Function to add an element to the result.
- Template Parameters
-
I Type of result Func0 auto () -> I
: Maps()
toI
.
- Returns
- The created columns.
- Since
- 44.00
withFilter()
|
inline |
Set a filter that selects elements.
- Parameters
-
newFilter Element filter
- Template Parameters
-
Func0 auto (K1,K2,K3,K4,K5) -> bool
: Maps(K1,K2,K3,K4,K5)
tobool
.
- Returns
- Always returns this instance.
- Since
- 44.00
withLB() [1/2]
|
inline |
Set a constant lower bound for all columns.
Examples using withLB
:
- Parameters
-
newLb The lower bound for all columns created by this builder.
- Returns
- Always returns this instance.
- Since
- 44.00
withLB() [2/2]
|
inline |
Set a lower bound that depends on the index.
Examples using withLB
:
- Parameters
-
newLb The lower bound for all columns created by this builder.
- Template Parameters
-
Func0 auto (K1,K2,K3,K4,K5) -> double
: Maps(K1,K2,K3,K4,K5)
todouble
.
- Returns
- Always returns this instance.
- Since
- 44.00
withLimit() [1/2]
|
inline |
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
:
- Parameters
-
newLimit The limit for all columns created by this builder.
- Returns
- Always returns this instance.
- Since
- 44.00
withLimit() [2/2]
|
inline |
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
:
- Parameters
-
newLimit The limit for all columns created by this builder.
- Template Parameters
-
Func0 auto (K1,K2,K3,K4,K5) -> double
: Maps(K1,K2,K3,K4,K5)
todouble
.
- Returns
- Always returns this instance.
- Since
- 44.00
withName() [1/2]
|
inline |
Set a name that depends on the index.
Examples using withName
:
- BinBurglar.cpp
- BoolVars.cpp
- Boxes02.cpp
- Capbgt2l.cpp
- CapitalBudgeting.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELS.cpp
- ELSCut.cpp
- ELSManagedCuts.cpp
- FacilityLocationArray.cpp
- FacilityLocationCollection.cpp
- Folio.cpp
- FolioCB.cpp
- FolioHeuristic.cpp
- FolioIIS.cpp
- FolioInit.cpp
- FolioMip1.cpp
- FolioMip2.cpp
- FolioMipIIS.cpp
- FolioQC.cpp
- FolioQP.cpp
- Glidert.cpp
- MultipleKnapsack_Arrays.cpp
- MultipleKnapsack_Collections.cpp
- Pplan.cpp
- Pplan2.cpp
- ProductionPlanning_Index.cpp
- PurchasePWL.cpp
- PurchaseSOS2.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- SpecialOrderedSetsQuadratic.cpp
- TravelingSalesPerson.cpp
- Wagon.cpp
- Parameters
-
newName The name for all columns created by this builder.
- Template Parameters
-
Func0 auto (K1,K2,K3,K4,K5) -> std::optional<std::string>
: Maps(K1,K2,K3,K4,K5)
tostd::optional<std::string>
.
- Returns
- Always returns this instance.
- Since
- 44.00
withName() [2/2]
|
inline |
Set a constant name for all columns.
Examples using withName
:
- BinBurglar.cpp
- BoolVars.cpp
- Boxes02.cpp
- Capbgt2l.cpp
- CapitalBudgeting.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELS.cpp
- ELSCut.cpp
- ELSManagedCuts.cpp
- FacilityLocationArray.cpp
- FacilityLocationCollection.cpp
- Folio.cpp
- FolioCB.cpp
- FolioHeuristic.cpp
- FolioIIS.cpp
- FolioInit.cpp
- FolioMip1.cpp
- FolioMip2.cpp
- FolioMipIIS.cpp
- FolioQC.cpp
- FolioQP.cpp
- Glidert.cpp
- MultipleKnapsack_Arrays.cpp
- MultipleKnapsack_Collections.cpp
- Pplan.cpp
- Pplan2.cpp
- ProductionPlanning_Index.cpp
- PurchasePWL.cpp
- PurchaseSOS2.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- SpecialOrderedSetsQuadratic.cpp
- TravelingSalesPerson.cpp
- Wagon.cpp
- Parameters
-
newName The name for all columns created by this builder. This must be std::nullopt
or a format string that will be invoked with the index as argument.
- Returns
- Always returns this instance.
- Since
- 44.00
withType() [1/2]
|
inline |
Set a constant type for all columns.
Examples using withType
:
- BinBurglar.cpp
- BoolVars.cpp
- Boxes02.cpp
- Capbgt2l.cpp
- CapitalBudgeting.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELS.cpp
- ELSCut.cpp
- ELSManagedCuts.cpp
- FacilityLocationArray.cpp
- FacilityLocationCollection.cpp
- Folio.cpp
- FolioCB.cpp
- FolioHeuristic.cpp
- FolioIIS.cpp
- FolioMip1.cpp
- FolioMip2.cpp
- FolioMipIIS.cpp
- FolioQP.cpp
- MultipleKnapsack_Arrays.cpp
- MultipleKnapsack_Collections.cpp
- Pplan.cpp
- ProductionPlanning_Index.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Wagon.cpp
- Parameters
-
newType The type for all columns created by this builder.
- Returns
- Always returns this instance.
- Since
- 44.00
withType() [2/2]
|
inline |
Set a type that depends on the index.
Examples using withType
:
- BinBurglar.cpp
- BoolVars.cpp
- Boxes02.cpp
- Capbgt2l.cpp
- CapitalBudgeting.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELS.cpp
- ELSCut.cpp
- ELSManagedCuts.cpp
- FacilityLocationArray.cpp
- FacilityLocationCollection.cpp
- Folio.cpp
- FolioCB.cpp
- FolioHeuristic.cpp
- FolioIIS.cpp
- FolioMip1.cpp
- FolioMip2.cpp
- FolioMipIIS.cpp
- FolioQP.cpp
- MultipleKnapsack_Arrays.cpp
- MultipleKnapsack_Collections.cpp
- Pplan.cpp
- ProductionPlanning_Index.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Wagon.cpp
- Parameters
-
newType The type for all columns created by this builder.
- Template Parameters
-
Func0 auto (K1,K2,K3,K4,K5) -> ColumnType
: Maps(K1,K2,K3,K4,K5)
toColumnType
.
- Returns
- Always returns this instance.
- Since
- 44.00
withUB() [1/2]
|
inline |
Set a constant upper bound for all columns.
Examples using withUB
:
- Boxes02.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- Folio.cpp
- FolioCB.cpp
- FolioHeuristic.cpp
- FolioIIS.cpp
- FolioInit.cpp
- FolioMip1.cpp
- FolioMip2.cpp
- FolioMipIIS.cpp
- FolioQC.cpp
- FolioQP.cpp
- Glidert.cpp
- PurchasePWL.cpp
- PurchaseSOS2.cpp
- SpecialOrderedSetsQuadratic.cpp
- TravelingSalesPerson.cpp
- Parameters
-
newUb The upper bound for all columns created by this builder.
- Returns
- Always returns this instance.
- Since
- 44.00
withUB() [2/2]
|
inline |
Set a upper bound that depends on the index.
Examples using withUB
:
- Boxes02.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- Folio.cpp
- FolioCB.cpp
- FolioHeuristic.cpp
- FolioIIS.cpp
- FolioInit.cpp
- FolioMip1.cpp
- FolioMip2.cpp
- FolioMipIIS.cpp
- FolioQC.cpp
- FolioQP.cpp
- Glidert.cpp
- PurchasePWL.cpp
- PurchaseSOS2.cpp
- SpecialOrderedSetsQuadratic.cpp
- TravelingSalesPerson.cpp
- Parameters
-
newUb The upper bound for all columns created by this builder.
- Template Parameters
-
Func0 auto (K1,K2,K3,K4,K5) -> double
: Maps(K1,K2,K3,K4,K5)
todouble
.
- Returns
- Always returns this instance.
- Since
- 44.00
The documentation for this class was generated from the following file:
- xpress.hpp
© 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.