AmplNLReader

Julia AMPL Models Conforming to NLPModels.jl

https://github.com/juliasmoothoptimizers/amplnlreader.jl

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary

Keywords

ampl julia julia-language nlpmodels optimization

Keywords from Contributors

krylov linear-systems nonlinear-programming ipopt surrogate fluxes pdes standardization bridge unconstrained-optimization
Last synced: 7 months ago · JSON representation ·

Repository

Julia AMPL Models Conforming to NLPModels.jl

Basic Info
  • Host: GitHub
  • Owner: JuliaSmoothOptimizers
  • License: other
  • Language: Julia
  • Default Branch: main
  • Homepage:
  • Size: 1.09 MB
Statistics
  • Stars: 21
  • Watchers: 3
  • Forks: 10
  • Open Issues: 5
  • Releases: 20
Topics
ampl julia julia-language nlpmodels optimization
Created almost 12 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation Zenodo

README.md

AmplNLReader.jl: A Julia interface to AMPL

How to Cite

If you use AmplNLReader.jl in your work, please cite using the format given in CITATION.bib.

Stable release Github release

  • Documentation: Documentation

Development version

  • Documentation: Documentation
  • Tests:
    • CI (Linux, macOS, Windows)
    • Build Status (FreeBSD)
    • codecov

How to Install

At the Julia prompt,

JULIA pkg> add AmplNLReader

Testing

JULIA pkg> test AmplNLReader

Creating a Model

For an introduction to the AMPL modeling language, see

Suppose you have an AMPL model represented by the model and data files mymodel.mod and mymodel.dat. Decode this model as a so-called nl file using

ampl -ogmymodel mymodel.mod mymodel.dat

For example:

````Julia julia> using AmplNLReader

julia> hs33 = AmplModel("hs033.nl") Minimization problem hs033.nl nvar = 3, ncon = 2 (0 linear)

julia> print(hs33) Minimization problem hs033.nl nvar = 3, ncon = 2 (0 linear) lvar = 1x3 Array{Float64,2}: 0.0 0.0 0.0 uvar = 1x3 Array{Float64,2}: Inf Inf 5.0 lcon = 1x2 Array{Float64,2}: -Inf 4.0 ucon = 1x2 Array{Float64,2}: 0.0 Inf x0 = 1x3 Array{Float64,2}: 0.0 0.0 3.0 y0 = 1x2 Array{Float64,2}: -0.0 -0.0 ````

There is support for holding multiple models in memory simultaneously. This should be transparent to the user.

Optimization Problems

AmplNLReader.jl currently focuses on continuous problems conforming to NLPModels.jl.

AmplModel objects support all methods associated to NLPModel objects. Please see the NLPModels.jl documentation for more information. The following table lists extra methods associated to an AmplModel. See Hooking your Solver to AMPL for background.

Method | Notes --------------------------------|-------------------------------- write_sol(nlp, msg, x, y) | Write primal and dual solutions to file

Missing Methods

  • methods for LPs (sparse cost, sparse constraint matrix)
  • methods to check optimality conditions.

Owner

  • Name: JuliaSmoothOptimizers
  • Login: JuliaSmoothOptimizers
  • Kind: organization
  • Location: DOI: 10.5281/zenodo.2655082

Infrastructure and Solvers for Continuous Optimization in Julia

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: 'AmplNLReader.jl: A Julia interface to AMPL'
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Dominique
    family-names: Orban
    orcid: 'https://orcid.org/0000-0002-8017-7687'
    affiliation: 'GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal, QC, Canada'
    email: dominique.orban@gerad.ca
  - given-names: Abel
    family-names: Soares Siqueira
    email: abel.s.siqueira@gmail.com
    affiliation: 'Netherlands eScience Center, Amsterdam, NL'
    orcid: 'https://orcid.org/0000-0003-4451-281X'
  - given-names: contributors
