smt_optim.benchmarks package#
Subpackages#
- smt_optim.benchmarks.avt311 package
- Submodules
- smt_optim.benchmarks.avt311.avt311 module
AlosAlos1DiscForresterForresterMFMassMFRastriginMFRastrigin.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()
MFRosenbrockMFSpringMFSpringMassrhs()rk4()
- 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.mf_borehole module
- smt_optim.benchmarks.misc.mf_colville module
- smt_optim.benchmarks.misc.misc2 module
MFConstraintRosenbrockMFConstraintRosenbrock.boundsMFConstraintRosenbrock.constraintsMFConstraintRosenbrock.g1()MFConstraintRosenbrock.g1_lf()MFConstraintRosenbrock.nameMFConstraintRosenbrock.num_cstrMFConstraintRosenbrock.num_dimMFConstraintRosenbrock.num_fidelityMFConstraintRosenbrock.num_objMFConstraintRosenbrock.objectiveMFConstraintRosenbrock.set_dim()MFConstraintRosenbrock.tags
- 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.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()
- smt_optim.benchmarks.misc.weldedbeam_variants module
MFWeldedBeamDesignMFWeldedBeamDesign.boundsMFWeldedBeamDesign.constraintsMFWeldedBeamDesign.expand_input()MFWeldedBeamDesign.nameMFWeldedBeamDesign.num_cstrMFWeldedBeamDesign.num_dimMFWeldedBeamDesign.num_fidelityMFWeldedBeamDesign.num_objMFWeldedBeamDesign.objectiveMFWeldedBeamDesign.set_dim()MFWeldedBeamDesign.tags
MixedVarWeldedBeamDesignMixedVarWeldedBeamDesign.P_c()MixedVarWeldedBeamDesign.bending_stress()MixedVarWeldedBeamDesign.boundsMixedVarWeldedBeamDesign.buckling()MixedVarWeldedBeamDesign.constraintsMixedVarWeldedBeamDesign.deflection()MixedVarWeldedBeamDesign.delta()MixedVarWeldedBeamDesign.nameMixedVarWeldedBeamDesign.num_cstrMixedVarWeldedBeamDesign.num_dimMixedVarWeldedBeamDesign.num_fidelityMixedVarWeldedBeamDesign.num_objMixedVarWeldedBeamDesign.objective()MixedVarWeldedBeamDesign.set_dim()MixedVarWeldedBeamDesign.shear_stress()MixedVarWeldedBeamDesign.side_constraints()MixedVarWeldedBeamDesign.sigma()MixedVarWeldedBeamDesign.tagsMixedVarWeldedBeamDesign.tau()MixedVarWeldedBeamDesign.weld_properties()
- Module contents
- smt_optim.benchmarks.multiobj package
- 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#
- class BenchmarkProblem[source]#
Bases:
ABC- bounds: ndarray = None#
- constraints: list = None#
- name: str = None#
- num_cstr: int = None#
- num_dim: int | str = None#
- num_fidelity: int = None#
- num_obj: int = None#
- objective: Callable | list[Callable] = None#
- tags: list = None#
- class PymooWrapper(problem: BenchmarkProblem)[source]#
Bases:
Problem- bounds()#
- do(X, return_values_of, *args, **kwargs)#
- evaluate(X, *args, return_values_of=None, return_as_dictionary=False, **kwargs)#
- has_bounds()#
- has_constraints()#
- ideal_point(*args, use_cache=True, set_cache=True, **kwargs)#
- property n_constr#
- nadir_point(*args, use_cache=True, set_cache=True, **kwargs)#
- name()#
- pareto_front(*args, use_cache=True, set_cache=True, **kwargs)#
- pareto_set(*args, use_cache=True, set_cache=True, **kwargs)#
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"])