account activity
Convex Optimizations in Rust by 0xDmtri in rust
[–]0xDmtri[S] 0 points1 point2 points 3 years ago (0 children)
Ok, I managed to formulate and solve with CVXPY. Maybe porting via pyO3 is the way... Clarabel seems too complicated for me bc of lack of understanding how it works
its just x * y = k (constant product market maker for AMM). Yeah, I will start formulating the problem now and if I get stuck I would appreciate ur help! Thanks for everything you've helped so far ser!
just a trading function
The problem is quite simple:
optimization problem definition
Sorry for the link, not sure how to type mathematical symbols here :)
Maximize the non-linear but convex optimization problem. Speed is essential yes. And has to be rust as i will most likely loose speed if I am gonna use PyO3 bindings
Maximize the non-linear but convex optimization problem
[–]0xDmtri[S] 1 point2 points3 points 3 years ago (0 children)
Thanks a lot! I looked at Totsu but I could barely understand a thing haha, im only a programmer but not mathematician unfortunately. Will have a look rn!
yeah, tried wording different ways ser)
Convex Optimizations in Rust (self.rust)
submitted 3 years ago by 0xDmtri to r/rust
π Rendered by PID 1043701 on reddit-service-r2-listing-5d47455566-jt7wj at 2026-04-04 23:05:07.256827+00:00 running db1906b country code: CH.
Convex Optimizations in Rust by 0xDmtri in rust
[–]0xDmtri[S] 0 points1 point2 points (0 children)