benchmark

benchmark#

benchmark(varargin)

BENCHMARK creates multiple profiles for benchmarking optimization solvers on a set of problems with different features.


Signatures:

SOLVER_SCORES = BENCHMARK(SOLVERS) creates performance profiles, data profiles, and log-ratio profiles for the given SOLVERS on the default unconstrained problem set, returning SOLVER_SCORES based on the profiles. SOLVERS is a cell array of function handles. We require SOLVERS to accept specified inputs and return specified outputs. Details can be found in the following ‘Cautions’ part.

SOLVER_SCORES = BENCHMARK(SOLVERS, OPTIONS) creates profiles for the given SOLVERS with options specified in the struct OPTIONS. See ‘Options’ part for more details.

SOLVER_SCORES = BENCHMARK(OPTIONS) creates profiles with options specified in the struct OPTIONS. Note that the struct OPTIONS should at least contain the option load with the value ‘latest’ or a time stamp of an experiment in the format of ‘yyyyMMdd_HHmmss’, optionally followed by a collision suffix such as ‘_001’. In this case, we will load the data from the specified experiment and draw the profiles.

[SOLVER_SCORES, PROFILE_SCORES] = BENCHMARK(…) returns a 4D tensor PROFILE_SCORES containing scores for all profiles. See score_fun in ‘Options’ part for more details.

[SOLVER_SCORES, PROFILE_SCORES, CURVES] = BENCHMARK(…) returns a cell array CURVES containing the curves of all the profiles. A profile at a tolerance no solver meets keeps empty cells in place of its curves.


Cautions:

  1. Each solver in SOLVERS should accept corresponding signature(s) depending on the test suite you choose:

    • for an unconstrained problem:

      x = solver(fun, x0),
      

      where fun is a function handle of the objective function accepting a column vector and returning a real number, and x0 is the initial guess which is a column vector;

    • for a bound-constrained problem:

      x = solver(fun, x0, xl, xu),
      

      where xl and xu are the lower and upper bounds of the variables which are column vectors (they can contain Inf or -Inf);

    • for a linearly constrained problem:

      x = solver(fun, x0, xl, xu, aub, bub, aeq, beq);
      

      where aub and aeq are the matrices of the linear inequality and equality constraints, and bub and beq are the vectors of the linear inequality and equality constraints;

    • for a nonlinearly constrained problem:

      x = solver(fun, x0, xl, xu, aub, bub, aeq, beq, cub, ceq),
      

      where cub and ceq are the functions of the nonlinear inequality and equality constraints accepting a column vector and returning a column vector.

  2. The log-ratio profiles are available only when there are exactly two solvers. For more information of performance and data profiles, see [1], [2], [5]. For that of log-ratio profiles, see [4], [6].


Options:

