Skip to content

Social-Inspired API ​

API reference for the 4 classes of opt.social_inspired. This page is generated from the source; see the algorithm pages for formulations and references.

Imports ​

python
from opt.social_inspired import (
    PoliticalOptimizer,
    SoccerLeagueOptimizer,
    SocialGroupOptimizer,
    TeachingLearningOptimizer,
)

Common interface ​

Every class takes the objective func, the search-space lower_bound, upper_bound and dim, usually max_iter and seed, and implements search() -> tuple[np.ndarray, float]. See AbstractOptimizer.

Classes ​

ClassAlgorithmAdditional parameters
PoliticalOptimizerPolitical Optimizernum_parties=5
SoccerLeagueOptimizerSoccer League Competitionnum_teams=10
SocialGroupOptimizerSocial Group Optimizationc=0.2, track_convergence=False, early_stopping=False, tolerance=1e-06, patience=10, verbose=False
TeachingLearningOptimizerTeaching-Learning Based Optimization-

Released under the MIT License.