Cardinality constraint optimization [on hold]2019 Community Moderator ElectionMatlab lsqlin constrain N number of elements in solutionHow can foreign key constraints be temporarily disabled using T-SQL?Cardinality constrained portfolio in MATLABOptimize a function in RR DEoptim - apply asset weight constraints on a portfolio optimizationPortfolio Optimisation under participation constraintsPortfolio optimisation in R - group ratio constraintsHow to add a constraint in CVaR optimization code in Matlab?SciPy portfolio optimization with industry-level constraintsCVaR Matlab OptimizationMean Variance Optimization + Python + tuning constraints

What is "desert glass" and what does it do to the PCs?

Should we avoid writing fiction about historical events without extensive research?

The (Easy) Road to Code

Quitting employee has privileged access to critical information

Can a Mexican citizen living in US under DACA drive to Canada?

Can you run a ground wire from stove directly to ground pole in the ground

Remove object from array based on array of some property of that object

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Iron deposits mined from under the city

Ultrafilters as a double dual

How spaceships determine each other's mass in space?

What is the purpose of a disclaimer like "this is not legal advice"?

Linear Combination of Atomic Orbitals

What is the meaning of option 'by' in TikZ Intersections

Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?

Is this nominative case or accusative case?

Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?

Rationale to prefer local variables over instance variables?

Can inspiration allow the Rogue to make a Sneak Attack?

Affine transformation of circular arc in 3D

Why is there an extra space when I type "ls" on the Desktop?

Deal the cards to the players

Naming Characters after Friends/Family

Does the US political system, in principle, allow for a no-party system?



Cardinality constraint optimization [on hold]



2019 Community Moderator ElectionMatlab lsqlin constrain N number of elements in solutionHow can foreign key constraints be temporarily disabled using T-SQL?Cardinality constrained portfolio in MATLABOptimize a function in RR DEoptim - apply asset weight constraints on a portfolio optimizationPortfolio Optimisation under participation constraintsPortfolio optimisation in R - group ratio constraintsHow to add a constraint in CVaR optimization code in Matlab?SciPy portfolio optimization with industry-level constraintsCVaR Matlab OptimizationMean Variance Optimization + Python + tuning constraints










1















I am constructing a function in Matlab that chose optimal portfolio weights, maximizing the investor's utility function.



I am using fmincon, because I don't want to use the portfolio object of Matlab since I prefer to make the code more flexible because I have different measure of the coefficient of risk aversion.



However, I would like to add a cardinality constraint that during the optimisation of my portfolio select not all the assets, but just a small number (like the maxnumasset in the portfolio object), but I don't know how to add this.










share|improve this question









New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Wolfie, Trilarion, Vogel612, Billal Begueradj, Joel yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • A heuristic approach is solving the problem without the constraint, removing the item with the lowest weight and repeating the procedure iteratively until the number of non-zero weights is sufficiently small. However, that may not give the optimal solution. (There is a similar, unsolved question).

    – Trilarion
    yesterday
















1















I am constructing a function in Matlab that chose optimal portfolio weights, maximizing the investor's utility function.



I am using fmincon, because I don't want to use the portfolio object of Matlab since I prefer to make the code more flexible because I have different measure of the coefficient of risk aversion.



However, I would like to add a cardinality constraint that during the optimisation of my portfolio select not all the assets, but just a small number (like the maxnumasset in the portfolio object), but I don't know how to add this.










share|improve this question









New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Wolfie, Trilarion, Vogel612, Billal Begueradj, Joel yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • A heuristic approach is solving the problem without the constraint, removing the item with the lowest weight and repeating the procedure iteratively until the number of non-zero weights is sufficiently small. However, that may not give the optimal solution. (There is a similar, unsolved question).

    – Trilarion
    yesterday














1












1








1








I am constructing a function in Matlab that chose optimal portfolio weights, maximizing the investor's utility function.



I am using fmincon, because I don't want to use the portfolio object of Matlab since I prefer to make the code more flexible because I have different measure of the coefficient of risk aversion.



However, I would like to add a cardinality constraint that during the optimisation of my portfolio select not all the assets, but just a small number (like the maxnumasset in the portfolio object), but I don't know how to add this.










share|improve this question









New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am constructing a function in Matlab that chose optimal portfolio weights, maximizing the investor's utility function.



I am using fmincon, because I don't want to use the portfolio object of Matlab since I prefer to make the code more flexible because I have different measure of the coefficient of risk aversion.



However, I would like to add a cardinality constraint that during the optimisation of my portfolio select not all the assets, but just a small number (like the maxnumasset in the portfolio object), but I don't know how to add this.







matlab optimization constraints cardinality






share|improve this question









New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 13 hours ago









Trilarion

6,71253978




6,71253978






New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









ArmandoArmando

141




141




New contributor




Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Armando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Wolfie, Trilarion, Vogel612, Billal Begueradj, Joel yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Wolfie, Trilarion, Vogel612, Billal Begueradj, Joel yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • A heuristic approach is solving the problem without the constraint, removing the item with the lowest weight and repeating the procedure iteratively until the number of non-zero weights is sufficiently small. However, that may not give the optimal solution. (There is a similar, unsolved question).

    – Trilarion
    yesterday


















  • A heuristic approach is solving the problem without the constraint, removing the item with the lowest weight and repeating the procedure iteratively until the number of non-zero weights is sufficiently small. However, that may not give the optimal solution. (There is a similar, unsolved question).

    – Trilarion
    yesterday

















A heuristic approach is solving the problem without the constraint, removing the item with the lowest weight and repeating the procedure iteratively until the number of non-zero weights is sufficiently small. However, that may not give the optimal solution. (There is a similar, unsolved question).

– Trilarion
yesterday






A heuristic approach is solving the problem without the constraint, removing the item with the lowest weight and repeating the procedure iteratively until the number of non-zero weights is sufficiently small. However, that may not give the optimal solution. (There is a similar, unsolved question).

– Trilarion
yesterday













0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page