smt_optim.benchmarks package#
Subpackages#
- smt_optim.benchmarks.avt311 package
- Submodules
- smt_optim.benchmarks.avt311.avt311 module
AlosAlos1DiscForresterForresterMFRastriginMFRastrigin.boundsMFRastrigin.constraintsMFRastrigin.f1()MFRastrigin.fi()MFRastrigin.nameMFRastrigin.num_cstrMFRastrigin.num_dimMFRastrigin.num_fidelityMFRastrigin.num_objMFRastrigin.objectiveMFRastrigin.resolution_error()MFRastrigin.rotation_matrix()MFRastrigin.set_dim()MFRastrigin.tagsMFRastrigin.z()
MFRosenbrock
- Module contents
- smt_optim.benchmarks.gotestproblems package
- Submodules
- smt_optim.benchmarks.gotestproblems.constrained module
G01G02G03G04G05G06G07G08G09G10G11G12G13WeldedBeamDesignWeldedBeamDesign.J()WeldedBeamDesign.M()WeldedBeamDesign.P_c()WeldedBeamDesign.R()WeldedBeamDesign.boundsWeldedBeamDesign.constraintsWeldedBeamDesign.d()WeldedBeamDesign.g1()WeldedBeamDesign.g2()WeldedBeamDesign.g3()WeldedBeamDesign.g4()WeldedBeamDesign.g5()WeldedBeamDesign.g6()WeldedBeamDesign.nameWeldedBeamDesign.num_cstrWeldedBeamDesign.num_dimWeldedBeamDesign.num_fidelityWeldedBeamDesign.num_objWeldedBeamDesign.objective()WeldedBeamDesign.s()WeldedBeamDesign.set_dim()WeldedBeamDesign.t()WeldedBeamDesign.t1()WeldedBeamDesign.t2()WeldedBeamDesign.tags
- Module contents
- smt_optim.benchmarks.misc package
- Submodules
- smt_optim.benchmarks.misc.avt module
- smt_optim.benchmarks.misc.edge_cases module
Rosenbrock2TwoConstraintsTwoConstraints.boundsTwoConstraints.constraintsTwoConstraints.cstr1()TwoConstraints.cstr2()TwoConstraints.func()TwoConstraints.nameTwoConstraints.num_cstrTwoConstraints.num_dimTwoConstraints.num_fidelityTwoConstraints.num_objTwoConstraints.objectiveTwoConstraints.set_dim()TwoConstraints.tags
- smt_optim.benchmarks.misc.gano module
- smt_optim.benchmarks.misc.mixvar_branin module
MixVarBraninMixVarGoldsteinMultiFidelityMixVarBraninMultiFidelityMixVarBranin.boundsMultiFidelityMixVarBranin.constraint_lf()MultiFidelityMixVarBranin.constraintsMultiFidelityMixVarBranin.nameMultiFidelityMixVarBranin.num_cstrMultiFidelityMixVarBranin.num_dimMultiFidelityMixVarBranin.num_fidelityMultiFidelityMixVarBranin.num_objMultiFidelityMixVarBranin.objectiveMultiFidelityMixVarBranin.objective_lf()MultiFidelityMixVarBranin.set_dim()MultiFidelityMixVarBranin.tags
- smt_optim.benchmarks.misc.modified_avt module
ConstrainedSpringConstrainedSpring.boundsConstrainedSpring.constraintsConstrainedSpring.nameConstrainedSpring.num_cstrConstrainedSpring.num_dimConstrainedSpring.num_fidelityConstrainedSpring.num_objConstrainedSpring.objectiveConstrainedSpring.set_dim()ConstrainedSpring.spring_c()ConstrainedSpring.spring_f()ConstrainedSpring.spring_logging()ConstrainedSpring.tags
f()rk4()rk4_logging()
- smt_optim.benchmarks.misc.original module
Branin1Branin2BraninMFRosenbrockRosenbrock.boundsRosenbrock.constraintsRosenbrock.hf_constraint()Rosenbrock.hf_objective()Rosenbrock.lf_constraint()Rosenbrock.lf_objective()Rosenbrock.nameRosenbrock.num_cstrRosenbrock.num_dimRosenbrock.num_fidelityRosenbrock.num_objRosenbrock.objectiveRosenbrock.set_dim()Rosenbrock.tags
Sasena1branin_forrester()
- Module contents
- smt_optim.benchmarks.sfu package
- Submodules
- smt_optim.benchmarks.sfu.bowl_shaped module
Bohachevsky1Bohachevsky2Bohachevsky3PermRotatedHyperEllipsoidRotatedHyperEllipsoid.boundsRotatedHyperEllipsoid.constraintsRotatedHyperEllipsoid.nameRotatedHyperEllipsoid.num_cstrRotatedHyperEllipsoid.num_dimRotatedHyperEllipsoid.num_fidelityRotatedHyperEllipsoid.num_objRotatedHyperEllipsoid.objective()RotatedHyperEllipsoid.set_dim()RotatedHyperEllipsoid.tags
SphereSumDifferentPowersSumSquaresTrid
- smt_optim.benchmarks.sfu.many_local_minima module
- Module contents
Submodules#
smt_optim.benchmarks.base module#
smt_optim.benchmarks.registry module#
- get_problem(name: str) BenchmarkProblem[source]#
Retrieves a single BenchmarkProblem object by its unique name.
- Parameters:
name (str) – The name of the problem to retrieve.
- Returns:
result – The retrieved BenchmarkProblem object, or None if no matching problem is found.
- Return type:
BenchmarkProblem or None
- list_problems(n: list[int] = None, num_obj: list[int] = [1, 1], num_dim: list[int] = None, num_cstr: list[int] = None, num_fidelity: list[int] = None, tags: list[str] = None) list[BenchmarkProblem][source]#
Retrieves all benchmark problems matching the specified filtering criteria.
- Parameters:
n (list[int], optional) –
Deprecated alias for
num_dim. A two-element list[min_num_dim, max_num_dim]specifying the inclusive range for the number of design variables.Warning
nis deprecated and will be removed in a future release. Usenum_diminstead.num_obj (list[int], optional) – A two-element list
[min_num_obj, max_num_obj]specifying the inclusive range for the number of objectives. IfNone, no filtering is applied on the number of objectives.num_dim (list[int], optional) – A two-element list
[min_num_dim, max_num_dim]specifying the inclusive range for the number of design variables. IfNone, no filtering is applied on the number of dimensions.num_cstr (list[int], optional) – A two-element list
[min_num_cstr, max_num_cstr]specifying the inclusive range for the number of constraints. IfNone, no filtering is applied on the number of constraints.num_fidelity (list[int], optional) – A two-element list
[min_num_fidelity, max_num_fidelity]specifying the inclusive range for the number of fidelity levels. IfNone, no filtering is applied on the number of fidelities.tags (list[str], optional) – A list of tags used to filter benchmark problems. A problem is returned if it contains all specified tags. If
None, no tag filtering is applied.
- Returns:
A list of benchmark problem instances matching the specified filtering criteria.
- Return type:
list[BenchmarkProblem]
Examples
Retrieve all single-objective, mono-fidelity problems, with no constraints:
>>> problems = list_problems(num_obj=[1, 1], num_cstr=[0, 0], num_fidelity=[1, 1])
Retrieve all single-objective, multi-fidelity problems:
>>> problems = list_problems(num_fidelity=[2, np.inf])
Retrieve all dimension variable benchmark problems:
>>> problems = list_problems(tags=["n_variable"])