# Optimization Terminator
OptTerminator = R6Class(
"OptTerminator",
public = list(
# public member
storage = list(),
# constructor
initialize = function() {
},
# public methods
# returns true if we can continue our optimization
can_continue = function(opt_state) {
stop("Not implemented!")
},
# hook called at begin of step
step_begin = function(opt_state) {
},
# hook called at end of step
step_end = function(opt_state) {
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.