Skip to content

Under 10 hrs runtime: Resource adequacy #225

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

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Conversation

lprieto1409
Copy link
Member

Hi @siddharth-krishna and @danielelerede-oet,

Please take a look at this PR. The benchmark DCOPF-Carolinas_uc_6M now runs to completion in 8.55 hours using HiGHS. In the previous run results from Sid, I noticed that when the runtime exceeded 600 seconds, the termination condition was marked as TO (timeout). I made a small change in run_benchmarks.py so that specifying --timeout 0 disables the timeout constraint. You can now run:

python runner/run_benchmarks.py benchmarks/resource_adequacy/metadata.yaml 2025 --solvers highs --timeout 0

This may already be handled differently elsewhere in the repository when running the full benchmark suite, but just wanted to flag it in case you notice changes.

I'm currently on holiday, but feel free to leave any comments and I’ll respond as soon as I can.

Best,
Luis

Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
solver-benchmark ❌ Failed (Inspect) Jun 3, 2025 3:07pm

@@ -207,23 +207,36 @@ def benchmark_solver(input_file, solver_name, timeout, solver_version):
if "XDG_RUNTIME_DIR" in os.environ:
command.append("--user")

# I modify this part
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comments seems like a leftover that should be removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @KristijanFaust-OET just deleted this :)

command.extend(
[
"--scope",
f"--property=MemoryMax={memory_limit_bytes}", # Set resident memory limit
Copy link
Contributor

@KristijanFaust-OET KristijanFaust-OET Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments IMO can come in handy for the future. It was quite an effort to figure out how to prevent system wide OOMs, and keywords like resident play a crucial role in making it happen and understanding it. I think we should preserve both these comment and the one below, so that there isn't any confusion why we have these here in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me :)

"python",
f"{Path(__file__).parent / 'run_solver.py'}",
solver_name,
input_file,
solver_version,
]
)
# End of modification
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also looks like an leftover that should be removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @KristijanFaust-OET just deleted this :)

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

Successfully merging this pull request may close these issues.

3 participants