Skip to content

Egor API Reference

Installation and usage

sb_arch_opt.algo.egor_interface.algo.EgorArchOptInterface(problem: ArchOptProblemBase, n_init: int, results_folder: str = None, seed: None | int = None, **kwargs)

Class for interfacing with EGOR

egor property

Get the native Egor optimizer object.

See help(egobox.Egor) for more information.

design_space: list[egx.XSpec] property

Get the design space a native Egor input specification

pop: Population property

Population of all evaluated points

x: np.ndarray property

Design vectors

f: np.ndarray property

Objective values

g: np.ndarray property

Inequality constraints

initialize_from_previous(results_folder: str = None)

Initialize the algorithm from previously stored results

Note: Previous results might be generated on a previous run when the results_forder is specified in EgorArchOptInterface constructor, eg EgorArchOptInterface(problem=..., n_init=..., results_folder=...).

minimize(n_infill: int) -> Population

Run the optimization for the given n_infills number of iterations