Options should be specified in a struct. The following are the available fields of the struct:

  1. Options for experiments, profiles, and plots:

  • n_runs: a positive integer giving the retained run-axis width for the primary experiment. It belongs to benchmark, not Feature or an individual stage. Explicit []/NaN/Inf/zero are invalid. If omitted, any randomized solver selects 5; otherwise the maximum literal feature hint is used (identity 1). Perturbed_x0, permuted, linearly_transformed (including rotated=false), random_nan and stochastic noisy/truncated have hint 5; the other cases, including custom, have hint 1. A deterministic solver on a deterministic feature runs once and its results are copied to the retained slots. The optional run_plain reference always has one run per solver.

  • bar_colors: two different colors for the bars of two solvers in the log-ratio profiles. It can be a cell array of short names of colors (‘r’, ‘g’, ‘b’, ‘c’, ‘m’, ‘y’, ‘k’) or a 2-by-3 matrix with each row being a RGB triplet. Default is set to the first two colors in the line_colors option. The bars cycle through the given colors, so with a single color both solvers’ bars use it.

  • benchmark_id: the identifier of the test. It is used to create the specific directory to store the results. Default is ‘out’ if the option load is not provided, otherwise default is ‘.’.

  • draw_hist_plots: whether or how to draw the history plots of all the problems. It can be either ‘none’, ‘sequential’, or ‘parallel’. If it is ‘none’, we will not draw the history plots. If it is ‘parallel’, we will draw the history plots in the same time when solvers are solving the problems. If it is ‘sequential’, we will draw the history plots after all the problems are solved. For each problem, the original combined history plot is saved as PROBLEM.pdf; raw-only and cumulative-minimum-only plots are saved under the raw and cummin subfolders. Default is ‘parallel’ (as in Python).

  • errorbar_type: the type of the uncertainty interval that can be either ‘minmax’ or ‘meanstd’. When n_runs is greater than 1, we run several times of the experiments and get average curves and uncertainty intervals. Default is ‘minmax’, meaning that we takes the pointwise minimum and maximum of the curves.

  • feature_stamp: the stamp of the feature with the given options. It is used to create the specific directory to store the results. Default depends on features.

  • hist_aggregation: the aggregation method we use to reduce the number of points in the history plots. It can be ‘min’, ‘mean’, or ‘max’. Default is ‘min’.

  • line_colors: the colors of the lines in the plots. It can be a cell array of short names of colors (‘r’, ‘g’, ‘b’, ‘c’, ‘m’, ‘y’, ‘k’) or a matrix with each row being a RGB triplet. Default line colors are those in the palettename named “gem” (see MATLAB documentation for ‘colororder’). Note that if the number of solvers is greater than the number of colors, we will cycle through the colors.

  • line_styles: the styles of the lines in the plots. It can be a cell array of chars that are the combinations of line styles (‘-’, ‘-.’, ‘–’, ‘:’) and markers (‘o’, ‘+’, ‘*’, ‘.’, ‘x’, ‘s’, ‘d’, ‘^’, ‘v’, ‘>’, ‘<’, ‘p’, ‘h’). Default line style order is {‘-’, ‘-.’, ‘–‘, ‘:’}. Note that if the number of solvers is greater than the number of line styles, we will cycle through the styles.

  • line_widths: the widths of the lines in the plots. It should be a positive scalar or a vector. Default is 1.5. Note that if the number of solvers is greater than the number of line widths, we will cycle through the widths.

  • load: loading the stored data from a completed experiment and draw profiles. It can be either ‘latest’ or a time stamp of an experiment in the format of ‘yyyyMMdd_HHmmss’, optionally followed by a collision suffix such as ‘_001’. No default. The experiment is searched for in the current working directory joined with benchmark_id (up to five levels of subdirectories), not in savepath.

  • max_eval_factor: the factor multiplied to each problem’s dimension to get the maximum number of evaluations for each problem. Default is 500.

  • max_tol_order: the maximum order of the tolerance. In any profile (performance profiles, data profiles, and log-ratio profiles), we need to set a group of ‘tolerances’ to define the convergence test of the solvers. (Details can be found in the references.) We will set the tolerances as 10^(-1:-1:-max_tol_order). Default is 10.

  • merit_fun: the merit function to measure the quality of a point using the objective function value and the maximum constraint violation. It should be a function handle as follows: (fun_value, maxcv_value, maxcv_init) -> merit_value, where fun_value is the objective function value, maxcv_value is the maximum constraint violation, and maxcv_init is the maximum constraint violation at the initial guess. The default merit function varphi(x) is defined by the objective function f(x) and the maximum constraint violation v(x) as:

    varphi(x) = f(x)                        if v(x) <= v1
    varphi(x) = f(x) + 1e5 * (v(x) - v1)    if v1 < v(x) <= v2
    varphi(x) = Inf                         if v(x) > v2
    

    where v1 = min(0.01, 1e-10 * max(1, v0)), v2 = max(0.1, 2 * v0), and v0 is the maximum constraint violation at the initial guess. NaN objective or constraint values are invalid evaluations, even if a custom merit returns a finite value. Runs with undefined initial values, including a merit value of NaN at the initial guess, are not declared passing. Otherwise, if varphi(x_0) is +Inf, the existing degenerate-test convention accepts valid evaluations; if it is -Inf, only a merit value of -Inf passes. Both cases are listed in test_log/report.txt. In output-based profiles, an output obtained without any evaluation counts as one evaluation. A run whose solver raised an error or returned nothing has no output: the initial point is recorded in its place, the run is listed in test_log/report.txt and it never passes the output-based test, whatever the target, while its history-based results stand. A solver that returns the initial point itself is not such a run. With problem, the score of a run whose initial merit is not finite is NaN (the relative decrease is undefined), whereas the profiles apply the +Inf convention.

  • n_jobs: the number of parallel jobs to run the test. Default is a conservative number of workers, chosen as about half of the available workers (at least 2 when more than one worker is available).

  • normalized_scores: whether to normalize the scores of the solvers by the maximum score of the solvers. Default is true.

  • project_x0: whether to project the initial point to the feasible set. Default is false.

  • run_plain: whether to run an extra experiment with the ‘plain’ feature. Default is false.

  • savepath: the path to store the results. Default is ‘pwd’, the current working directory. It does not affect where load searches. Saving without the Java Virtual Machine (JVM) is supported on macOS/Linux. If native figures are unavailable, SVG charts and an HTML summary replace PDF/FIG output. Windows saving requires the JVM.

  • report_path: optional char/string path for the machine-readable evaluation report (schema identifier optiprofiler.eval_report/2, with its plot_data companion beside it). Also writes <report-stem>.plot_data.json next to the main report. Empty means no report. Neither target is ever overwritten by a new invocation. Reporting in score_only prepares numeric plot data but does not enable figures or raw-data saving. The main report hashes its companion; without JVM, SHA256 uses sha256sum or shasum. If no hash tool is available, the pair is marked partial (unverified).

  • plot_options: scalar struct of native MATLAB graphics property structs, grouped by figure, axes, xaxis, yaxis, xlabel, ylabel, title, text, line, and legend. For example: struct(‘xlabel’,struct(‘FontSize’,18),’legend’,struct(‘FontSize’,14)). Properties override drawing defaults at export for profiles, summaries, and histories, including on load. Scores and source data are unchanged. Property names, the values of the non-figure groups and the figure Position, OuterPosition, InnerPosition, PaperPosition, PaperSize, Color and Name are checked before solvers execute; other figure values use the installed MATLAB graphics API’s validation at render time, and an error there closes the figures of the call. Portable SVG/HTML fallback keeps its own style and does not apply native graphics properties. Default is an empty struct.

  • score_fun: the scoring function to calculate the scores of the solvers. It should be a function handle as follows: profile_scores -> solver_scores, where profile_scores is a 4D tensor containing scores for all profiles. The first dimension of profile_scores corresponds to the index of the solver, the second corresponds to the index of tolerance starting from 1, the third represents history-based or output-based profiles, and the fourth represents performance profiles, data profiles, or log-ratio profiles. A history-based or output-based profile at a tolerance no solver meets has no curve and scores 0 for every solver. It must return one real score per solver: a row or column vector of length n_solvers (an array whose n_solvers values lie along one dimension becomes a column). Any other size, or a non-numeric, logical or complex result, raises an error before any score is reported; the saved experiment remains loadable. The default scoring function takes the average of the history-based performance profiles under all the tolerances.

  • score_only: whether to only calculate the scores of the solvers without drawing the profiles and saving the data. Default is false.

  • score_weight_fun: the weight function to calculate the scores of the solvers in the performance and data profiles. It should be a function handle representing a nonnegative function in R^+. Default is 1.

  • seed: the seed of the random number generator. Default is 0.

  • semilogx: whether to use the semilogx scale during plotting profiles (performance profiles and data profiles). For data profiles, the plotted coordinate is log2(1 + n_eval / (n + 1)) but tick labels are displayed in the original n_eval / (n + 1) units, typically 0, 1, 2, 4, …. Default is true.

  • silent: whether to show the information of the progress. With true, no progress information is printed, also when loading saved results, and solver_verbose is 0. Default is false.

  • solver_isrand: whether the solvers are randomized or not. Default is a logical array of the same length as the number of solvers, where the value is true if the solver is randomized, and false otherwise. Note that if n_runs is not specified, we will set it 5 for the randomized solvers.

  • solver_names: the names of the solvers. Default is the names of the function handles in solvers.

  • solver_verbose: the level of the verbosity of the solvers. 0 means no verbosity, 1 means some verbosity, and 2 means full verbosity. With silent true the level is 0, so nothing of a solver is printed, and a level of 1 or 2 is replaced with a warning; a failing solver is still recorded in report.txt and the machine-readable report. Default is 1.

  • solvers_to_load: the indices of the solvers to load when the load option is provided. It can be a vector of different integers selected from 1 to the total number of solvers of the loading experiment. At least two indices should be provided. Default is all the solvers.

  • summarize_data_profiles: whether to add all the data profiles to the summary PDF. Default is true.

  • summarize_log_ratio_profiles: whether to add all the log-ratio profiles to the summary PDF. Default is false.

  • summarize_output_based_profiles: whether to add all the output-based profiles of the selected profiles to the summary PDF. Default is true.

  • summarize_performance_profiles: whether to add all the performance profiles to the summary PDF. Default is true.

  • xlabel_data_profile: the label of the x-axis of the data profiles. Default is ‘Number of simplex gradients’. Note: the ‘Interpreter’ property is set to ‘latex’, so LaTeX formatting is supported. The same applies to the options xlabel_log_ratio_profile, xlabel_performance_profile, ylabel_data_profile, ylabel_log_ratio_profile, and ylabel_performance_profile. The text of the x-axis labels is passed to the LaTeX interpreter verbatim, so write % for a percent sign: a bare % is invalid syntax, and the figure shows the raw text without a warning.

  • xlabel_log_ratio_profile: the label of the x-axis of the log-ratio profiles. Default is ‘Problem’.

  • xlabel_performance_profile: the label of the x-axis of the performance profiles. Default is ‘Performance ratio’.

  • ylabel_data_profile: the label of the y-axis of the data profiles. Default is ‘Data profiles ($\mathrm{tol} = %s$)’, where %s will be replaced by the current tolerance in LaTeX format. You can also use %s in your custom label, and it will be replaced accordingly. Keep %s inside $…$, as the defaults do, because the tolerance is LaTeX math: outside math mode the figure shows the raw text without a warning. The same applies to the options ylabel_log_ratio_profile and ylabel_performance_profile. Only %s is a placeholder: %% and any other % give a literal percent sign, escaped automatically for the LaTeX interpreter, and % is kept as written. As in earlier versions, \ gives `. Every other character is kept as written, for example `alpha.

  • ylabel_log_ratio_profile: the label of the y-axis of the log-ratio profiles. Default is ‘Log-ratio profiles ($\mathrm{tol} = %s$)’, where %s will be replaced by the current tolerance in LaTeX format.

  • ylabel_performance_profile: the label of the y-axis of the performance profiles. Default is ‘Performance profiles ($\mathrm{tol} = %s$)’, where %s will be replaced by the current tolerance in LaTeX format.

  1. Options for features:

  • feature_name: shorthand for one or more features, for example ‘noisy+perturbed_x0’. Stages apply left to right and may repeat; plain entries are validated before being removed. The atomic names are ‘plain’, ‘perturbed_x0’, ‘noisy’, ‘truncated’, ‘permuted’, ‘linearly_transformed’, ‘random_nan’, ‘unrelaxable_constraints’, ‘nonquantifiable_constraints’, ‘quantized’, and ‘custom’. Default is ‘plain’. Flat local options below broadcast to matching stages.

  • feature: a reusable Feature, a scalar stage struct with fields name and options, or a nonempty cell of atomic names/stage structs. This route supports independent options for each occurrence. It cannot be combined with feature_name, flat local options, or load. A bare shorthand string belongs in feature_name, not feature. Example:

    opts.feature = {struct('name','noisy','options',struct('noise_level',0.01)), ...
                    struct('name','noisy','options',struct('noise_level',0.1))};
    opts.n_runs = 3;
    
  • distribution: the distribution of perturbation in ‘perturbed_x0’ feature or random noise in ‘noisy’ feature. It should be either a string (or char), or a function handle (random_stream, dimension) -> random vector, accepting a random_stream and the dimension of a problem and returning a random vector with the given dimension. In ‘perturbed_x0’ case, the char should be either ‘spherical’ or ‘gaussian’ (default is ‘spherical’). In ‘noisy’ case, the char should be either ‘gaussian’ or ‘uniform’ (default is ‘gaussian’), and the function handle should accept a random stream and output size.

  • perturbation_level: the magnitude of the perturbation to the initial guess in the ‘perturbed_x0’ feature. Default is 1e-3.

  • noise_level: the magnitude of the noise in the ‘noisy’ feature. Default is 1e-3.

  • noise_type: the type of the noise in the ‘noisy’ features. It should be either ‘absolute’, ‘relative’, or ‘mixed’. Default is ‘mixed’.

  • noise_mode: the mode of the noise in the ‘noisy’ feature. It should be either ‘random’ or ‘deterministic’. Default is ‘random’. When it is ‘deterministic’, its run-count hint is 1; the experiment-level n_runs precedence still applies to all stages and solvers.

  • noise_map: the deterministic scalar noise map in the ‘noisy’ feature. It should be either ‘chebyshev’ or a function handle x -> noise, accepting the evaluation point and returning a real scalar. It is used only when noise_mode is ‘deterministic’. Default is ‘chebyshev’. The built-in ‘chebyshev’ map follows the deterministic noise model in Moré and Wild [5].

  • significant_digits: the number of significant digits in the ‘truncated’ feature. Default is 6.

  • perturbed_trailing_digits: whether we will randomize the trailing digits of the objective function value in the ‘truncated’ feature. Default is false.

  • rotated: whether to use a random or given rotation matrix to rotate the coordinates of a problem in the ‘linearly_transformed’ feature. Default is true.

  • condition_factor: the scaling factor of the condition number of the linear transformation in the ‘linearly_transformed’ feature. More specifically, the condition number of the linear transformation will be 2 ^ sqrt(condition_factor * n / 2) for dimension n >= 2. In dimension 1 it is 1. Default is 0. This describes the existing transformation; it does not change its matrix or random stream.

  • nan_rate: the probability that the evaluation of the objective function will return NaN in the ‘random_nan’ feature. Default is 0.05.

  • unrelaxable_bounds: whether the bound constraints are unrelaxable or not in the ‘unrelaxable_constraints’ feature. Default is true.

  • unrelaxable_linear_constraints: whether the linear constraints are unrelaxable or not in the ‘unrelaxable_constraints’ feature. Default is false.

  • unrelaxable_nonlinear_constraints: whether the nonlinear constraints are unrelaxable or not in the ‘unrelaxable_constraints’ feature. Default is false.

  • mesh_size: the size of the mesh in the ‘quantized’ feature. Default is 1e-3.

  • mesh_type: the type of the mesh in the ‘quantized’ feature. It should be either ‘absolute’ or ‘relative’. Default is ‘absolute’.

  • ground_truth: whether the featured problem is the ground truth or not in the ‘quantized’ feature. Default is true.

  • mod_x0: the modifier function to modify the inital guess in the ‘custom’ feature. It should be a function handle as follows: (random_stream, problem) -> modified_x0, where problem is an instance of the class Problem, and modified_x0 is the modified initial guess. No default.

  • mod_affine: the modifier function to generate the affine transformation applied to the variables in the ‘custom’ feature. It should be a function handle as follows: (random_stream, problem) -> (A, b, inv), where problem is an instance of the class Problem, A is the matrix of the affine transformation, b is the vector of the affine transformation, and inv is a candidate inverse of A. No default. The function is asked once per problem and seed, and the initial point, the bounds, the linear constraints and every evaluation use that one answer. The triple is validated when the problem is built, and an error is raised unless the arrays are real, finite and of matching sizes, norm(abs(inv) * abs(A), inf) < 1 / eps, and both inverse residuals pass the finite-precision check norm(max(abs(A * inv - eye(n)) - 64 * n * eps * abs(A) * abs(inv), 0), 'fro') <= 1e-8 * n and the same for inv * A. Here eps is double-precision machine epsilon; these matrix-test quantities must be finite. Independently, rows then columns of A are scaled by powers of two to form E without losing entries, and rcond(E) > eps is required. These numerical checks are not a proof that inv is an exact inverse. Inputs are converted to double precision before validation and use. If A is exactly diagonal and diag(inv) is its reciprocal to roundoff, the bounds stay bounds; otherwise every finite bound is posed as a linear constraint, so an off-diagonal entry of A is never ignored, however small. Transport rejects finite bounds, coefficients or right-hand sides becoming non-finite, nonzero scaled bounds below realmin, and row or right-hand-side entries whose sum of absolute nonzero product terms lies below it. A strict original bound interval must not collapse after translation or diagonal scaling. These are stage-local safeguards, not an exact transport certificate. Unless mod_x0 is supplied, a finite original x0 uses y = inv * (x0 - b) unchanged only if y, its mapped point and the rounding allowance are finite, and abs(A * y + b - x0) is at most both 64 * n * eps * (abs(A) * abs(y) + abs(b) + abs(x0)) and sqrt(eps) * min(abs(x0), abs(x0 - b)), componentwise. There is no absolute floor: an error at a zero coordinate of either x0 or x0 - b triggers a solve. Both scales are checked so a large coordinate origin cannot hide error in a small centered value. If either check fails, A * y = x0 - b is solved independently and the solved point is checked for finiteness and the rounding allowance only; failure raises an initial-point error. The extra local threshold triggers a solve instead of trusting the inverse candidate; it is not a bound on the final forward error. Even an honestly computed inverse may trigger a solve, for example when a custom rotation mixes small and large coordinates. Intrinsic conditioning or mixed coordinate scales can cause forward drift even after solving. Initial truth evaluation uses the posed start; the existing single-stage fallback retries the original initial point when an evaluation returns an empty result. Thus fun_init and maxcv_init do not certify recovery of an originally feasible point. Since mod_linear_ub and mod_linear_eq replace linear constraints, they are refused if they would remove generated bound rows, unless mod_bounds also takes ownership of the bounds. Derivatives follow the same map by the chain rule (see FeaturedProblem). Construction checks do not recompute initial points or histories in previously saved experiments or built objects; loading is not a migration of old results.

  • mod_bounds: the modifier function to modify the bound constraints in the ‘custom’ feature. It should be a function handle as follows: (random_stream, problem) -> (modified_xl, modified_xu), where problem is an instance of the class Problem, modified_xl is the modified lower bound, and modified_xu is the modified upper bound. No default. A supplied modifier replaces its own component verbatim, and mod_bounds replaces the bounds. Together with a mod_affine under which the bounds stay bounds, the bounds of the problem are therefore replaced; under any other mod_affine they are not re-added as generated rows. Explicit linear constraints are still transported. The truth always scores the bounds of the problem, and the reference of the problem is unknown after any mod_bounds.

  • mod_linear_ub: the modifier function to modify the linear inequality constraints in the ‘custom’ feature. It should be a function handle as follows: (random_stream, problem) -> (modified_aub, modified_bub), where problem is an instance of the class Problem, modified_aub is the modified matrix of the linear inequality constraints, and modified_bub is the modified vector of the linear inequality constraints. No default.

  • mod_linear_eq: the modifier function to modify the linear equality constraints in the ‘custom’ feature. It should be a function handle as follows: (random_stream, problem) -> (modified_aeq, modified_beq), where problem is an instance of the class Problem, modified_aeq is the modified matrix of the linear equality constraints, and modified_beq is the modified vector of the linear equality constraints. No default.

  • mod_fun: the modifier function to modify the objective function in the ‘custom’ feature. It should be a function handle as follows: (x, random_stream, problem) -> modified_fun, where x is the evaluation point, problem is an instance of the class Problem, and modified_fun is the modified objective function value. No default.

  • mod_cub: the modifier function to modify the nonlinear inequality constraints in the ‘custom’ feature. It should be a function handle as follows: (x, random_stream, problem) -> modified_cub, where x is the evaluation point, problem is an instance of the class Problem, and modified_cub is the modified vector of the nonlinear inequality constraints. No default.

  • mod_ceq: the modifier function to modify the nonlinear equality constraints in the ‘custom’ feature. It should be a function handle as follows: (x, random_stream, problem) -> modified_ceq, where x is the evaluation point, problem is an instance of the class Problem, and modified_ceq is the modified vector of the nonlinear equality constraints. No default.

  1. Options for problems:

