Melola Discovery

← Melola Discovery

Open access Journal No SINTA rank

Optimal Portfolio Formation Using a Combination of Genetic Algorithms and Particle Swarm Optimization Based on Cluster Analysis

Jurnal Matematika, Statistika dan Komputasi · Vol. 22 No. 3 (2026) · pp. 671–685

DOI
10.20956/j.v22i3.50039
ISSN
2614-8811, 1858-1382
Published
2026-05-14
Publisher
Department of Mathematics, Hasanuddin University
Language
en
License
creativecommons.org/licenses/by/4.0

Abstract

The formation of an optimal portfolio is one of the strategies of investors in allocating their funds so as to minimize risk while maximizing profits. The optimal portfolio formation method has evolved over the years, ranging from simple calculation methods, to using complex optimization algorithms. This study aims to group LQ-45 stocks through a clustering algorithm, then determine the right weighting of representative shares of each cluster through the combination of GA-PSO so that an optimal portfolio is produced. The research begins with data pre-processing which includes transformation and reduction of data dimensions. The data from the dimension reduction is used to group stocks into clusters based on the best clustering algorithm. The stocks with the highest Sharpe ratio in each cluster are used to form the portfolio. The performance of the weighted portfolio using GA-PSO will be compared with the weighted portfolio using PSO. The results of the study showed that the K-Means algorithm became the clustering method with the highest silhouette score, which was 0.3614, and the optimal number of clusters produced was 6. Based on the results of the K-Means algorithm, the cluster representative stocks used for portfolio formation are ANTM, BRPT, EXCL, MDKA, MEDC, and PTBA. Furthermore, the results showed that the Sharpe ratio of stock portfolios using GA-PSO combined was greater than that of portfolios that used PSO alone for weighting. The K-Means algorithm is more suitable for grouping stocks than the DBSCAN and Agglomerative algorithms with Average Linkage. Furthermore, the combination of genetic algorithms and particle swarm optimization complements each other in weighting stocks so that it produces a portfolio with more optimal performance when compared to only using particle swarm optimization.

Keywords

Collaboration network of the authors

2 authors · 1 co-authorship link

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Hasanuddin University
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journal.unhas.ac.id/index.php/jmsk/oai, first harvested 5 Nov 2026, last seen 22 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Optimal Portfolio Formation Using a Combination of Genetic Algorithms and Particle Swarm Optimization Based on Cluster Analysis</dc:title>
	<dc:creator xml:lang="en">Amiruddin, Irfan N.</dc:creator>
	<dc:creator xml:lang="en">Rusdy, Edy S.</dc:creator>
	<dc:subject xml:lang="en">GA-PSO Hybrid</dc:subject>
	<dc:subject xml:lang="en">Agglomerative Hierarchical Clustering</dc:subject>
	<dc:subject xml:lang="en">DBSCAN</dc:subject>
	<dc:subject xml:lang="en">K-Means</dc:subject>
	<dc:subject xml:lang="en">Stock Portfolio</dc:subject>
	<dc:description xml:lang="en">The formation of an optimal portfolio is one of the strategies of investors in allocating their funds so as to minimize risk while maximizing profits. The optimal portfolio formation method has evolved over the years, ranging from simple calculation methods, to using complex optimization algorithms. This study aims to group LQ-45 stocks through a clustering algorithm, then determine the right weighting of representative shares of each cluster through the combination of GA-PSO so that an optimal portfolio is produced. The research begins with data pre-processing which includes transformation and reduction of data dimensions. The data from the dimension reduction is used to group stocks into clusters based on the best clustering algorithm. The stocks with the highest Sharpe ratio in each cluster are used to form the portfolio. The performance of the weighted portfolio using GA-PSO will be compared with the weighted portfolio using PSO. The results of the study showed that the K-Means algorithm became the clustering method with the highest silhouette score, which was 0.3614, and the optimal number of clusters produced was 6. Based on the results of the K-Means algorithm, the cluster representative stocks used for portfolio formation are ANTM, BRPT, EXCL, MDKA, MEDC, and PTBA. Furthermore, the results showed that the Sharpe ratio of stock portfolios using GA-PSO combined was greater than that of portfolios that used PSO alone for weighting. The K-Means algorithm is more suitable for grouping stocks than the DBSCAN and Agglomerative algorithms with Average Linkage. Furthermore, the combination of genetic algorithms and particle swarm optimization complements each other in weighting stocks so that it produces a portfolio with more optimal performance when compared to only using particle swarm optimization.</dc:description>
	<dc:publisher xml:lang="en">Department of Mathematics, Hasanuddin University</dc:publisher>
	<dc:date>2026-05-14</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unhas.ac.id/index.php/jmsk/article/view/50039</dc:identifier>
	<dc:identifier>10.20956/j.v22i3.50039</dc:identifier>
	<dc:source xml:lang="en">Jurnal Matematika, Statistika dan Komputasi; Vol. 22 No. 3 (2026): May 2026; 671-685</dc:source>
	<dc:source>2614-8811</dc:source>
	<dc:source>1858-1382</dc:source>
	<dc:language>en</dc:language>
	<dc:relation>https://journal.unhas.ac.id/index.php/jmsk/article/view/50039/14418</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2026 Jurnal Matematika, Statistika dan Komputasi</dc:rights>
	<dc:rights xml:lang="en">https://creativecommons.org/licenses/by/4.0</dc:rights>
</oai_dc:dc>