optiprofiler.set_plib_config#
- optiprofiler.set_plib_config(plib, *, custom_problem_libs_path=None, **kwargs)[source]#
Set process-level default overrides for one problem library.
This backward-compatible API affects subsequent calls in the current Python process and scopes each override to the resolved provider. For a reproducible experiment, prefer the higher-priority
plib_optionsargument ofoptiprofiler.benchmark(); its resolved values are stored with the experiment.- Parameters:
- plibstr
Public problem-library name.
- custom_problem_libs_pathstr or pathlib.Path, optional
Explicit local provider path, using the same resolution rules as
optiprofiler.benchmark().- **kwargs
Library-specific option overrides.
Examples
from optiprofiler import set_plib_config set_plib_config( 's2mpj', variable_size='all', test_feasibility_problems=2, )