Skip to content

👥 Social-Inspired Algorithms ​

Algorithms inspired by social behaviors.

This category contains 4 algorithms.

AlgorithmAcronymYearDescription
Political OptimizerPO2020Political Optimizer (PO) algorithm.
Soccer League CompetitionSLC2014Soccer League Competition (SLC) algorithm.
Social Group OptimizationSGO2016Social Group Optimization (SGO) algorithm.
Teaching-Learning Based OptimizationTLBO2011Teaching-Learning Based Optimization (TLBO) algorithm.

Usage ​

Every optimizer shares the same interface:

python
from opt.social_inspired.political_optimizer import PoliticalOptimizer
from opt.benchmark.functions import sphere

optimizer = PoliticalOptimizer(
    func=sphere,
    lower_bound=-5.12,
    upper_bound=5.12,
    dim=10,
    max_iter=500,
)
best_solution, best_fitness = optimizer.search()

See Also ​

Released under the MIT License.