XPRBexprContext Class
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 45.01.02+1f9fd7ff9a8620394fec1839699751312debed40
public class XPRBexprContext : IDisposable
Public Class XPRBexprContext Implements IDisposable
The XPRBexprContext type exposes the following members.
Name | Description | |
---|---|---|
![]() |
XPRBexprContext | Create a new expression context. Any expressions created on this thread from this point onwards will be added to this context, until the context is disposed. If the thread already has an expression context, new expressions will continue to be added to the old context & the new context will not be used. |
Name | Description | |
---|---|---|
![]() |
Dispose | Free all expressions that are associated with this context. |
![]() |
Dispose(Boolean) | Releases the unmanaged resources used by the XPRBexprContext and optionally releases the managed resources |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() |
Finalize | (Overrides ObjectFinalize) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object) |
XPRBprob p = new XPRBprob("Chess"); XPRBvar xs = p.newVar("xs"); XPRBvar xl = p.newVar("xl"); using (XPRBexprContext ctx=new XPRBexprContext()) { XPRBexpr woodRequired = xs + 3.0*xl; p.newCtr("wood", woodRequired<=200.0 ); XPRBexpr timeRequired = 3.0*cs + 2.0*xl; p.newCtr("mc_time", timeRequired<400.0); }
Reference
© 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.