<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ArticleSet PUBLIC "-//NLM//DTD PubMed 2.7//EN" "https://dtd.nlm.nih.gov/ncbi/pubmed/in/PubMed.dtd">
<ArticleSet>
<Article>
<Journal>
				<PublisherName>University of Isfahan</PublisherName>
				<JournalTitle>Journal of Asset Management and Financing</JournalTitle>
				<Issn>2383-1189</Issn>
				<Volume>11</Volume>
				<Issue>4</Issue>
				<PubDate PubStatus="epublish">
					<Year>2023</Year>
					<Month>12</Month>
					<Day>22</Day>
				</PubDate>
			</Journal>
<ArticleTitle>Expansion of the Markowitz Model in Portfolio Optimization Considering Realistic Constraints</ArticleTitle>
<VernacularTitle>Expansion of the Markowitz Model in Portfolio Optimization Considering Realistic Constraints</VernacularTitle>
			<FirstPage>65</FirstPage>
			<LastPage>92</LastPage>
			<ELocationID EIdType="pii">28246</ELocationID>
			
<ELocationID EIdType="doi">10.22108/amf.2024.137329.1793</ELocationID>
			
			<Language>FA</Language>
<AuthorList>
<Author>
					<FirstName>Hossein</FirstName>
					<LastName>Alizadeh</LastName>
<Affiliation>MSc, Department of Industrial Engineering and Futures Studies, Faculty of Engineering, University of Isfahan, Isfahan, Iran</Affiliation>

</Author>
<Author>
					<FirstName>Kamran</FirstName>
					<LastName>Kianfar</LastName>
<Affiliation>Assistant Professor, Department of Industrial Engineering and Futures Studies, Faculty of Engineering, University of Isfahan, Isfahan, Iran</Affiliation>

