AMPL

AMPL

AMPL, kurz für „A Mathematical Programming Language“, ist eine mathematische Modellierungssprache, die von Robert Fourer, David Gay und Brian Kernighan an den Bell Laboratories entwickelt wurde. Sie erlaubt die Formulierung mathematischer Modelle in abstrakter, der algebraischen Notation naher Form. Mit AMPL können viele Optimierungsprobleme formuliert werden. Da AMPL diese Probleme nicht direkt löst, sondern in eine Form übersetzt, die ein Optimierungsalgorithmus versteht, benötigt AMPL passende Optimierer, um funktionieren zu können. Genügend schwierige Probleme wie globale Optima, nichtlineare Mixed-Integer-Probleme usw. brauchen daher spezielle Löser.

Inhaltsverzeichnis

Beispiel

Es ist das folgende mathematische Modell gegeben:

Variablen:
  • x1: Anzahl von Produkt 1
  • x2: Anzahl von Produkt 2
Zielfunktion:
  • Maximiere z = 400x1 + 50x2
Nebenbedingungen:
  • 0 \leq x_1 \leq 70 (Bereich von x1)
  • 0 \leq x_2 \leq 500 (Bereich von x2)
  • 25 x_1 + 10 x_2 \leq 5000 (Beschränkung für Ressource 1)
  • 100 x_1 + 20 x_2 \leq 8000 (Beschränkung für Ressource 2)

Eine äquivalente Formulierung in AMPL könnte so aussehen:

# Variablen:
var x1 integer;
var x2 integer;

# Zielfunktion:
maximize z: 400*x1 + 50*x2;

# Nebenbedingungen:
subject to Bereich_x1: 0 <= x1 <= 70;
subject to Bereich_x2: 0 <= x2 <= 500;
subject to Ressource1:  25*x1 + 10*x2 <= 5000;
subject to Ressource2: 100*x1 + 20*x2 <= 8000;

#wenn man dieses Problem loesen will
#braucht man nur noch 
solve;
#der Maximierer wird mit 
display x1, x2; 
#angezeigt

Literatur

Siehe auch

  • AIMMS
  • GAMS
  • GLPK - Open Source-Alternative zum proprietären AMPL
  • MPL
  • OPL Studio

Weblinks


Wikimedia Foundation.

Игры ⚽ Нужен реферат?

Schlagen Sie auch in anderen Wörterbüchern nach:

  • AMPL — международная научная конференция. AMPL язык программирования высокого уровня …   Википедия

  • AMPL (programming language) — AMPL, an acronym for A Mathematical Programming Language , is a high level programming language, developed at Bell Laboratories, for describing and solving high complexity problems for large scale mathematical computation (i.e. large scale… …   Wikipedia

  • AMPL (язык программирования) — У этого термина существуют и другие значения, см. AMPL. AMPL Автор(ы): Bell Laboratories AMPL (аббревиатура от англ. A Modeling Language for Mathematical Programming  язык моделирования для математического программирования)  язык… …   Википедия

  • AMPL (конференция) — У этого термина существуют и другие значения, см. AMPL. AMPL (аббревиатура от англ. Atomic and Molecular Pulsed Lasers Импульсные лазеры на переходах атомов и молекул) международная научная конференция по импульсным лазерам и их применениям …   Википедия

  • ampl. — Abbreviation for L. amplus, large …   Medical dictionary

  • ampl — large [Lat. amplus] …   Medical dictionary

  • ampl — abbr. amplifier amplitude …   Dictionary of English abbreviation

  • AMPL — ampliavit, amplissimo, amplissimus, amplius …   Abbreviations in Latin Inscriptions

  • ampl. — amplus, amplificatus широкий, расширительный …   Latin abbreviations in biology

  • AMPL — abbr. AMPAL AMER ISRAEL CORP NASDAQ …   Dictionary of abbreviations

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”