AmplNLReader
Julia AMPL Models Conforming to NLPModels.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
Keywords from Contributors
Repository
Julia AMPL Models Conforming to NLPModels.jl
Basic Info
Statistics
- Stars: 21
- Watchers: 3
- Forks: 10
- Open Issues: 5
- Releases: 20
Topics
Metadata Files
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 
Development version
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
- R. Fourer, D. M. Gay, and B. W. Kernighan, AMPL: A Mathematical Programming Language, Management Science 36, pp. 519-554, 1990.
- R. Fourer, D. M. Gay, and B. W. Kernighan, AMPL: A Modeling Language for Mathematical Programming, Duxbury Press / Brooks/Cole Publishing Company, 2003.
- D. Orban, The Lightning AMPL Tutorial. A Guide for Nonlinear Optimization Users, GERAD Technical Report G-2009-66, 2009.
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
- Website: https://juliasmoothoptimizers.github.io
- Repositories: 63
- Profile: https://github.com/JuliaSmoothOptimizers
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
Top Committers
| Name | 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
Pull Request Labels
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
- Documentation: https://docs.juliahub.com/General/AmplNLReader/stable/
- License: MPL-2.0
-
Latest release: 0.12.0
published over 1 year ago
Rankings
Dependencies
- julia-actions/setup-julia latest composite
- actions/checkout v2 composite
- julia-actions/setup-julia latest composite
- JuliaRegistries/TagBot v1 composite
- 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
- actions/checkout v2 composite
- peter-evans/create-pull-request v3 composite