Skip to main content
Ctrl+K
    AMPL Resources
  • AMPL.com
  • AMPL Support Forum
  • AMPL Download Portal
  • AMPL Development Resources
  • AMPL + Python 🐍
  • Hands-On Optimization in Python
  • AMPL Model Colaboratory
  • AMPL on Streamlit Cloud
  • amplpy: Python API
  • Open Source Projects
  • rAMPL: R API
  • AMPL Plugins
  • AMPL GSL
  • amplpyfinance
  • Solver Callbacks
  • MP: Solver Interface Framework
  • Licenses & Pricing
  • AMPL & Solvers pricing
  • Free AMPL For Teaching
  • Free AMPL Community Edition
  • Social Media
  • LinkedIn
  • Twitter / X
AMPL API 2.3.13 documentation - Home AMPL API 2.3.13 documentation - Home MATLAB API
  • Introduction
  • Initial Setup
  • Quick Start
  • Class structure
  • MATLAB API Reference
  • MATLAB API Examples
  • AMPL APIs
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
  • Introduction
  • Initial Setup
  • Quick Start
  • Class structure
  • MATLAB API Reference
  • MATLAB API Examples
  • AMPL APIs
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
Ctrl+K
AMPL Python Ecosystem AMPL Python Ecosystem AMPL Model Colaboratory
Hands-On Mathematical Optimization with AMPL in Python

Follow us on Twitter and LinkedIn!

AMPL MATLAB API#

Contents#

  • Introduction
    • What are AMPL APIs?
    • Who can use AMPL APIs
    • System requirements
    • About this manual
  • Initial Setup
    • Installation
    • Initial test
    • Development
    • Deployment
  • Quick Start
    • Complete listing
    • Initialisation
    • AMPL Environment creation
    • Load a model from file
    • Solve a model
    • Get an AMPL entity in the programming environment (get objective value)
    • Modify model data (assign values to parameters)
    • Get numeric values from variables and other entities
    • Get arbitrary values via ampl expressions
    • Close the AMPL object to free the resources
  • Class structure
    • AMPL class
    • Modelling entities classes
    • Relation between entities and data
    • Note on variables suffixes
  • MATLAB API Reference
    • AMPL classes
    • Algebraic entities classes
  • MATLAB API Examples
    • Example 1: First steps
    • Example 2: Execute arbitrary statements
    • Example 3: Passing data
    • Example 4: Assign data to a model and solve it
    • Example 5: Compound sets
    • Example 6: Simple heuristic
    • Example 7: Efficient frontier

Indices and tables#

  • Index

  • Search Page

next

Introduction

On this page
  • Contents
  • Indices and tables

© Copyright 2013-2025, AMPL Optimization Inc.