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 C# API
  • Introduction
  • Initial Setup
  • Quick Start
  • Deployment Methods
  • Class structure
  • C# API Reference
    • C# API Examples
  • AMPL APIs
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
  • Introduction
  • Initial Setup
  • Quick Start
  • Deployment Methods
  • Class structure
  • C# API Reference
  • C# API Examples
  • AMPL APIs
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
Ctrl+K

Section Navigation

  • AMPL
  • DataFrame
  • Environment
  • Tuple
  • Variant
  • EntityBase
  • EntityMap
  • Instance
  • Constraint
  • ConstraintInstance
  • Objective
  • ObjectiveInstance
  • Parameter
  • Set
  • SetInstance
  • Variable
  • VariableInstance
  • AMPLException
AMPL Python Ecosystem AMPL Python Ecosystem AMPL Model Colaboratory
Hands-On Mathematical Optimization with AMPL in Python

Follow us on Twitter and LinkedIn!

  • C# API Reference
  • Instance

Instance#

class ampl.Instance : global.SystemIDisposable#

Represent an instance of a modelling entity.

Subclassed by ampl.ConstraintInstance, ampl.ObjectiveInstance, ampl.SetInstance, ampl.TableInstance, ampl.VariableInstance

Properties

Entities.EntityBase Entity { get; set; }#

Gets the parent entity.

previous

EntityMap

next

Constraint

© Copyright 2013-2025, AMPL Optimization Inc.