Navigation

  • index
  • next |
  • AMPL API 2.0.4-0 documentation »

Table Of Contents

  • AMPL C++ API
    • Contents

Next topic

Introduction

This Page

  • Show Source

Quick search

AMPL C++ API¶

Contents¶

  • Introduction
    • What is AMPL API?
    • Who can use AMPL API
    • System requirements
    • About this manual
  • Getting started
    • Installation
    • Initial test
    • Development
    • Deployment
  • Class structure
    • AMPL class
    • Modelling entities classes
    • Relation between entities and data
    • Note on variables suffixes
  • C++ quick start
    • Complete listing
    • Needed headers and AMPL environment creation
    • Load a model from file
    • Solve a problem
    • Get an AMPL entity in the programming environment (get objective value)
    • Modify model data (assign values to parameters)
    • Get numeric values from variables
    • Get arbitrary values via ampl expressions
    • Delete the AMPL object to free the resources
  • C++ API reference
    • AMPL classes
    • Algebraic entities classes
    • Exceptions
  • C++ API examples
    • Example 1: First steps
    • Example 2: Get and set AMPL options
    • Example 3: Use AMPL asynchronously
    • Example 4: Get and set data through DataFrames
    • Example 5: Operate with multidimensional data
    • Example 6: Assign all data to a model and solve it
    • Example 7: Build an efficient frontier
    • Example 8: Simple heuristic

Navigation

  • index
  • next |
  • AMPL API 2.0.4-0 documentation »
© Copyright 2013-2021, AMPL Inc. Created using Sphinx 1.7.6.