Ask/tell protocols, evaluation scheduling, callbacks, and algorithm composition.
More...
Ask/tell protocols, evaluation scheduling, callbacks, and algorithm composition.
Definition in file base.py.
| Tuple[int, float, Any, Any] qdpy.algorithms.base._evalWrapper |
( |
int | eval_id, |
|
|
Callable | fn, |
|
|
* | args, |
|
|
** | kwargs ) |
|
protected |
Return a scheduler result even when an evaluator raises.
The dispatch ID binds the response to its candidate. A captured error reaches the scheduler as data so its consumed budget is accounted for alongside successful calls.
Wrapper around an evaluation function. It catches any exceptions raised by the evaluation function (as exceptions might be lost depending on which kind of parallelism scheme is applied to launch evaluations). It also measures the time elapsed by the evaluation function computation.
Definition at line 106 of file base.py.