Skip to content

Parameter performance, could named Constants be supported? #2322

Answered by SteveDiamond
pgkirsch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Philippe! Could you try timing the optimization with the CPP and SciPy different backends?
https://www.cvxpy.org/tutorial/advanced/index.html#canonicalization-backends

Could you format the results with the info:
Number of parameters | compilation time with CPP backend | compilation time with SciPy backend | compilation time with CPP backend and ignore_dpp=True

Named constants would be reasonable but if the SciPy backend is fast enough it might make sense to add logic to trigger it automatically when there are enough parameters. It was designed to be much faster with parameters than the CPP backend. @phschiele what do you think?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@pgkirsch
Comment options

@SteveDiamond
Comment options

@pgkirsch
Comment options

@SteveDiamond
Comment options

@phschiele
Comment options

Answer selected by phschiele
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants