optiprofiler.get_plib_config

optiprofiler.get_plib_config#

optiprofiler.get_plib_config(plib, verbose=False, custom_problem_libs_path=None)[source]#

Read the effective process-level configuration of a problem library.

Library-owned defaults are combined with overrides previously set by set_plib_config(). Per-run benchmark(..., plib_options=...) values are intentionally not included because they apply only to that benchmark call.

Parameters:
plibstr

Public problem-library name.

verbosebool, optional

Print the package-owned config.txt when one is visible. For an installed plugin without such a file, print the effective mapping.

custom_problem_libs_pathstr or pathlib.Path, optional

Explicit local provider path, using the same resolution rules as optiprofiler.benchmark().

Returns:
dict

Effective process-level configuration. Modern plugin values are validated by the provider; legacy built-in file values retain their historical parsing behavior and are validated when the adapter runs.

Examples

from optiprofiler import get_plib_config

print(get_plib_config('s2mpj'))
# {'variable_size': 'default', 'test_feasibility_problems': 0}