</Author>
</AuthorList>
				<PublicationType>Journal Article</PublicationType>
			<History>
				<PubDate PubStatus="received">
					<Year>2023</Year>
					<Month>04</Month>
					<Day>12</Day>
				</PubDate>
			</History>
		<Abstract>This research aims to expand the Markowitz model in a way that aligns more closely with real-world conditions, considering various fundamental analysis factors and market constraints. Conducted on the Tehran Stock Exchange, this study utilizes two measures, semi-variance and mean absolute deviations, alongside the variance measure in the Markowitz model to better estimate risk levels. In addition, several constraints such as cardinality constraint, threshold constraint, and segmentation constraint are employed to bring the results of the Markowitz-based model closer to reality. To ensure that the stock return metric is not solely based on stock price changes, this research incorporates nine important fundamental analysis metrics in filtering company stocks and as a return metric in the Markowitz model. Due to the computational complexity of the mathematical programming model, sample problems were also solved using the Harmony Search algorithm. The results indicate that the mathematical model performs better in terms of the distance from the ideal point efficiency metric, while the harmony search algorithm excels in uniformity metrics, exploring diverse solutions, and solution time. Increasing the range of cardinality and threshold constraints results in selecting more stocks in the portfolio, and simultaneously, the risk and return objective functions will improve concurrently.&lt;br /&gt;&lt;strong&gt;Keywords:&lt;/strong&gt; Markowitz Model, Stock Portfolio Selection, Fundamental Analysis, Stock Risk Management, Harmony Search Algorithm.&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt;In this study, the semi-variance and mean absolute deviation models are used alongside the mean-variance model for comparison. Developed models for optimizing stock portfolios heavily rely on realistic constraints. Budget constraints, cardinality constraints, threshold constraints, and segmentation constraints are among the most crucial constraints in the stock market, which were utilized in this research for portfolio selection (Mehrjerdi &amp; Rasaei, 2013).&lt;br /&gt;Besides return metrics, indicators such as P/E (price to earnings per share), ROE (return on equity), six-month turnover rate, and company total asset ratio are used in the current research for initial stock screening, followed by metrics such as P/S (price per share to sales), ROA (return on assets), quick ratio, and turnover to total market value in the objective functions of the Markowitz model (Asgarnezhad, 2018).&lt;br /&gt;This study, conducted on the Tehran Stock Exchange, utilizes nine important and strategic industry groups that have a significant impact on the overall index. The study period covers the second six months of the year 2022, and questionnaires were completed by capital market experts and brokers from the Mashhad Mofid brokerage.&lt;br /&gt;The main question of this study in the field of financial optimization is how to expand the Markowitz (1952) model to better align with real-world conditions. Alongside the main question, several subsidiary questions arise, including: 1) How can stocks be selected based on realistic constraints? 2) How is the balance between risk and return established in portfolio selection? 3) Which fundamental analysis indicators are more important in stock portfolio selection on the Tehran Stock Exchange?&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Materials and Methods&lt;/strong&gt;&lt;br /&gt;The research aims to minimize portfolio investment risk and maximize expected portfolio return. The first objective seeks to select a combination of stocks with the least investment risk, utilizing three different measures: variance, semi-variance, and mean absolute deviation. Due to the abundance of factors and sub-factors, two questionnaires were designed for financial market specialists to prioritize factors through analytic hierarchy process (AHP) analysis. Fifteen experts with over five years of experience in financial, accounting, or managerial fields were selected through purposive sampling.&lt;br /&gt;In the proposed mathematical programming model, sub-factors with higher importance within each group are incorporated into the objective function, while less important ones are used as filters before entering the model. For instance, ROA, P/S, quick ratio, market value of the company to industry, and percentage of companies&#039; operating profit are included in the objective function, while ROE, P/E, turnover rate, and percentage of total assets serve as filters. Due to the nonlinearity and NP-hardness of the portfolio optimization problem, traditional mathematical programming models may not yield solutions within a reasonable timeframe, especially for large-scale problem instances. Hence, the harmony search algorithm is employed to reduce solution time and approximate the optimal solution. The algorithm is implemented in MATLAB software, where a solution string representing the investment proportion in each stock is defined, allowing for the quick derivation of other variable values in the mathematical programming model.&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Research Findings&lt;/strong&gt;&lt;br /&gt;The results of the study indicate that all 15 questionnaires had inconsistency rates lower than 0.1, indicating a good level of consistency. Therefore, the geometric mean was calculated from these 15 questionnaires. In the questionnaires, factors influencing the five selected factors were compared with each other (See Table 1).&lt;br /&gt; &lt;br /&gt;Table 1. Results of Expert Opinions in the Questionnaire for Selected Factors&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Factor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub-factor (average of weight)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Profitability&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ROA&lt;br /&gt;(0.392)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ROE&lt;br /&gt;(0.374)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Net Profit Margin on Sales&lt;br /&gt;(0.127)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Operating Expense Ratio&lt;br /&gt;(0.108)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Valuation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P/S&lt;br /&gt;(0.302)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P/E&lt;br /&gt;(0.301)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ln(A/B)&lt;br /&gt;(0.162)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ln(B/P)&lt;br /&gt;(0.124)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Liquidity&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Asset Liability Ratio&lt;br /&gt;(0.388)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Quick Ratio&lt;br /&gt;(0.374)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Equity to Dept Ratio&lt;br /&gt;(0.125)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Current Ratio&lt;br /&gt;(0.113)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Volume&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover to total market 3-month&lt;br /&gt;(0.447)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover to total market 1-month&lt;br /&gt;(0.260)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover rate 3-month&lt;br /&gt;(0.178)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover rate 1-month&lt;br /&gt;(0.114)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Growth&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Total assets&lt;br /&gt;(0.394)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Operating profit&lt;br /&gt;(0.320)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Gross profit&lt;br /&gt;(0.286)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;All necessary data have been obtained from &lt;em&gt;www.tsetmc.com&lt;/em&gt; and &lt;em&gt;www.codal.ir&lt;/em&gt; websites and have been incorporated into the filters. To compare the results of the exact solution method and the harmony search metaheuristic, different sizes of sample problems need to be defined. For this purpose, sample groups N10 to N55, consisting of 10 to 55 stocks, have been defined, including categories such as oil derivatives, basic metals, chemical products, automobiles, metal extraction, food products, investments, pharmaceuticals, and banks.&lt;br /&gt;In the N30 group, the GAMS software requires a minimum solution time of 560 seconds, while the harmony search algorithm needs only 33 seconds to obtain local optimal points. A comparison between the two solution methods is illustrated in Figure 1, demonstrating that the SEMICOV objective function performs best for risk calculation in both exact and metaheuristic solution methods. Both figures exhibit robustness, and the solutions are well dispersed in the space.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Figure 1. Pareto Charts of Three Objective Functions for Group N30&lt;br /&gt;The study compares the exact method and the harmony search algorithm for optimizing stock portfolios. Results show the harmony search method&#039;s efficiency, especially in larger dimensions, despite slight differences with the exact method. The SEMICOV criterion performs well, but the MAD criterion shows instability. Additionally, the harmony search algorithm proves superior in uniformity, scalability, and solution time. Sensitivity analysis highlights the importance of parameter variations in portfolio optimization.&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Discussion of Results and Conclusion&lt;/strong&gt;&lt;br /&gt;The results revealed that the semi-variance objective yielded better results in both the exact solution method and the harmony search algorithm in most groups of the test instances. The harmony search algorithm provides a good approximation of the optimal solution in a much shorter time compared to the mathematical model. The harmony search algorithm performed better in terms of uniformity and spread metrics of Pareto points, but the exact solution method was superior in calculating the distance from the ideal point metric.&lt;br /&gt;The sensitivity analysis conducted on the N30 group highlighted the significant impact of altering constraint selection ranges on the objective function and, consequently, on the stock portfolio. Initially, expanding the ranges of both the cardinality and threshold constraints led to the inclusion of stocks with higher returns and lower risks at the Pareto frontier across all risk assessment metrics. Specifically, in the semi-variance objective function, the optimal stock portfolio was found in subgroup  with a return of 0.84 and a corresponding risk of 0.146. As the range decreased in subgroup , returns diminished to 0.526 with a risk of 0.15. In subgroup , where both constraints became more stringent, returns reached 0.284 with a risk value of 0.16. Consequently, the analysis concluded that broader constraint ranges corresponded to lower risks and higher returns, and vice versa.&lt;br /&gt;The applications of this research are for individual shareholders, financial institutions, investment funds, and portfolio managers who can use this research to improve their returns and reduce their trading risk.&lt;br /&gt; &lt;br /&gt; </Abstract>
			<OtherAbstract Language="FA">This research aims to expand the Markowitz model in a way that aligns more closely with real-world conditions, considering various fundamental analysis factors and market constraints. Conducted on the Tehran Stock Exchange, this study utilizes two measures, semi-variance and mean absolute deviations, alongside the variance measure in the Markowitz model to better estimate risk levels. In addition, several constraints such as cardinality constraint, threshold constraint, and segmentation constraint are employed to bring the results of the Markowitz-based model closer to reality. To ensure that the stock return metric is not solely based on stock price changes, this research incorporates nine important fundamental analysis metrics in filtering company stocks and as a return metric in the Markowitz model. Due to the computational complexity of the mathematical programming model, sample problems were also solved using the Harmony Search algorithm. The results indicate that the mathematical model performs better in terms of the distance from the ideal point efficiency metric, while the harmony search algorithm excels in uniformity metrics, exploring diverse solutions, and solution time. Increasing the range of cardinality and threshold constraints results in selecting more stocks in the portfolio, and simultaneously, the risk and return objective functions will improve concurrently.&lt;br /&gt;&lt;strong&gt;Keywords:&lt;/strong&gt; Markowitz Model, Stock Portfolio Selection, Fundamental Analysis, Stock Risk Management, Harmony Search Algorithm.&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt;In this study, the semi-variance and mean absolute deviation models are used alongside the mean-variance model for comparison. Developed models for optimizing stock portfolios heavily rely on realistic constraints. Budget constraints, cardinality constraints, threshold constraints, and segmentation constraints are among the most crucial constraints in the stock market, which were utilized in this research for portfolio selection (Mehrjerdi &amp; Rasaei, 2013).&lt;br /&gt;Besides return metrics, indicators such as P/E (price to earnings per share), ROE (return on equity), six-month turnover rate, and company total asset ratio are used in the current research for initial stock screening, followed by metrics such as P/S (price per share to sales), ROA (return on assets), quick ratio, and turnover to total market value in the objective functions of the Markowitz model (Asgarnezhad, 2018).&lt;br /&gt;This study, conducted on the Tehran Stock Exchange, utilizes nine important and strategic industry groups that have a significant impact on the overall index. The study period covers the second six months of the year 2022, and questionnaires were completed by capital market experts and brokers from the Mashhad Mofid brokerage.&lt;br /&gt;The main question of this study in the field of financial optimization is how to expand the Markowitz (1952) model to better align with real-world conditions. Alongside the main question, several subsidiary questions arise, including: 1) How can stocks be selected based on realistic constraints? 2) How is the balance between risk and return established in portfolio selection? 3) Which fundamental analysis indicators are more important in stock portfolio selection on the Tehran Stock Exchange?&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Materials and Methods&lt;/strong&gt;&lt;br /&gt;The research aims to minimize portfolio investment risk and maximize expected portfolio return. The first objective seeks to select a combination of stocks with the least investment risk, utilizing three different measures: variance, semi-variance, and mean absolute deviation. Due to the abundance of factors and sub-factors, two questionnaires were designed for financial market specialists to prioritize factors through analytic hierarchy process (AHP) analysis. Fifteen experts with over five years of experience in financial, accounting, or managerial fields were selected through purposive sampling.&lt;br /&gt;In the proposed mathematical programming model, sub-factors with higher importance within each group are incorporated into the objective function, while less important ones are used as filters before entering the model. For instance, ROA, P/S, quick ratio, market value of the company to industry, and percentage of companies&#039; operating profit are included in the objective function, while ROE, P/E, turnover rate, and percentage of total assets serve as filters. Due to the nonlinearity and NP-hardness of the portfolio optimization problem, traditional mathematical programming models may not yield solutions within a reasonable timeframe, especially for large-scale problem instances. Hence, the harmony search algorithm is employed to reduce solution time and approximate the optimal solution. The algorithm is implemented in MATLAB software, where a solution string representing the investment proportion in each stock is defined, allowing for the quick derivation of other variable values in the mathematical programming model.&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Research Findings&lt;/strong&gt;&lt;br /&gt;The results of the study indicate that all 15 questionnaires had inconsistency rates lower than 0.1, indicating a good level of consistency. Therefore, the geometric mean was calculated from these 15 questionnaires. In the questionnaires, factors influencing the five selected factors were compared with each other (See Table 1).&lt;br /&gt; &lt;br /&gt;Table 1. Results of Expert Opinions in the Questionnaire for Selected Factors&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Factor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub-factor (average of weight)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Profitability&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ROA&lt;br /&gt;(0.392)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ROE&lt;br /&gt;(0.374)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Net Profit Margin on Sales&lt;br /&gt;(0.127)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Operating Expense Ratio&lt;br /&gt;(0.108)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Valuation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P/S&lt;br /&gt;(0.302)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P/E&lt;br /&gt;(0.301)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ln(A/B)&lt;br /&gt;(0.162)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ln(B/P)&lt;br /&gt;(0.124)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Liquidity&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Asset Liability Ratio&lt;br /&gt;(0.388)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Quick Ratio&lt;br /&gt;(0.374)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Equity to Dept Ratio&lt;br /&gt;(0.125)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Current Ratio&lt;br /&gt;(0.113)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Volume&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover to total market 3-month&lt;br /&gt;(0.447)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover to total market 1-month&lt;br /&gt;(0.260)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover rate 3-month&lt;br /&gt;(0.178)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Turnover rate 1-month&lt;br /&gt;(0.114)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Growth&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Total assets&lt;br /&gt;(0.394)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Operating profit&lt;br /&gt;(0.320)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Gross profit&lt;br /&gt;(0.286)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;All necessary data have been obtained from &lt;em&gt;www.tsetmc.com&lt;/em&gt; and &lt;em&gt;www.codal.ir&lt;/em&gt; websites and have been incorporated into the filters. To compare the results of the exact solution method and the harmony search metaheuristic, different sizes of sample problems need to be defined. For this purpose, sample groups N10 to N55, consisting of 10 to 55 stocks, have been defined, including categories such as oil derivatives, basic metals, chemical products, automobiles, metal extraction, food products, investments, pharmaceuticals, and banks.&lt;br /&gt;In the N30 group, the GAMS software requires a minimum solution time of 560 seconds, while the harmony search algorithm needs only 33 seconds to obtain local optimal points. A comparison between the two solution methods is illustrated in Figure 1, demonstrating that the SEMICOV objective function performs best for risk calculation in both exact and metaheuristic solution methods. Both figures exhibit robustness, and the solutions are well dispersed in the space.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Figure 1. Pareto Charts of Three Objective Functions for Group N30&lt;br /&gt;The study compares the exact method and the harmony search algorithm for optimizing stock portfolios. Results show the harmony search method&#039;s efficiency, especially in larger dimensions, despite slight differences with the exact method. The SEMICOV criterion performs well, but the MAD criterion shows instability. Additionally, the harmony search algorithm proves superior in uniformity, scalability, and solution time. Sensitivity analysis highlights the importance of parameter variations in portfolio optimization.&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Discussion of Results and Conclusion&lt;/strong&gt;&lt;br /&gt;The results revealed that the semi-variance objective yielded better results in both the exact solution method and the harmony search algorithm in most groups of the test instances. The harmony search algorithm provides a good approximation of the optimal solution in a much shorter time compared to the mathematical model. The harmony search algorithm performed better in terms of uniformity and spread metrics of Pareto points, but the exact solution method was superior in calculating the distance from the ideal point metric.&lt;br /&gt;The sensitivity analysis conducted on the N30 group highlighted the significant impact of altering constraint selection ranges on the objective function and, consequently, on the stock portfolio. Initially, expanding the ranges of both the cardinality and threshold constraints led to the inclusion of stocks with higher returns and lower risks at the Pareto frontier across all risk assessment metrics. Specifically, in the semi-variance objective function, the optimal stock portfolio was found in subgroup  with a return of 0.84 and a corresponding risk of 0.146. As the range decreased in subgroup , returns diminished to 0.526 with a risk of 0.15. In subgroup , where both constraints became more stringent, returns reached 0.284 with a risk value of 0.16. Consequently, the analysis concluded that broader constraint ranges corresponded to lower risks and higher returns, and vice versa.&lt;br /&gt;The applications of this research are for individual shareholders, financial institutions, investment funds, and portfolio managers who can use this research to improve their returns and reduce their trading risk.&lt;br /&gt; &lt;br /&gt; </OtherAbstract>
		<ObjectList>
			<Object Type="keyword">
			<Param Name="value">Markowitz model</Param>
			</Object>
			<Object Type="keyword">
			<Param Name="value">Portfolio Selection</Param>
			</Object>
			<Object Type="keyword">
			<Param Name="value">fundamental analysis</Param>
			</Object>
			<Object Type="keyword">
			<Param Name="value">stock risk management</Param>
			</Object>
			<Object Type="keyword">
			<Param Name="value">harmony search meta-heuristic algorithm</Param>
			</Object>
		</ObjectList>
<ArchiveCopySource DocType="pdf">https://amf.ui.ac.ir/article_28246_08ef1c2cfb83d0308ac02dfd044c1b09.pdf</ArchiveCopySource>
</Article>
</ArticleSet>
