PyNOA

Enums

AdaptionMethods
Copy
Singlepoint
Multipoint
Uniform
Arithmetic
SBX
PSO
MutationMethods
SelfAdaptive
NormalDistribution
ConstraintAdaptive
ModulatedAdaptive
PenaltyMethods
DISTANCE
HYBRID
NUM_VIOLATIONS
RankingMethods
Linear
Pareto
Exponential
CrowdingDensity
CumulatedDensity
SelectionMethods
Roulette
Stochastic
Tournament
ArchiveBest
PopulationBest

Classes

Design

Constructors

Methods

get_actual_number

get_actual_number() -> int



get_objective

get_objective() -> doubleVec



get_parameters

get_parameters() -> doubleVec



NOA

Inherits from: OptimizerBase

Constructors

NOASettings

Inherits from: SettingsBase

Constructors

Properties

  • (bool) parameter_free
    Whether to use parameter free constraint handling in penalty method.
  • (bool) roulette_with_replacement
    Roulette selection applied with replacement.

Methods

append_adaption_method

append_adaption_method( (AdaptionMethods)arg2) -> None


Append a new adaption method. Use set_adaption_method to reset.

AppendAdaptionMethod deprecated

change_default_settings

change_default_settings( (int)population size, (int)max. generations, (doubleVec)lower bounds, (doubleVec)upper bounds) -> None



ChangeDefaultSettings deprecated

get_adaption_methods

get_adaption_methods() -> list


Get a list of all set adaption methods.

get_arch_size

get_arch_size() -> int


Get maximum archive size.

get_cliff_value

get_cliff_value() -> float


Get cliff for penalty term.

get_contraint_scaling_factor

get_contraint_scaling_factor() -> float


Get scaling factor for constraints.

get_crossover_probabilities

get_crossover_probabilities() -> list


Get a list of all crossover probabilities.

get_distribution_parameters

get_distribution_parameters() -> list


Get a list of all distribution parameters.

get_fitness_scaling

get_fitness_scaling() -> bool


Get use automatic fitness scaling.

get_hybrid

get_hybrid() -> bool


Get use hybrid adaption.

get_max_archive_size

get_max_archive_size() -> int


Return maximum archive size.

get_max_gen

get_max_gen() -> int


Get maximum number of generations.

get_min_gen

get_min_gen() -> int


Get minimum number of generations.

get_mut_gnr

get_mut_gnr() -> float


Get number of mutating generations.

get_mut_rate

get_mut_rate() -> float


Get probability of mutation.

get_mutate

get_mutate() -> bool


Get whether to mutate or not.

get_mutation_method

get_mutation_method() -> MutationMethods


Get mutation method.

get_mutation_std_dev

get_mutation_std_dev() -> tuple


Get mutation standard deviation values.

get_number_of_parents

get_number_of_parents( (NOASettings)Set number of parents.) -> int



get_numbers_of_crosspoints

get_numbers_of_crosspoints() -> list


Get a list of all numbers of crosspoints.

get_penalty_method

get_penalty_method() -> PenaltyMethods


Get penalty method to evaluate constraint violations.

get_ranking_method

get_ranking_method() -> RankingMethods


Get ranking method.

get_seed

get_seed() -> int



get_selection_method

get_selection_method() -> SelectionMethods


Get selection method.

get_selection_pressure

get_selection_pressure() -> float


Get value for selection pressure.

get_stagnation_generations

get_stagnation_generations() -> int


Get convergence parameter.

get_stagnation_limit

get_stagnation_limit() -> float


Get convergence parameter.

get_start_pop_size

get_start_pop_size( (NOASettings)Get start population size.) -> int



get_tournament_size

get_tournament_size() -> int


Get number of designs to compare in tournament.

GetMaxArchiveSize deprecated

set_adaption_method

set_adaption_method( (AdaptionMethods)arg2) -> None


Reset adaption methods and set first adaption method.

set_arch_size

set_arch_size( (int)arg2) -> None


Set maximum archive size.

set_bounds

set_bounds( (doubleVec)lower bounds, (doubleVec)upper bounds) -> None


Set limiting bound for each dimension.

set_cliff_value

set_cliff_value( (float)arg2) -> None