Options in this part are used to select problems for benchmarking. First select which problem libraries to use based on the plibs option. Then select problems from these libraries according to the given options (problem_names, ptype, mindim, maxdim, minb, maxb, minlcon, maxlcon, minnlcon, maxnlcon, mincon, maxcon, and excludelist).

Following is the list of available options:

  • plibs: the problem libraries to be used. It should be a cell array of strings or chars, or a string array, naming registered libraries. The bundled choices are ‘s2mpj’ and ‘custom’; setup can register the optional ‘matcutest’ and ‘solar’ adapters. Default setting is ‘s2mpj’.

  • ptype: the type of the problems to be selected. It should be a string or char consisting of any combination of ‘u’ (unconstrained), ‘b’ (bound constrained), ‘l’ (linearly constrained), and ‘n’ (nonlinearly constrained), such as ‘b’, ‘ul’, ‘ubn’. Default is ‘u’.

  • mindim: the minimum dimension of the problems to be selected. It must be a finite integer greater or equal to 1. Default is 1.

  • maxdim: the maximum dimension of the problems to be selected. It must be an integer greater or equal to 1, or Inf. Inf means no upper dimension limit. Default is mindim + 1.

  • minb: the minimum number of bound constraints of the problems to be selected. It must be a finite integer greater or equal to 0. Default is 0.

  • maxb: the maximum number of bound constraints of the problems to be selected. It must be an integer greater or equal to 0, or Inf. Inf means no upper bound-constraint limit. Default is minb + 10.

  • minlcon: the minimum number of linear constraints of the problems to be selected. It must be a finite integer greater or equal to 0. Default is 0.

  • maxlcon: the maximum number of linear constraints of the problems to be selected. It must be an integer greater or equal to 0, or Inf. Inf means no upper linear-constraint limit. Default is minlcon + 10.

  • minnlcon: the minimum number of nonlinear constraints of the problems to be selected. It must be a finite integer greater or equal to 0. Default is 0.

  • maxnlcon: the maximum number of nonlinear constraints of the problems to be selected. It must be an integer greater or equal to 0, or Inf. Inf means no upper nonlinear-constraint limit. Default is minnlcon + 10.

  • mincon: the minimum number of linear and nonlinear constraints of the problems to be selected. It must be a finite integer greater or equal to 0. Default is min(minlcon, minnlcon).

  • maxcon: the maximum number of linear and nonlinear constraints of the problems to be selected. It must be an integer greater or equal to 0, or Inf. Inf means no upper constraint limit. Default is max(maxlcon, maxnlcon).

  • excludelist: the list of problems to be excluded. It should be a cell array of strings or chars, or a string array. Default is not to exclude any problem.

  • problem_names: the names of the problems to be selected. It should be a cell array of strings or chars, or a string array, whose elements are the names. Default is not to select any problem by name but by the options above.

