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

[FileFormats.MOF] add MathOptFormat@1.6 support #2293

Merged
merged 11 commits into from
Sep 27, 2023
Merged

[FileFormats.MOF] add MathOptFormat@1.6 support #2293

merged 11 commits into from
Sep 27, 2023

Conversation

odow
Copy link
Member

@odow odow commented Sep 27, 2023

Closes #2292

Basic

  • The file at src/FileFormats/MOF/mof.X.Y.schema.json is updated
  • The constants SCHEMA_PATH, VERSION, and SUPPORTED_VERSIONS are
    updated in src/FileFormats/MOF/MOF.jl

New sets

  • New sets are added to the @model in src/FileFormats/MOF/MOF.jl
  • New sets are added to the @enum in src/FileFormats/MOF/read.jl
  • set_to_moi is defined for each set in src/FileFormats/MOF/read.jl
  • head_name is defined for each set in src/FileFormats/MOF/write.jl
  • A new unit test calling _test_model_equality is aded to
    test/FileFormats/MOF/MOF.jl

Tests

  • The version field in test/FileFormats/MOF/nlp.mof.json is updated

Documentation

  • The version fields are updated in docs/src/submodules/FileFormats/overview.md

Project.toml Outdated Show resolved Hide resolved
src/FileFormats/MOF/read.jl Outdated Show resolved Hide resolved
@odow odow changed the title [FileFormats.MOF] add VectorNonlinearFunction support [FileFormats.MOF] add MathOptFormat@1.6 support Sep 27, 2023
"""
function Model(;
print_compact::Bool = false,
warn::Bool = false,
differentiation_backend::MOI.Nonlinear.AbstractAutomaticDifferentiation = MOI.Nonlinear.SparseReverseMode(),
parse_as_nlpblock::Bool = true,
Copy link
Member Author

Choose a reason for hiding this comment

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

Once this PR is merged I'll open a separate PR to debate setting this to false by default.

@odow odow merged commit b07f71e into master Sep 27, 2023
16 checks passed
@odow odow deleted the od/mof-nonlinear branch September 27, 2023 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[FileFormats.MOF] add VectorNonlinearFunction support
1 participant