update_fun function

Update objective function value (adaQN)

Update objective function value (adaQN)

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).

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.

Returns

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

  • Maintainer: David Cortes
  • License: BSD_2_clause + file LICENSE
  • Last published: 2021-09-26