Skip to content
forked from MadNLP/MadNLP.jl

A solver for nonlinear programming

License

Notifications You must be signed in to change notification settings

zavalab/MadNLP.jl

 
 

Repository files navigation

logo

A nonlinear programming solver based on the filter line-search interior point method (as in Ipopt) that can handle/exploit diverse classes of data structures, either on host or device memories.


License Documentation Build Status Coverage DOI
License: MIT docs-stable docs-dev build-gh codecov doi

Quickstart

The following example shows how to solve the HS15 problem with JuMP and MadNLP:

using JuMP, MadNLP
model = Model()
@variable(model, x1 <= 0.5)
@variable(model, x2)
@objective(model, Min, 100.0 * (x2 - x1^2)^2 + (1.0 - x1)^2)
@constraint(model, x1 * x2 >= 1.0)
@constraint(model, x1 + x2^2 >= 0.0)
JuMP.set_optimizer(model, MadNLP.Optimizer)
JuMP.set_optimizer_attribute(model, "max_iter", 100)
JuMP.set_optimizer_attribute(model, "print_level", MadNLP.INFO)
optimize!(model)

Installation

MadNLP can be installed directly via the Julia package manager:

pkg> add MadNLP

Furthermore, MadNLP comes with several extensions:

  • MadNLPGPU: import GPU-accelerated linear solvers in MadNLP
  • MadNLPHSL: import the HSL linear solvers in MadNLP
  • MadNLPPardiso: import the Pardiso linear solver in MadNLP

Citing MadNLP.jl

If you use MadNLP.jl in your research, we would greatly appreciate your citing it.

@article{shin2024accelerating,
  title     = {Accelerating optimal power flow with {GPU}s: {SIMD} abstraction of nonlinear programs and condensed-space interior-point methods},
  author    = {Shin, Sungho and Anitescu, Mihai and Pacaud, Fran{\c{c}}ois},
  journal   = {Electric Power Systems Research},
  volume    = {236},
  pages     = {110651},
  year      = {2024},
  publisher = {Elsevier}
}

@article{shin2021graph,
  title     = {Graph-based modeling and decomposition of energy infrastructures},
  author    = {Shin, Sungho and Coffrin, Carleton and Sundar, Kaarthik and Zavala, Victor M},
  journal   = {IFAC-PapersOnLine},
  volume    = {54},
  number    = {3},
  pages     = {693--698},
  year      = {2021},
  publisher = {Elsevier}
}

Supporting MadNLP.jl

About

A solver for nonlinear programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 99.8%
  • C 0.2%