An R^n -> R^m
function. More...
|
|
MultiMapFunction (XPRSProblem *prob, std::string name, MultiMapFunctor functor, int nIn, int nOut) |
|
virtual auto |
call (int output, std::vector< xpress::objects::Expression > arguments) -> xpress::objects::Expression override |
|
Create an expression that represents a symbolic call to this function.
-
Parameters
-
output |
If this is a multi-output function then this specifies which output to select. Note that the first output has index 1! |
arguments |
Arguments for the function call. |
-
Returns
-
The expression representing a call to this function.
-
Since
-
44.00
|
|
auto |
call (xpress::SizedArray< double const > const &values) -> std::vector< double > |
|
virtual auto |
evaluate (int output, xpress::SizedArray< double const > const &args) -> double override |
|
Evaluate this function for the given values.Examples using evaluate :
-
Parameters
-
output |
Output selector. In case the function returns multiple outputs then this selects which of them to return. Otherwise this argument is ignored. Note that the first output has index 1! |
args |
Arguments for the function call. |
-
Returns
-
The result.
-
Since
-
44.00
Examples using evaluate :
|
|
virtual auto |
isMultiOutput () -> bool override |
|
Check whether this is a function that produces more than one value for a single call.
-
Returns
-
true if the function has more than one output,
false otherwise.
-
Since
-
44.00
|
|
auto |
call (std::vector< xpress::objects::Expression > arguments) -> xpress::objects::Expression |
|
Create an expression that represents a symbolic call to this function.
|
|
auto |
evaluate (xpress::SizedArray< double const > const &args) -> double |
|
Shorthand for evaluate(1, args) .
|
|
auto |
getId () -> int |
|
Get the id for this function.
|
|
auto |
getName () const -> std::string |
|
Get the name with which the function was registered.
|
|
auto |
triggerEvalError (std::exception_ptr e) -> void |
|
Trigger a user function evaluation error with a specific exception.
|
|
|
MultiMapFunctor const |
functor |
|
The actual function represented by this instance.
|
|
int const |
nIn |
|
Number of input arguments.
|
|
int const |
nOut |
|
Number of output arguments.
|
|
An R^n -> R^m
function.
-
Since
-
44.00
MultiMapFunction()
xpress::XPRSProblem::MultiMapFunction::MultiMapFunction |
( |
XPRSProblem * |
prob, |
|
|
std::string |
name, |
|
|
MultiMapFunctor |
functor, |
|
|
int |
nIn, |
|
|
int |
nOut ) |
|
inline |
call() [1/2]
Create an expression that represents a symbolic call to this function.
-
Parameters
-
output |
If this is a multi-output function then this specifies which output to select. Note that the first output has index 1! |
arguments |
Arguments for the function call. |
-
Returns
-
The expression representing a call to this function.
-
Since
-
44.00
-
Since
-
44.00
Implements xpress::XPRSProblem::AbstractUserFunction.
call() [2/2]
auto xpress::XPRSProblem::MultiMapFunction::call |
( |
xpress::SizedArray< double const > const & |
values |
) |
-> std::vector< double > |
|
inline |
evaluate()
virtual auto xpress::XPRSProblem::MultiMapFunction::evaluate |
( |
int |
output, |
|
|
xpress::SizedArray< double const > const & |
args ) -> double |
|
inlineoverridevirtual |
Evaluate this function for the given values.Examples using evaluate
:
-
Parameters
-
output |
Output selector. In case the function returns multiple outputs then this selects which of them to return. Otherwise this argument is ignored. Note that the first output has index 1! |
args |
Arguments for the function call. |
-
Returns
-
The result.
-
Since
-
44.00
Examples using
evaluate
:
-
Since
-
44.00
Implements xpress::XPRSProblem::AbstractUserFunction.
isMultiOutput()
virtual auto xpress::XPRSProblem::MultiMapFunction::isMultiOutput |
( |
|
) |
-> bool |
|
inlineoverridevirtual |
Check whether this is a function that produces more than one value for a single call.
-
Returns
-
true
if the function has more than one output,
false
otherwise.
-
Since
-
44.00
-
Since
-
44.00
Implements xpress::XPRSProblem::AbstractUserFunction.
functor
The actual function represented by this instance.
-
Since
-
44.00
nIn
int const xpress::XPRSProblem::MultiMapFunction::nIn |
Number of input arguments.
-
Since
-
44.00
nOut
int const xpress::XPRSProblem::MultiMapFunction::nOut |
Number of output arguments.
-
Since
-
44.00
The documentation for this class was generated from the following file:
© 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.