Initializing help system before first use

# XPRDsendevent

Purpose
Send an event to a running model.
Synopsis
`int XPRDsendevent(XPRDmodel model, int class, double value);`
Arguments

model | Model to send the event to
class | Event class (must be >1)
value | Event value

Further information
1. An event can be received only by a running model that is using the mmjobs module: sending an event to a model that is not running or not using mmjobs is a no-operation.
2. Events are characterized by a class and a value. Event class values can be used to indicate the cause of the event (for instance, 2 could mean `a new solution has been found') and the associated value may specify a property of the given instance (for example an objective value). Except for the special value 1 ( XPRD_EVENT_END) class values have no predefined meaning.
3. An event of class XPRD_EVENT_END (=1) with the model status as the associated event value is automatically sent by each model to its parent when its execution terminates.
Related topics
XPRDwaitevent, XPRDgetevent.
Parent Topic Model management

© 2001-2026 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.