Add power cone benchmarks and iteration experiment script#28
Open
Add power cone benchmarks and iteration experiment script#28
Conversation
Add comprehensive benchmarks comparing: - power() atom with various exponents (convex p=1.5, negative p=-0.5, fractional p=0.3) - geo_mean() atom with uniform weights, large scale (n=500), and weighted configurations - pnorm() atom with various p values (p=1.5, p=3, p=0.5) Each benchmark tests both: - approx=True: Uses SOC approximation via rational decomposition - approx=False: Uses native power cones Problem sizes: - power: n=5000, n=1000 - geo_mean: n=100 (quick), n=500 (large/stress test) - pnorm: n=5000, n=1000 - weighted geo_mean: n=100 Tests are run with both CLARABEL and SCS solvers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds a standalone script to compare iteration counts and solve times between power cones (approx=False) and SOC approximation (approx=True) for geo_mean, pnorm, power, and inv_prod atoms. Supports CLARABEL, SCS, and MOSEK solvers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
approx=True(SOC approximation) vsapprox=False(native power cones)power_cone_iterations.py) for detailed iteration count experimentsBenchmarks added (
power_cone_benchmarks.py)power()with n=5000, n=1000geo_mean()with n=100, n=500pnorm()with n=5000, n=1000geo_meanwith n=100Iteration experiment script (
power_cone_iterations.py)Standalone script to compare iteration counts, time per iteration, and cone breakdown:
Reports variables, constraints, cone breakdown, iterations, solve time, and time/iteration.
Test plan
cc @rileyjmurray - Ready for review
🤖 Generated with Claude Code