Skip to content

Save constraint and objective data from agent decision optimization#175

Merged
biegelk merged 17 commits intomainfrom
postprocessing
Mar 15, 2026
Merged

Save constraint and objective data from agent decision optimization#175
biegelk merged 17 commits intomainfrom
postprocessing

Conversation

@biegelk
Copy link
Copy Markdown
Collaborator

@biegelk biegelk commented Jan 20, 2026

This PR increases the amount and usefulness of data saved from agent decision optimization solutions:

  • Constraints:
    • Name
    • Equation
    • RHS value
    • Primal value at optimal solution
    • Dual value at optimal solution (from the relaxed integrality problem)
  • Objectives:
    • Value at optimal solution for integral and relaxed problems

To create the duals, this PR also expands the agent decision optimization routine to solve the integral problem, save results, then relax integrality on the original problem and re-solve. This allows retrieval of all binding constraints for the relaxed problem (i.e. constraints with non-zero dual), as MILPs don't have defined duals due to non-continuity of variables.

Integral and relaxed problems usually produce similar but not identical results even with rounding. Binding constraints are useful for approximate diagnostics but aren't guaranteed to be fully accurate.

@biegelk biegelk added the enhancement New feature or request label Jan 20, 2026
@biegelk biegelk changed the title Expand data saving and postprocessing Save constraint and objective data from agent decision optimization Mar 15, 2026
@biegelk biegelk merged commit 9a99c99 into main Mar 15, 2026
1 check passed
@biegelk biegelk deleted the postprocessing branch March 15, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant