optiprofiler.problem_libs.pycutest.pycutest_load#
- optiprofiler.problem_libs.pycutest.pycutest_load(problem_name, **kwargs)[source]#
Convert a PyCUTEst problem name to a Problem instance.
PyCUTEst is a Python interface to the CUTEst optimization test environment. More details can be found at the PyCUTEst documentation.
Note
PyCUTEst is only available on Linux and macOS.
- Parameters:
- problem_namestr
Name of the problem in PyCUTEst. You may use
pycutest_selectto get the problem names that satisfy your criteria.
- Returns:
- optiprofiler.Problem
A
Probleminstance corresponding to the named problem.
See also
pycutest_selectSelect problems from PyCUTEst by criteria.
Notes
The problem name may include SIF parameters in the format
'PROBLEMNAME_paramname_paramvalue'(e.g.,'ARGLINA_N_100'). In this case, the function will parse the parameters and pass them to PyCUTEst automatically.Examples
from optiprofiler.problem_libs.pycutest import pycutest_load problem = pycutest_load('ROSENBR') print(problem.n) # 2