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/gamsWikipedia 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 by | GAMS Development Corporation |
|---|---|
| License | Proprietary |
| Homepage | https://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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.gms | linguist | primary | 74.2K files |
Related languages
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
$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.)