AI Waka
AI Waka
Mar 23, 2026 · Operations

Solving Nonlinear Programs with Piecewise‑Linear Approximation in Gurobi

This article explains how to transform separable nonlinear programming models into piecewise‑linear (PWL) approximations, use SOS‑type 2 constraints, and implement the whole workflow in Python with Gurobi, illustrating the method with a portfolio‑selection example and showing how breakpoint refinement improves solution accuracy.

GurobiOptimizationPython
0 likes · 15 min read
Solving Nonlinear Programs with Piecewise‑Linear Approximation in Gurobi