Skip to content
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

Add Documentation Module for OMMX Rust API #335

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

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 26, 2025

Add Documentation Module for OMMX Rust API

This PR adds a comprehensive documentation module for the OMMX Rust API following the pattern used by the ndarray crate. The documentation is organized as standalone documentation pages with runnable code examples.

Changes

  • Created a new doc module in src/doc/mod.rs
  • Added a tutorial submodule with comprehensive documentation on:
    • Linear functions
    • Quadratic functions
    • Optimization modeling
    • State and evaluation
    • Random generation
    • Artifacts

Implementation Details

The documentation follows the pattern used by the ndarray crate, with standalone documentation pages that are accessible through the crate's documentation. Each tutorial page includes runnable code examples that demonstrate how to use the OMMX Rust API.

Testing

All code examples in the documentation have been verified to compile correctly.

Link to Devin run

https://app.devin.ai/sessions/5fd7d6d0d74c4ef68d3a712c845292d9

Requested by: t.shimizu@j-ij.com

Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 8 commits February 26, 2025 09:28
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
…ion.rs

Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Copy link
Member

@Shitaro Shitaro left a comment

Choose a reason for hiding this comment

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

Can you delete all files in the examples directory?

Copy link
Contributor Author

I've updated the code blocks in to use no_run instead of ignore. The ignore attribute was initially used because these examples interact with external systems (file system and registries) which can't be tested in the documentation test environment. However, no_run is more appropriate as it still checks that the code compiles but doesn't execute it.

devin-ai-integration bot and others added 3 commits February 27, 2025 07:24
…al example files

Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
@devin-ai-integration devin-ai-integration bot changed the title Add Japanese Rust API Tutorial Examples Add Documentation Module for OMMX Rust API Feb 27, 2025
devin-ai-integration bot and others added 6 commits February 27, 2025 08:59
…tiplication syntax

Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
Co-Authored-By: t.shimizu@j-ij.com <t.shimizu@j-ij.com>
…eParameters

Co-Authored-By: t.teramura@j-ij.com <t.teramura@j-ij.com>
Copy link
Contributor Author

Devin is currently unreachable - the session may have died.

1 similar comment
Copy link
Contributor Author

Devin is currently unreachable - the session may have died.

…e() calls

Co-Authored-By: t.teramura@j-ij.com <t.teramura@j-ij.com>
devin-ai-integration bot and others added 2 commits February 27, 2025 13:03
…unctions section, update Evaluating Quadratic Functions to use multiplication syntax

Co-Authored-By: t.teramura@j-ij.com <t.teramura@j-ij.com>
Copy link

codspeed-hq bot commented Mar 3, 2025

CodSpeed Performance Report

Merging #335 will not alter performance

Comparing devin/1740561989-rust-api-tutorial (96e06df) with main (a1bad31)

Summary

✅ 10 untouched benchmarks

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.

2 participants