Initializing help system before first use

VariableArray2Builder

Build a 2-dimensional array of variables. More...

Public Member Functions

  VariableArray2Builder (C1 dim1, C2 dim2, xpress::objects::XpressProblem *prob)
  Create a builder that will create a 2-dimensional array of variables with the specified dimensions.
 
auto  toArray () -> std::vector< std::vector< xpress::objects::Variable > >
  Create variables as specified by this builder.
 
template<typename I , typename Func0 , is-invocable(Func0, I) >
auto  toArray (Func0 makeResult, std::function< void(I, C1, C2, xpress::objects::Variable)> addResult) -> I
  Create variables as specified by this builder.
 
auto  withLB (double newLb) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a constant lower bound for all variables.
 
template<typename Func0 , is-invocable(Func0, double, C1, C2) >
auto  withLB (Func0 newLb) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a lower bound that depends on the index.
 
auto  withLimit (double newLimit) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a constant limit for all variables.
 
template<typename Func0 , is-invocable(Func0, double, C1, C2) >
auto  withLimit (Func0 newLimit) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a limit that depends on the index.
 
template<typename Func0 , is-invocable(Func0, std::optional< std::string >, C1, C2) >
auto  withName (Func0 newName) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a name that depends on the index.
 
auto  withName (std::optional< std::string > newName) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a constant name for all variables.
 
auto  withType (ColumnType newType) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set the type for all variables.
 
template<typename Func0 , is-invocable(Func0, xpress::ColumnType, C1, C2) >
auto  withType (Func0 newType) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a type that depends on the index.
 
auto  withUB (double newUb) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a constant upper bound for all variables.
 
template<typename Func0 , is-invocable(Func0, double, C1, C2) >
auto  withUB (Func0 newUb) -> VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral > &
  Set a upper bound that depends on the index.
 

Detailed Description

template<typename C1, typename C2, is-integral(C1), is-integral(C2)>
class xpress::VariableBuilder::VariableArray2Builder< C1, C2,, >

Build a 2-dimensional array of variables.

Since
44.00

Constructor & Destructor Documentation

VariableArray2Builder()

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::VariableArray2Builder ( C1 dim1,
C2 dim2,
xpress::objects::XpressProblem * prob )
inline

Create a builder that will create a 2-dimensional array of variables with the specified dimensions.

Parameters
dim1 Dimension 1.
dim2 Dimension 2.
prob The problem for which to create variables.
Since
44.00

Member Function Documentation

toArray() [1/2]

toArray() [2/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
template<typename I , typename Func0 , is-invocable(Func0, I) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::toArray ( Func0 makeResult,
std::function< void(I, C1, C2, xpress::objects::Variable)> addResult ) -> I
inline

withLB() [1/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withLB ( double newLb ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a constant lower bound for all variables.

Examples using withLB:

Parameters
newLb The lower bound for all variables created by this builder.
Returns
Always returns this instance.
Since
44.00

withLB() [2/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
template<typename Func0 , is-invocable(Func0, double, C1, C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withLB ( Func0 newLb ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a lower bound that depends on the index.

Examples using withLB:

Parameters
newLb The lower bound for all variables created by this builder.
Template Parameters
Func0 auto (C1,C2) -> double: Maps (C1,C2) to double.
Returns
Always returns this instance.
Since
44.00

withLimit() [1/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withLimit ( double newLimit ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a constant limit for all variables.

A limit specifies the bounds for semi-continuous/integer variables and the limit for partial integer variables. It does not apply to variables of other types.

Examples using withLimit:

Parameters
newLimit The limit for all variables created by this builder.
Returns
Always returns this instance.
Since
44.00

withLimit() [2/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
template<typename Func0 , is-invocable(Func0, double, C1, C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withLimit ( Func0 newLimit ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a limit that depends on the index.

A limit specifies the bounds for semi-continuous/integer variables and the limit for partial integer variables. It does not apply to variables of other types.

Examples using withLimit:

Parameters
newLimit The limit for all variables created by this builder.
Template Parameters
Func0 auto (C1,C2) -> double: Maps (C1,C2) to double.
Returns
Always returns this instance.
Since
44.00

withName() [1/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
template<typename Func0 , is-invocable(Func0, std::optional< std::string >, C1, C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withName ( Func0 newName ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

withName() [2/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withName ( std::optional< std::string > newName ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

withType() [1/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withType ( ColumnType newType ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

withType() [2/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
template<typename Func0 , is-invocable(Func0, xpress::ColumnType, C1, C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withType ( Func0 newType ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a type that depends on the index.

Examples using withType:

Parameters
newType The type for all variables created by this builder.
Template Parameters
Func0 auto (C1,C2) -> xpress::ColumnType: Maps (C1,C2) to xpress::ColumnType.
Returns
Always returns this instance.
Since
44.00

withUB() [1/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withUB ( double newUb ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a constant upper bound for all variables.

Examples using withUB:

Parameters
newUb The upper bound for all variables created by this builder.
Returns
Always returns this instance.
Since
44.00

withUB() [2/2]

template<typename C1 , typename C2 , is-integral(C1) , is-integral(C2) >
template<typename Func0 , is-invocable(Func0, double, C1, C2) >
auto xpress::VariableBuilder::VariableArray2Builder< C1, C2, C1IsIntegral, C2IsIntegral >::withUB ( Func0 newUb ) -> VariableArray2Builder<C1,C2,C1IsIntegral,C2IsIntegral>&
inline

Set a upper bound that depends on the index.

Examples using withUB:

Parameters
newUb The upper bound for all variables created by this builder.
Template Parameters
Func0 auto (C1,C2) -> double: Maps (C1,C2) to double.
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.