Comments (11)
Hi @lemon234071,
It depends on the solver that you choose. To reduce computation time is better to use a commercial solver like GUROBI, CEPLEX or MOSEK. All of them offer academic licenses, but personally I prefer MOSEK because its academic license is less restrictive and also supports all kind of cones. On the other hand, for linear models GUROBI is a little faster in academic version but has more restrictions in the number of variables and constraints.
Best,
Dany
from riskfolio-lib.
Hi @lemon234071,
It depends on the solver that you choose. To reduce computation time is better to use a commercial solver like GUROBI, CEPLEX or MOSEK. All of them offer academic licenses, but personally I prefer MOSEK because its academic license is less restrictive and also supports all kind of cones. On the other hand, for linear models GUROBI is a little faster in academic version but has more restrictions in the number of variables and constraints.
Best, Dany
I found that the rp.Portfolio() has the default self.solvers = ["ECOS", "SCS", "OSQP", "CVXOPT"].
So, all i need to do is change it like self.solvers = ["MOSEK"] ? Will there any hidden danger?
from riskfolio-lib.
I use these solvers by default because are open source and are installed by default with CVXPY.
Yes, that's the idea but first you must install MOSEK and get an academic license in its website. If you see Entropic Value at Risk tutorial, I use MOSEK to reduce computation time.
from riskfolio-lib.
Thank you first, i just tried MOSEK with just pip install MOSEK . It faster but it return the None solution while other solvers return a weights....
from riskfolio-lib.
It's because you need a valid license. In riskfolio-lib install instructions are the links to get an academic license.
from riskfolio-lib.
Thank you very much i ll try it.
from riskfolio-lib.
It works thank you very much, btw, did you try the Cvxpylayers on GPU? Would it be faster???
from riskfolio-lib.
No, I didn't try cvxlayers. I use a Macbook air, so I don't have a GPU to try cvxlayers, but based on the information I read on papers, blogs and forums; commercial solvers like GUROBI, CPLEX, XPRESS and MOSEK are the best.
from riskfolio-lib.
Thank you very much!
from riskfolio-lib.
Hello there, me again! Thank you for your time first!
I still have some problems with the speed:
1, With constraints "upperlng“ and “nea”, my problem should be solved with numerical methods.
Do the different objective functions heavily affect the speed?
(i mean I saw that optimization of sharpe is realized by minimizing the risk with constraints. I mean do the different forms of the function with constraints will be solved by different methods detected by mosek?).
2, Do the parameters of Mosek affect the speed and the performance? (i mean in self.sol_params)
My sincerest thanks!
Best wishes!
from riskfolio-lib.
- Yes
- Yes
from riskfolio-lib.
Related Issues (20)
- Allowing sht (to allow short ) in the HCPortfolio NCO method HOT 3
- risk parity portfolio comparison to R HOT 1
- Reports.excel_report() can't deal with multiple portfolio HOT 1
- Pandas 2.0 HOT 5
- [Feature Request] Add Treynor Black Model for Portfolio Optimization Feature HOT 1
- Optimization without return streams HOT 1
- Custom weights Contrain HOT 1
- module 'riskfolio.external.cppfunctions' has no attribute 'kurtosis_matrix' HOT 1
- Riskfolio > 4.0 bug in HRP constraints HOT 5
- example not working HOT 7
- Plotting erros HOT 1
- Constraint violation HOT 2
- LaTeX legend with ParserError HOT 3
- Constraints in Riskfolio does not work HOT 1
- Conditional Portfolio Allocation Constraints HOT 1
- Can online portfolio problems be solved? HOT 1
- Tutorial 18-AttributeError: 'NoneType' object has no attribute 'to_numpy'-- pls. look into HOT 4
- Positioning vector here HOT 1
- Examples pages HOT 1
- Report generation failing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riskfolio-lib.