Skip to content
Mathematical Modeling for Optimization and Machine Learning
C++ CMake Other
Branch: master
Clone or download
Latest commit 70da86c Aug 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake fixed MPI Jul 14, 2019
data_sets adding more tests in travis Mar 8, 2019
include/gravity fixing travis cache Aug 4, 2019
media adding back media folder Nov 21, 2018
solvers some updates on lambda formulation Aug 2, 2019
src fixed sum indexing for print Aug 3, 2019
.codecov.yml improving unit tests for constants 2 Dec 28, 2018
.travis.yml fixing travis debug mode acopf Aug 5, 2019
CMakeLists.txt openmpi copmiles, runs in Xcode and on terminale Jul 11, 2019 starting to support Complex numbers in Gravity, still need to update … Nov 21, 2018 Update Nov 21, 2018

License Build Status Code Coverage download

Chat on Slack

Mathematical Modeling for Optimization and Machine Learning

Created by Hassan Hijazi.


Gravity is licensed under the BSD 3-Clause License. Please see the LICENSE file for details.

** Contributors **

Hassan Hijazi, Los Alamos National Laboratory, The Australian National University |

Guanglei Wang, The Australian National University |

Ksenia Bestuzheva, The Australian National University |

Carleton Coffrin, Los Alamos National Laboratory|

See for instructions on compiling Gravity

After running make, the Gravity executables can be found under Gravity/bin/

Getting Started

First, you will need to install an IDE, I recommend to choose among the following:

| | |

The model below was implemented in Xcode:


Some Numerical Results:

Performance Profile on ACOPF

The first figure below is a performance profile illustrating percentage of instances solved as a function of time. The figure compares Gravity, JuMP and AMPL's NL interface (used by AMPL and Pyomo) on all standard instances found in the PGLIB benchmark library.

Performance Profile on ACOPF

The figure below compares model build time between Gravity and JuMP on the PGLIB benchmarks.

Model Build Time on ACOPF

Performance Profile on Inverse Ising Model

Performance Profile on Inverse Ising

Click here for more details.

You can’t perform that action at this time.