QuadTermMap
A quadratic expression. More...
Public Member Functions |
|||||||
| QuadTermMap () | |||||||
| Create a empty expression. |
|||||||
| QuadTermMap (double constant) | |||||||
| Create an expression with a constant term. |
|||||||
| virtual auto | addConstant (double c) -> QuadTermMap &override | ||||||
Add a value to the constant term of this expression.
|
|||||||
| virtual auto | addTerm (double const &coefficient, Variable const &variable) -> QuadTermMap &override | ||||||
Add a term to this expression.If the expression already has a coefficient for variable then the old and the coefficients will be added.Examples using addTerm:
addTerm: |
|||||||
| virtual auto | addTerm (double const &coefficient, Variable const &variable1, Variable const &variable2) -> QuadTermMap &override | ||||||
Add a term to this expression.If the expression already has a coefficient for variable1*variable2 then the old and the coefficients will be added.Examples using addTerm:
addTerm: |
|||||||
| auto | addTerm (LinTerm const &term) -> QuadExpression & | ||||||
Add term to this expression. |
|||||||
| auto | addTerm (QuadTerm const &term) -> QuadExpression & | ||||||
Add term to this expression. |
|||||||
| virtual auto | addTerm (Variable const &variable, double const &coefficient) -> QuadTermMap &override | ||||||
Add a term to this expression.If the expression already has a coefficient for variable then the old and the coefficients will be added.Examples using addTerm:
addTerm: |
|||||||
| virtual auto | addTerm (Variable const &variable1, Variable const &variable2, double const &coefficient) -> QuadTermMap &override | ||||||
Add a term to this expression.If the expression already has a coefficient for variable1*variable2 then the old and the coefficients will be added.Examples using addTerm:
addTerm: |
|||||||
| virtual auto | addTerm (Variable const &x) -> QuadTermMap &override | ||||||
Add term 1.0*x to this expression.If the expression already has a coefficient for x then the old and the coefficients will be added.Examples using addTerm:
addTerm: |
|||||||
| virtual auto | addTerm (Variable const &x1, Variable const &x2) -> QuadTermMap &override | ||||||
Add term 1.0*x1*x2 to this expression.If the expression already has a coefficient for x then the old and the coefficients will be added.Examples using addTerm:
addTerm: |
|||||||
| virtual auto | addTerms (LinExpression const &expr) -> QuadTermMap &override | ||||||
Add another linear expression to this expression.
|
|||||||
| virtual auto | addTerms (LinExpression const &expr, double const &factor) -> QuadTermMap &override | ||||||
Add another linear expression to this expression.
|
|||||||
| virtual auto | addTerms (QuadExpression const &expr) -> QuadTermMap &override | ||||||
Add another quadratic expression to this expression.
|
|||||||
| virtual auto | addTerms (QuadExpression const &expr, double const &factor) -> QuadTermMap &override | ||||||
Add another quadratic expression to this expression.
|
|||||||
| template<typename Strm_variables , typename Strm_coefficients , is-stream(Strm_variables) , is-stream(Strm_coefficients) > | |||||||
| auto | addTerms (Strm_variables const &variables, Strm_coefficients const &coefficients) -> QuadExpression & | ||||||
| Add multiple linear terms to this expression. |
|||||||
| template<typename Strm_variables1 , typename Strm_variables2 , typename Strm_coefficients , is-stream(Strm_variables1) , is-stream(Strm_variables2) , is-stream(Strm_coefficients) > | |||||||
| auto | addTerms (Strm_variables1 const &variables1, Strm_variables2 const &variables2, Strm_coefficients const &coefficients) -> QuadExpression & | ||||||
| Add multiple quadratic terms to this expression. |
|||||||
| auto | addTerms (xpress::SizedArray< Variable const > const &variables, xpress::SizedArray< double const > const &coefficients, int offset, int count) -> QuadExpression & | ||||||
| Add multiple terms to this expression. |
|||||||
| auto | addTerms (xpress::SizedArray< Variable const > const &variables1, xpress::SizedArray< Variable const > const &variables2, xpress::SizedArray< double const > const &coefficients, int offset, int count) -> QuadExpression & | ||||||
| Add multiple terms to this expression. |
|||||||
| virtual auto | deepCopy () -> xpress::objects::QuadExpression override | ||||||
Get a deep copy of this expression.
|
|||||||
| virtual auto | deepCopy (double factor) -> xpress::objects::QuadExpression override | ||||||
Get a deep copy of this expression multiplied by a constant.
|
|||||||
| virtual auto | evaluate (xpress::SizedArray< double const > const &solution) const -> double override | ||||||
Compute the value of this expression with respect to the given solution vector (which is not required to be feasible).Examples using evaluate:
evaluate: |
|||||||
| auto | getCoefficient (Variable variable) const -> double | ||||||
| Get the coefficient for a variable. |
|||||||
| auto | getCoefficient (Variable variable1, Variable variable2) const -> double | ||||||
| Get the coefficient for a variable product. |
|||||||
| virtual auto | getConstant () const -> double override | ||||||
Get the constant value in this expression.
|
|||||||
| virtual auto | reset () -> QuadTermMap &override | ||||||
Clear this expression.Removes all terms and sets the constant to 0.Examples using reset:
reset: |
|||||||
| auto | setCoefficient (Variable variable, double coefficient) -> QuadTermMap & | ||||||
| Set the coefficient for a variable in this expression. |
|||||||
| auto | setCoefficient (Variable variable1, Variable variable2, double coefficient) -> QuadTermMap & | ||||||
| Set the coefficient for a variable product in this expression. |
|||||||
| virtual auto | setConstant (double c) -> QuadTermMap &override | ||||||
Set the constant term in this expression.Any existing constant term will be overwritten.
|
|||||||
| virtual auto | toString () const -> std::string override | ||||||
Get a string representation of this expression.Examples using toString:
toString: |
|||||||
| Public Member Functions inherited from xpress::objects::QuadExpression | |||||||
| auto | addTerm (LinTerm const &term) -> QuadExpression & | ||||||
Add term to this expression. |
|||||||
| auto | addTerm (QuadTerm const &term) -> QuadExpression & | ||||||
Add term to this expression. |
|||||||
| template<typename Strm_variables , typename Strm_coefficients , is-stream(Strm_variables) , is-stream(Strm_coefficients) > | |||||||
| auto | addTerms (Strm_variables const &variables, Strm_coefficients const &coefficients) -> QuadExpression & | ||||||
| Add multiple linear terms to this expression. |
|||||||
| template<typename Strm_variables1 , typename Strm_variables2 , typename Strm_coefficients , is-stream(Strm_variables1) , is-stream(Strm_variables2) , is-stream(Strm_coefficients) > | |||||||
| auto | addTerms (Strm_variables1 const &variables1, Strm_variables2 const &variables2, Strm_coefficients const &coefficients) -> QuadExpression & | ||||||
| Add multiple quadratic terms to this expression. |
|||||||
| auto | addTerms (xpress::SizedArray< Variable const > const &variables, xpress::SizedArray< double const > const &coefficients, int offset, int count) -> QuadExpression & | ||||||
| Add multiple terms to this expression. |
|||||||
| auto | addTerms (xpress::SizedArray< Variable const > const &variables1, xpress::SizedArray< Variable const > const &variables2, xpress::SizedArray< double const > const &coefficients, int offset, int count) -> QuadExpression & | ||||||
| Add multiple terms to this expression. |
|||||||
| Public Member Functions inherited from xpress::objects::AbstractExpression | |||||||
| virtual auto | eq (double rhs) const -> xpress::objects::InequalityDefinition override | ||||||
Create an "equals" constraint with this expression as left-hand side.Examples using eq:
eq: |
|||||||
| virtual auto | eq (Expression const &rhs) const -> xpress::objects::InequalityDefinition override | ||||||
Create an "equals" constraint with this expression as left-hand side.Examples using eq:
eq: |
|||||||
| virtual auto | geq (double rhs) const -> xpress::objects::InequalityDefinition override | ||||||
Create a "greater than or equal" constraint with this expression as left-hand side.
|
|||||||
| virtual auto | geq (Expression const &rhs) const -> xpress::objects::InequalityDefinition override | ||||||
Create a "greater than or equal" constraint with this expression as left-hand side.
|
|||||||
| virtual auto | in (double lb, double ub) -> xpress::objects::InequalityDefinition override | ||||||
Create a range constraint that bounds this expression from below and above.Examples using in:
in: |
|||||||
| virtual auto | leq (double rhs) const -> xpress::objects::InequalityDefinition override | ||||||
Create a "less than or equal" constraint with this expression as left-hand side.Examples using leq:
leq: |
|||||||
| virtual auto | leq (Expression const &rhs) const -> xpress::objects::InequalityDefinition override | ||||||
Create a "less than or equal" constraint with this expression as left-hand side.Examples using leq:
leq: |
|||||||
| Public Member Functions inherited from xpress::objects::Expression | |||||||
| virtual auto | div (double arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the quotient of this and arg. |
|||||||
| virtual auto | div (Expression arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the quotient of this and arg. |
|||||||
| virtual auto | minus (double arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the difference of this and arg. |
|||||||
| virtual auto | minus (xpress::objects::Expression arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the difference of this and arg. |
|||||||
| virtual auto | mul (double arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the product of this and arg. |
|||||||
| virtual auto | mul (Expression arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the product of this and arg. |
|||||||
| virtual auto | plus (double arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the sum of this and arg. |
|||||||
| virtual auto | plus (xpress::objects::Expression arg) const -> xpress::objects::Expression | ||||||
Create a expression that represents the sum of this and arg. |
|||||||
| virtual auto | uminus () const -> xpress::objects::Expression | ||||||
| Create a expression that represents the unary minus of this one. |
|||||||
Additional Inherited Members |
|
| Public Types inherited from xpress::objects::QuadExpression | |
| Public Types inherited from xpress::objects::AbstractExpression | |
| Public Types inherited from xpress::objects::Expression | |
| Static Public Member Functions inherited from xpress::objects::QuadExpression | |
| static auto | create () -> xpress::objects::QuadExpression |
| Create a empty quadratic expression. |
|
| static auto | create (double constant) -> xpress::objects::QuadExpression |
| Create a quadratic expression with the specified constant term. |
|
| static auto | create (double constant, int reserve) -> xpress::objects::QuadExpression |
| Create a quadratic expression with the specified constant term and prepare for adding the specified number of terms. |
|
| static auto | setCreateLists (bool newValue) -> bool |
Configures whether the create() functions should return instances of QuadTermList (if newValue is true) or QuadTermMap (if newValue is false). |
|
| Protected Member Functions inherited from xpress::objects::QuadExpression | |
| Protected Member Functions inherited from xpress::objects::AbstractExpression | |
| Protected Member Functions inherited from xpress::objects::Expression | |
| Protected Attributes inherited from xpress::objects::Expression | |
Detailed Description
A quadratic expression.
This class implements a quadratic expression as a map from variables to values.
- Since
- 44.00
Constructor & Destructor Documentation
QuadTermMap() [1/2]
|
inline |
Create a empty expression.
- Since
- 44.00
QuadTermMap() [2/2]
|
inline |
Create an expression with a constant term.
- Parameters
-
constant Constant term in expression.
- Since
- 44.00
Member Function Documentation
addConstant()
|
inlineoverridevirtual |
Add a value to the constant term of this expression.
- Parameters
-
c The constant to add.
- Returns
-
Always returns
this.
- Since
- 44.00
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerm() [1/8]
|
inlineoverridevirtual |
Add a term to this expression.If the expression already has a coefficient for variable then the old and the coefficients will be added.Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
coefficient Coefficient to add for variable.variable Variable.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerm() [2/8]
|
inlineoverridevirtual |
Add a term to this expression.If the expression already has a coefficient for variable1*variable2 then the old and the coefficients will be added.Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
coefficient Coefficient to add for variable1*variable2.variable1 First variable. variable2 Second variable.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerm() [3/8]
|
inline |
Add term to this expression.
Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
term The term to add.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm() [4/8]
|
inline |
Add term to this expression.
Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
term The term to add.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm() [5/8]
|
inlineoverridevirtual |
Add a term to this expression.If the expression already has a coefficient for variable then the old and the coefficients will be added.Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
variable Variable. coefficient Coefficient to add for variable.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerm() [6/8]
|
inlineoverridevirtual |
Add a term to this expression.If the expression already has a coefficient for variable1*variable2 then the old and the coefficients will be added.Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
variable1 First variable. variable2 Second variable. coefficient Coefficient to add for variable1*variable2.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerm() [7/8]
|
inlineoverridevirtual |
Add term 1.0*x to this expression.If the expression already has a coefficient for x then the old and the coefficients will be added.Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
x Variable.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerm() [8/8]
|
inlineoverridevirtual |
Add term 1.0*x1*x2 to this expression.If the expression already has a coefficient for x then the old and the coefficients will be added.Examples using addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Parameters
-
x1 First variable. x2 Second variable.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerm:
- Capbgt2l.cpp
- Catenary.cpp
- ContractAllocation.cpp
- CuttingStock.cpp
- ELSManagedCuts.cpp
- Pplan.cpp
- Pplan2.cpp
- QuadraticProgramming.cpp
- RecursiveFinancialPlanning.cpp
- Sangraalind.cpp
- TravelingSalesPerson.cpp
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerms() [1/8]
|
inlineoverridevirtual |
Add another linear expression to this expression.
- Parameters
-
expr The expression to add
- Returns
-
Always returns
this.
- Since
- 44.00
- Parameters
-
expr The expression to add
- Returns
-
Always returns
this.
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerms() [2/8]
|
inlineoverridevirtual |
Add another linear expression to this expression.
- Parameters
-
expr The expression to add. factor Factor by which to multiply elements in exprbefore adding.
- Returns
-
Always returns
this.
- Since
- 44.00
- Parameters
-
expr The expression to add. factor Factor by which to multiply elements in exprbefore adding.
- Returns
-
Always returns
this.
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerms() [3/8]
|
inlineoverridevirtual |
Add another quadratic expression to this expression.
- Parameters
-
expr The expression to add
- Returns
-
Always returns
this.
- Since
- 44.00
- Parameters
-
expr The expression to add
- Returns
-
Always returns
this.
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerms() [4/8]
|
inlineoverridevirtual |
Add another quadratic expression to this expression.
- Parameters
-
expr The expression to add. factor Factor by which to multiply elements in exprbefore adding.
- Returns
-
Always returns
this.
- Since
- 44.00
- Parameters
-
expr The expression to add. factor Factor by which to multiply elements in exprbefore adding.
- Returns
-
Always returns
this.
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
addTerms() [5/8]
|
inline |
Add multiple linear terms to this expression.
Adds the scalar product defined by the element-wise multiplication of variables and coefficients.
- Parameters
-
variables Variables. coefficients Coefficients.
- Template Parameters
-
Strm_variables Something that supports begin()andend()and contains values of typeVariable.Strm_coefficients Something that supports begin()andend()and contains values of typedouble.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerms() [6/8]
|
inline |
Add multiple quadratic terms to this expression.
Adds the scalar product defined by the element-wise multiplication of variables1, variables2 and coefficients.
- Parameters
-
variables1 First variables. variables2 Second variables. coefficients Coefficients.
- Template Parameters
-
Strm_variables1 Something that supports begin()andend()and contains values of typeVariable.Strm_variables2 Something that supports begin()andend()and contains values of typeVariable.Strm_coefficients Something that supports begin()andend()and contains values of typedouble.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerms() [7/8]
|
inline |
Add multiple terms to this expression.
Adds the scalar product defined by the element-wise multiplication of variables and coefficients using count elements starting from offset.
- Parameters
-
variables Variables coefficients Coefficients offset Offset into arrays. count Number of elements to use from each array.
- Returns
-
Always returns
this.
- Since
- 44.00
addTerms() [8/8]
|
inline |
Add multiple terms to this expression.
Adds the scalar product defined by the element-wise multiplication of variables1, variables2 and coefficients using count elements starting from offset.
- Parameters
-
variables1 First variables variables2 Second variables coefficients Coefficients offset Offset into arrays. count Number of elements to use from each array.
- Returns
-
Always returns
this.
- Since
- 44.00
deepCopy() [1/2]
|
inlineoverridevirtual |
Get a deep copy of this expression.
- Returns
- A deep copy of this expression.
- Since
- 44.00
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
deepCopy() [2/2]
|
inlineoverridevirtual |
Get a deep copy of this expression multiplied by a constant.
- Parameters
-
factor Factor to scale thiswith.
- Returns
-
A deep copy of this expression multiplied by
factor.
- Since
- 44.00
- Parameters
-
factor Factor to scale thiswith.
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
evaluate()
|
inlineoverridevirtual |
Compute the value of this expression with respect to the given solution vector (which is not required to be feasible).Examples using evaluate:
- Parameters
-
solution Solution values for which the expression is evaluated.
- Returns
-
The value of this expression evaluated at
solution.
- Since
- 44.00
evaluate:
- Since
- 44.00
Reimplemented from xpress::objects::Expression.
getCoefficient() [1/2]
|
inline |
Get the coefficient for a variable.
- Parameters
-
variable objects.Variable to query.
- Returns
-
The coefficient for
variablein this expression.
- Since
- 44.00
getCoefficient() [2/2]
|
inline |
Get the coefficient for a variable product.
- Parameters
-
variable1 First variable to query. variable2 Second variable to query.
- Returns
-
The coefficient for
variablein this expression.
- Since
- 44.00
getConstant()
|
inlineoverridevirtual |
Get the constant value in this expression.
- Returns
- The constant value in this expression.
- Since
- 44.00
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
reset()
|
inlineoverridevirtual |
Clear this expression.Removes all terms and sets the constant to 0.Examples using reset:
- Returns
-
Always returns
this.
- Since
- 44.00
reset:
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
setCoefficient() [1/2]
|
inline |
Set the coefficient for a variable in this expression.
Any existing coefficient will be overwritten.
- Parameters
-
variable objects.Variable index. coefficient New coefficient for variable.
- Returns
-
Always returns
this.
- Since
- 44.00
setCoefficient() [2/2]
|
inline |
Set the coefficient for a variable product in this expression.
Any existing coefficient will be overwritten.
- Parameters
-
variable1 First variable index. variable2 Second variable index. coefficient New coefficient for variable.
- Returns
-
Always returns
this.
- Since
- 44.00
setConstant()
|
inlineoverridevirtual |
Set the constant term in this expression.Any existing constant term will be overwritten.
- Parameters
-
c New constant term for this expression
- Returns
-
Always returns
this.
- Since
- 44.00
- Since
- 44.00
Reimplemented from xpress::objects::QuadExpression.
toString()
|
inlineoverridevirtual |
Get a string representation of this expression.Examples using toString:
- Returns
- A string representing this expression.
- Since
- 44.00
toString:
- Since
- 44.00
Reimplemented from xpress::objects::Expression.
The documentation for this class was generated from the following file:
- xpress_objects.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.
