Adds java gurobi multi excel file example#122
Merged
merschformann merged 14 commits intodevelopfrom Jun 24, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a Java example app that demonstrates using Gurobi for solving a multi-knapsack problem with Excel input/output. The key changes include the implementation of the model and solver logic in Main.java, utility classes for reading/writing Excel files, and Maven project configuration files supporting the app.
Reviewed Changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| java-gurobi-multiknapsack-multiexcel/src/main/java/com/nextmv/example/Output.java | Implements output formatting to JSON via GSON |
| java-gurobi-multiknapsack-multiexcel/src/main/java/com/nextmv/example/Options.java | Adds command line options parsing |
| java-gurobi-multiknapsack-multiexcel/src/main/java/com/nextmv/example/Main.java | Implements the Gurobi optimization model and solution handling |
| java-gurobi-multiknapsack-multiexcel/src/main/java/com/nextmv/example/ExcelWriter.java | Implements Excel file writing for solution results |
| java-gurobi-multiknapsack-multiexcel/src/main/java/com/nextmv/example/ExcelReader.java | Implements Excel file reading for input data |
| java-gurobi-multiknapsack-multiexcel/pom.xml | Configures Maven dependencies and build plugins |
| Other project and configuration files | Support project setup, container configuration, and CI integration |
Comments suppressed due to low confidence (1)
…example/Main.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…cel' into merschformann/java-multi-file-excel
cowanwalls
approved these changes
Jun 24, 2025
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.
Description
Adds example app for using Gurobi via Java with Excel (.xlsx) input and output files.
Changes
java-gurobi-multiknapsack-multiexcelexample app.