cvxpygen icon indicating copy to clipboard operation
cvxpygen copied to clipboard

feature request: structs instead of global workspace

Open ghorn opened this issue 2 years ago • 1 comments

The generated code uses a global workspace, including the third-party solver's workspace. I'm running into some drawbacks from this such as inability to simulate more than one actor simultaneously, inability to run multi-threaded, etc.

Was this done for simplicity, or is there a performance goal? Would you be open to PRs that encapsulate the workspace in a struct?

ghorn avatar Oct 03 '23 20:10 ghorn

Discussion from discord:

image

ghorn avatar Nov 01 '23 13:11 ghorn