XPRSprob.AbstractUserFunction Class
Base class for user functions. You will usually not have to create an instance of this class or its subclasses yourself. Instead the way to create an instance is to use an XPRSprob instance as factory:
. This will register the function with the Xpress problem object and return a user function instance that can then be used in the code to build formulas.
MapFunction f = prob.NlpAddUserFunction("myf", 0, d -> 2 * d);
That is, you create an instance of MapFunctor, VecMapFunctor, MultiMapFunctor, MapDeltaFunctor, VecMapDeltaFunctor, or MultiMapDeltaFunctor and then pass that to the appropriate overload of
nlpAddUserFunction
Inheritance Hierarchy
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 42.01.05
Syntax
C#
public abstract class AbstractUserFunction
The XPRSprobAbstractUserFunction type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| XPRSprobAbstractUserFunction |
Initializes a new instance of the
XPRSprobAbstractUserFunction class
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an
Object to attempt to free resources and perform other cleanup operations before the
Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
| GetId | ||
| GetName | ||
| GetType |
Gets the
Type of the current instance.
(Inherited from Object.) |
|
| MemberwiseClone |
Creates a shallow copy of the current
Object.
(Inherited from Object.) |
|
| ToString | (Inherited from Object.) |
See Also
Reference
Inheritance Hierarchy
© 2001-2024 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.
