Skip to content

Commit

Permalink
refactor: make x_domain optionally
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jul 24, 2024
1 parent 9b0af8d commit d445a64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/OptimInstanceBatch.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ OptimInstanceBatch = R6Class("OptimInstanceBatch",
xss_trafoed = transform_xdt_to_xss(private$.xdt, self$search_space)
ydt = self$objective$eval_many(xss_trafoed)
}
if (!private$.store_x_domain) xss_trafoed = NULL

self$archive$add_evals(xdt, xss_trafoed, ydt)
lg$info("Result of batch %i:", self$archive$n_batch)
Expand Down Expand Up @@ -158,6 +159,7 @@ OptimInstanceBatch = R6Class("OptimInstanceBatch",
private = list(
.xdt = NULL,
.objective_function = NULL,
.store_x_domain = TRUE,

# initialize context for optimization
.initialize_context = function(optimizer) {
Expand Down

0 comments on commit d445a64

Please sign in to comment.