You may also pass an instance of the class Problem by the option

  • problem: a problem to be benchmarked. It should be an instance of the class Problem. If it is provided, we will only run the test on this problem with the given feature and draw the history plots. It cannot be combined with load. Default is not to set any problem.

Several points to note:

  1. Information about built-in problem libraries is available in the following links:

    The SOLAR MATLAB adapter vendors a slim SOLAR runtime; see the adapter’s README, notices and runtime manifest for license and provenance details.

  2. If you want to use your own problem library, implement its select and load functions and call registerProblemLibrary with their root and canonical names. See ‘optiprofiler/problem_libs/README.txt’.

  3. Each library in matlab_problem_libraries.lock declares the platforms it supports (MatCUTEst currently declares Linux only); libraries added with registerProblemLibrary default to all platforms.

  4. If the load option is provided, we will use the provided options to select data from the specified experiment for plotting the profiles. Available options are:

    • Options for profiles and plots: benchmark_id, solver_names, feature_stamp, errorbar_type, savepath, max_tol_order, merit_fun, run_plain, score_only, summarize_performance_profiles, summarize_data_profiles, summarize_log_ratio_profiles, summarize_output_based_profiles, silent, semilogx, normalized_scores, score_weight_fun, score_fun, solvers_to_load, line_colors, line_styles, line_widths, bar_colors.

    • Options for features: none.

    • Options for problems: plibs, ptype, mindim, maxdim, minb, maxb, minlcon, maxlcon, minnlcon, maxnlcon, mincon, maxcon, excludelist.

  5. More information about OptiProfiler can be found on our website:


References:


Authors:

Cunxin HUANG (cun-xin.huang@connect.polyu.hk) Tom M. RAGONNEAU (t.ragonneau@gmail.com) Zaikun ZHANG (zhangzaikun@mail.sysu.edu.cn) Department of Mathematics, Sun Yat-sen University