top of page


beautiful MODELS

Gravity is designed in a way you can write elegant, compact models.

Example 2. Power Systems Optimization

Below is the Second-Order Cone Relaxation of the AC Optimal Power Flow Problem.

The mathematical formulation can be found here

Click Here To See The Source Code

Implementation in Gravity

bottom of page