Learn R Programming

stochQN (version 0.1.2-1)

update_fun: Update objective function value (adaQN)

Description

Update the (expected) value of the objective function in an `adaQN_free` object, after it has been requested by the optimizer (do NOT update it otherwise).

Usage

update_fun(optimizer, fun)

Arguments

optimizer

An `adaQN_free` object which after the last run had requested a new function evaluation.

fun

Function as evaluated (in expectation) on the values of `x` that were returned in the request.

Value

No return value (object is updated in-place).