Set cliff for penalty term.

set_contraint_scaling_factor

set_contraint_scaling_factor( (float)arg2) -> None


Set scaling factor for constraints.

set_crossover_probability

set_crossover_probability( (float)arg2) -> None


Set crossover rate.

set_default

set_default( (AdaptionMethods)adaption method, (bool)local search) -> None


Apply default settings.

set_distribution_parameter

set_distribution_parameter( (float)arg2) -> None


Set distribution parameter for SBX.

set_ea_balanced

set_ea_balanced() -> None


Set defaults for EA - balanced.

set_ea_global

set_ea_global() -> None


Set defaults for EA - global.

set_ea_local

set_ea_local() -> None


Set defaults for EA - local.

set_fitness_scaling

set_fitness_scaling( (bool)arg2) -> None


Set use automatic fitness scaling.

set_hybrid

set_hybrid( (bool)arg2) -> None


Set use hybrid adaption.

set_max_gen

set_max_gen( (int)arg2) -> None


Set maximum number of generations.

set_min_gen

set_min_gen( (int)arg2) -> None


Set minimum number of generations.

set_mut_gnr

set_mut_gnr( (float)arg2) -> None


Set number of mutating generations.

set_mut_rate

set_mut_rate( (float)arg2) -> None


Set probability of mutation.

set_mutate

set_mutate( (bool)arg2) -> None


Set whether to mutate or not.

set_mutation_method

set_mutation_method( (MutationMethods)arg2) -> None


Set mutation method.

set_mutation_std_dev

set_mutation_std_dev( (float)lower bound continuous parameter, (float)upper bound continuous parameter, (float)lower bound discrete parameter, (float)upper bound discrete parameter) -> None


Set mutation standard deviation.

set_number_of_crosspoints

set_number_of_crosspoints( (int)arg2) -> None


Set number of crosspoints.

set_number_of_parents

set_number_of_parents( (int)Set number of parents.) -> None



set_penalty_method

set_penalty_method( (PenaltyMethods)arg2) -> None


Set penalty method to evaluate constraint violations.

set_pso_coefficients

set_pso_coefficients( (float)intertia weight at first generation, (float)intertia weight at last generation, (float)personal acceleration coefficient at first generation, (float)personal acceleration coefficient at last generation, (float)global acceleration coefficient at first generation, (float)global acceleration coefficient at last generation) -> None


Set parameters relevant to PSO.

set_pso_global

set_pso_global() -> None


Set defaults for PSO - global.

set_pso_local

set_pso_local() -> None


Set defaults for PSO - local.

set_ranking_method

set_ranking_method( (RankingMethods)arg2) -> None


Set ranking method.

set_seed

set_seed( (int)arg2) -> None



set_selection_method

set_selection_method( (SelectionMethods)arg2) -> None


Set selection method.

set_selection_pressure

set_selection_pressure( (float)arg2) -> None


Set value for selection pressure.

set_stagnation_generations

set_stagnation_generations( (int)arg2) -> None


Set convergence parameter.

set_stagnation_limit

set_stagnation_limit( (float)arg2) -> None


Set convergence parameter.

set_start_pop_size

set_start_pop_size( (int)Set start population size.) -> None



set_tournament_size

set_tournament_size( (int)arg2) -> None


Set number of designs to compare in tournament.

SetAdaptionMethod deprecated

SetArchSize deprecated

SetBounds deprecated

SetCliffValue deprecated

SetCrossoverProbability deprecated

SetDefault deprecated

SetDistributionParameter deprecated

SetEA_global deprecated

SetEA_local deprecated

SetHybrid deprecated

SetMaxGen deprecated

SetMutate deprecated

SetMutationMethod deprecated

SetMutationStddev deprecated

SetMutGnr deprecated

SetMutRate deprecated

SetNumberOfCrosspoints deprecated

SetNumberOfParents deprecated

SetPSO_global deprecated

SetPSO_local deprecated

SetPSOcoefficients deprecated

SetRankingMethod deprecated

SetSeed deprecated

SetSelectionMethod deprecated

SetSelectionPressure deprecated

SetStagnationGenerations deprecated

SetStagnationLimit deprecated

SetStartPopSize deprecated

SetTournamentSize deprecated