identifiers:
  - type: doi
    value: 10.5281/zenodo.3700941
    description: Zenodo
repository-code: 'https://github.com/JuliaSmoothOptimizers/AmplNLReader.jl'
keywords:
  - AMPL
  - Optimization
  - Nonlinear programming
  - Julia
license: MPL-2.0
version: 0.11.2
date-released: '2022-01-07'

GitHub Events

Total
  • Watch event: 3
  • Delete event: 3
  • Push event: 10
  • Pull request event: 6
  • Create event: 3
Last Year
  • Watch event: 3
  • Delete event: 3
  • Push event: 10
  • Pull request event: 6
  • Create event: 3

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 299
  • Total Committers: 10
  • Avg Commits per committer: 29.9
  • Development Distribution Score (DDS): 0.227
Past Year
  • Commits: 14
  • Committers: 5
  • Avg Commits per committer: 2.8
  • Development Distribution Score (DDS): 0.571
Top Committers
Name Email Commits
Dominique Orban d****n@g****m 231
Abel Soares Siqueira a****a@g****m 32
tmigot t****t@g****m 16
Miles Lubin m****n@g****m 5
Alexis Montoison 3****n 5
github-actions[bot] 4****] 4
Monssaf Toukal t****f@g****m 2
François Pacaud f****c 2
Julia TagBot 5****t 1
JSOBot 6****t 1

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 21
  • Total pull requests: 107
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 22 days
  • Total issue authors: 10
  • Total pull request authors: 9
  • Average comments per issue: 6.52
  • Average comments per pull request: 1.79
  • Merged pull requests: 87
  • Bot issues: 0
  • Bot pull requests: 11
Past Year
  • Issues: 1
  • Pull requests: 13
  • Average time to close issues: 2 days
  • Average time to close pull requests: 2 days
  • Issue authors: 1
  • Pull request authors: 5
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.23
  • Merged pull requests: 12
  • Bot issues: 0
  • Bot pull requests: 3
Top Authors
Issue Authors
  • dpo (6)
  • abelsiqueira (3)
  • tmigot (2)
  • mlubin (2)
  • amontoison (2)
  • ohinder (1)
  • scotthanton (1)
  • attobot (1)
  • PEPERSO (1)
  • JuliaTagBot (1)
Pull Request Authors
  • dpo (56)
  • tmigot (28)
  • github-actions[bot] (17)
  • abelsiqueira (13)
  • amontoison (8)
  • frapac (4)
  • JSOBot (3)
  • vtjnash (1)
  • JuliaTagBot (1)
Top Labels
Issue Labels
enhancement (4) bug (2) help wanted (2) linux (1) performance (1)
Pull Request Labels
formatting (10) automated pr (10) no changelog (10) work in progress (4) enhancement (4) ready to go (3) do not merge (2) bug (2) tests (2) build system (1) interop (1)

Packages

  • Total packages: 1
  • Total downloads:
    • julia 10 total
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 19
juliahub.com: AmplNLReader

Julia AMPL Models Conforming to NLPModels.jl

  • Versions: 19
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 10 Total
Rankings
Dependent repos count: 9.9%
Forks count: 13.7%
Average: 17.9%
Dependent packages count: 23.0%
Stargazers count: 25.0%
Last synced: 8 months ago

Dependencies

.github/workflows/CompatHelper.yml actions
  • julia-actions/setup-julia latest composite
.github/workflows/Documentation.yml actions
  • actions/checkout v2 composite
  • julia-actions/setup-julia latest composite
.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite
.github/workflows/ci.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • codecov/codecov-action v1 composite
  • julia-actions/julia-buildpkg v1 composite
  • julia-actions/julia-processcoverage v1 composite
  • julia-actions/julia-runtest v1 composite
  • julia-actions/setup-julia v1 composite
.github/workflows/format_pr.yml actions
  • actions/checkout v2 composite
  • peter-evans/create-pull-request v3 composite