Skip to main content
Ctrl+K
    AMPL Resources
  • AMPL.com
  • AMPL Support Forum
  • AMPL Download Portal
  • AMPL Development Resources
  • Amplbot
  • AMPL + Python 🐍
  • AMPL on Streamlit Cloud
  • Hands-On Optimization in Python
  • AMPL Model Colaboratory
  • amplpy: Python API
  • More Resources
  • AMPL Books
  • MP: Solver Interface Framework
  • AMPL’s Open-Source Projects
  • Licenses & Pricing
  • AMPL & Solvers pricing
  • Free Academic Licenses
  • Free AMPL Community Edition
  • Social Media
  • LinkedIn
AMPL API 2.1 (amplpy-0.16.0) documentation - Home AMPL API 2.1 (amplpy-0.16.0) documentation - Home Python API
  • Introduction
  • Initial Setup
  • Quick start
  • Class structure
  • API Reference
  • Examples
  • GitHub
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
  • Amplbot
  • Introduction
  • Initial Setup
  • Quick start
  • Class structure
  • API Reference
  • Examples
  • GitHub
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
  • Amplbot
Ctrl+K

Section Navigation

  • AMPL
  • DataFrame
  • Environment
  • ErrorHandler
  • OutputHandler
  • Entity
  • Variable
  • Constraint
  • Objective
  • Set
  • Parameter
  • AMPLException
AMPL Python Ecosystem AMPL Python Ecosystem AMPL Model Colaboratory
Hands-On Mathematical Optimization with AMPL in Python

Follow us on LinkedIn!

  • API Reference

API Reference#

AMPL classes#

All functions and classes provided by the AMPL API reside in namespace amplpy. For brevity the namespace will be omitted.

  • AMPL
    • AMPL
    • EntityMap
  • DataFrame
    • DataFrame
  • Environment
    • Environment
  • ErrorHandler
    • ErrorHandler
  • OutputHandler
    • OutputHandler
    • Kind

Algebraic entities classes#

  • Entity
    • Entity
  • Variable
    • Variable
  • Constraint
    • Constraint
  • Objective
    • Objective
  • Set
    • Set
  • Parameter
    • Parameter

Exceptions#

  • AMPLException
    • AMPLException

previous

Class structure

next

AMPL

On this page
  • AMPL classes
  • Algebraic entities classes
  • Exceptions

© Copyright 2017-2026, AMPL Optimization Inc.