odatse.domain.region module

class odatse.domain.region.Region(info: Info = None, *, param: Dict[str, Any] = None)[source]

Bases: DomainBase

A class to represent a region in the domain.

min_list

Minimum values for each dimension.

Type:

np.array

max_list

Maximum values for each dimension.

Type:

np.array

unit_list

Unit values for each dimension.

Type:

np.array

initial_list

Initial values for each dimension.

Type:

np.array

Initialize the Region object.

Parameters:
  • info (odatse.Info, optional) – Information object containing algorithm parameters.

  • param (dict, optional) – Dictionary containing algorithm parameters.

__init__(info: Info = None, *, param: Dict[str, Any] = None)[source]

Initialize the Region object.

Parameters:
  • info (odatse.Info, optional) – Information object containing algorithm parameters.

  • param (dict, optional) – Dictionary containing algorithm parameters.

_init_random(rng=<module 'numpy.random' from '/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/numpy/random/__init__.py'>, limitation=<odatse.util.limitation.Unlimited object>, max_count=100)[source]

Initialize the region with random values within the specified limits.

Parameters:
  • rng (numpy.random, optional) – Random number generator.

  • limitation (odatse.util.limitation, optional) – Limitation object to judge the validity of the values.

  • max_count (int, optional) – Maximum number of trials to generate valid values.

_setup(info_param)[source]

Setup the region with the given parameters.

Parameters:

info_param (dict) – Dictionary containing the parameters for the region.

initialize(rng=<module 'numpy.random' from '/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/numpy/random/__init__.py'>, limitation=<odatse.util.limitation.Unlimited object>, num_walkers: int = 1)[source]

Initialize the region with random values or predefined initial values.

Parameters:
  • rng (numpy.random, optional) – Random number generator.

  • limitation (odatse.util.limitation, optional) – Limitation object to judge the validity of the values.

  • num_walkers (int, optional) – Number of walkers to initialize.