GAMS

1 program Added 2025-11-07T13:11:56Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: General Algebraic Modeling System
Provenance: commit ddf8c7f209 · authored 2025-11-07T14:11:56+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

6 sources · pl_id: pl/gams
LLM (this repo) · 1PldbLinguistWikipediaHyperpolyglotWikidata · Q646446

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Designed byGAMS Development Corporation
LicenseProprietary
Homepagehttps://www.gams.com

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.gmslinguistprimary74.2K files

Related languages

CSMP (0.23)LiE (0.22)kOS (0.21)Markov algorithm (0.20)GLIM (0.20)

LLM-contributed programs

The Transportation Problem

Provenance: commit ddf8c7f209 · authored 2025-11-07T14:11:56+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.gms · added: 2025-11-07T13:11:56Z
$title  a transportation model

$ontext

  This model finds a least cost shipping schedule that meets
  requirements at markets and supplies at factories.


Dantzig, G B, Chapter 3.3. In Linear Programming and Extensions.
Princeton University Press, Princeton, New Jersey, 1963.

This formulation is described in detail in:
Rosenthal, R E, Chapter 2: A GAMS Tutorial. In GAMS: A User's Guide.
The Scientific Press, Redwood City, California, 1988.

The line numbers will not match those in the book because of these
comments.

$offtext


  sets
       i   canning plants   / seattle, san-diego /
       j   markets          / new-york, chicago, topeka / ;

  parameters

       a(i)  capacity of plant i in cases
         /    seattle     350
              san-diego   600  /

       b(j)  demand at market j in cases
         /    new-york    325
              chicago     300
              topeka      275  / ;

table d(i,j)  distance in thousands of miles
                  new-york       chicago      topeka
    seattle          2.5           1.7          1.8
    san-diego        2.5           1.8          1.4  ;

scalar f  freight in dollars per case per thousand miles  /90/ ;

parameter c(i,j)  transport cost in thousands of dollars per case ;

          c(i,j) = f * d(i,j) / 1000 ;

variables
       x(i,j)  shipment quantities in cases
       z       total transportation costs in thousands of dollars ;

positive variable x ;

equations
       cost        define objective function
       supply(i)   observe supply limit at plant i
       demand(j)   satisfy demand at market j ;

cost ..        z  =e=  sum((i,j), c(i,j)*x(i,j)) ;

supply(i) ..   sum(j, x(i,j))  =l=  a(i) ;

demand(j) ..   sum(i, x(i,j))  =g=  b(j) ;

model transport /all/ ;

solve transport using lp minimizing z ;

display x.l, x.m ;

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about GAMS (mapped to pl/gams). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/GAMS/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Gammaplex Gaot++ →