Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

number of assets constraint #26

Closed
sabirjana opened this issue Jul 6, 2021 · 6 comments
Closed

number of assets constraint #26

sabirjana opened this issue Jul 6, 2021 · 6 comments

Comments

@sabirjana
Copy link

Hi, First of all, thank you for this wonderful library. I tried example 26 which is regarding the number of assets constraint and I am facing the following issue.
image

Appreciate any help. I also tried other MIP solvers based on the table below however faced the same issue.
image

@rahold
Copy link

rahold commented Jul 6, 2021

Most solvers are not pre-installed. You can find the link to the installation instructions of Mosek in tutorial 17.

@dcajasn
Copy link
Owner

dcajasn commented Jul 6, 2021

Hi @sabirjana,

As @rahold said in tutorial 17 are the installation instructions of Mosek. But to be more formal, in documentation, in install section are the installation instructions of Mosek https://riskfolio-lib.readthedocs.io/en/latest/install.html.

As an additional comment, I prefer MOSEK solver to avoid any kind of problem with all portfolio models available in Riskfolio-Lib.

Best,
Dany

@sabirjana
Copy link
Author

Hi Dany, Thank you for your quick response. As MOSEK has a license requirement I tried SCIP instead however still faced the issue. I used conda install -c conda-forge scip and then
image

@dcajasn
Copy link
Owner

dcajasn commented Jul 7, 2021

I've never try SCIP solver, but I think that the problem is too complex for the solver. Cardinality constraint with Sharpe objective (return risk ratio) requires fractional mixed integer programming.

@sabirjana
Copy link
Author

Do you suggest anything open-source solver other than MOSEK?

@sabirjana
Copy link
Author

Hi Dany, I tried with 'ECOS_BB' solver and it works. Thanks!

@dcajasn dcajasn closed this as completed Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants