Political Optimizer
Political Optimizer (PO)
- Year introduced
- 2020
- Original authors
- Qamar Askari; Irfan Younas; Mehreen Saeed
- Source of inspiration
- The political process and elections
- Search space
- Continuous
- Optimization types
- Hyperparameter Optimization
- Applied research in the repository
- 0
Overview
Inspired by the multi-party political process: forming parties and constituencies, the election campaign, party switching, inter-party elections and parliamentary affairs. Each solution is both a party member and a candidate in a constituency.
Source of inspiration and mechanism

In parliamentary systems, candidates compete within parties and between constituencies, politicians learn from their party leaders and from the winners in their constituencies, and some of them move between parties.
Initialization
Random, with a split into parties and constituencies.
Update mechanism
Five successive social phases.
Exploration
Party switching at a high rate λ early on.
Exploitation
The election campaign around the leaders and winners.
Mathematical description
The population is arranged as n parties × n constituencies. The election campaign updates each member by learning from its party leader, the winner of its constituency and its previous position (an update inspired by relative positions). Party switching happens with probability λ, which decreases from 1 to 0. Parliamentary affairs move the winners towards a random winner.
This algorithm's equations were not included because they have not yet been matched with the original text. See the original reference below.
Computational complexity: O(T\cdot N\cdot (D + C_f))
Flowchart
A simplified chart summarising the algorithm phases as described on its card in the lab; it is not the original figure published in the paper.
Pseudocode
Initialize n parties x n constituencies
for t = 1..T:
election campaign: learn from party leader and constituency winner
party switching (rate lambda decreasing)
election: determine leaders and winners
parliamentary affairs
return bestPython implementation
There is currently no tested python implementation of this algorithm in the lab. We did not include untested code so that it is not used as a reference implementation.
Coefficients
| Parameter | Symbol | Typical value | Range | Description |
|---|---|---|---|---|
| Parties | n | 8 | ||
| λ max | \lambda_{max} | 1 | Decreases to 0 |
Advantages
- Uses the previous position together with the leaders (memory)
- One parameter λ.
Limitations
Requires the population size to be a square (n×n).
Use in artificial intelligence
Domains documented in the card: Machine learning, hyperparameter tuning
Continuous and engineering optimization.
Hybridization potential
These are partnerships suggested theoretically in the card; any resulting design is presented as a "proposed hybrid method" until its results are compared with the literature.
Applied research from the repository
An aspect that did not appear in the current search results within the repository. This does not mean there is no published research outside it.
Original reference
Qamar Askari; Irfan Younas; Mehreen Saeed (2020). Political Optimizer: A novel socio-inspired meta-heuristic for global optimization. Knowledge-Based Systems, Elsevier BV.
Verified DOI: 10.1016/j.knosys.2020.105709
External links collected from a search index and from paper abstracts; check that they are the original authors’ code and that they work before relying on them.
The bibliographic data match the Crossref record (checked 2026-11-20). There is no tested Python code for this algorithm in this version.
