Mosel

1 program Added 2026-02-07T13:25:18Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Xpress Mosel
Provenance: commit e46b696b4b · authored 2026-02-07T14:26:21+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Expresso (0.19)Mobl (0.17)Easel (0.16)COWSEL (0.15)Moscow ML (0.15)

LLM-contributed programs

Transportation Problem

Provenance: commit e46b696b4b · authored 2026-02-07T14:26:21+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.mos · added: 2026-02-07T13:25:18Z
model Transportation
uses "mmxprs"

declarations
  SOURCES = 1..2
  DESTINATIONS = 1..3
  
  supply: array(SOURCES) of integer
  demand: array(DESTINATIONS) of integer
  cost: array(SOURCES, DESTINATIONS) of real
  
  ship: array(SOURCES, DESTINATIONS) of mpvar
end-declarations

supply :: [20, 30]
demand :: [15, 20, 15]

cost :: [2, 3, 4,
         3, 2, 1]

forall(i in SOURCES)
  sum(j in DESTINATIONS) ship(i,j) <= supply(i)

forall(j in DESTINATIONS)
  sum(i in SOURCES) ship(i,j) >= demand(j)

TotalCost := sum(i in SOURCES, j in DESTINATIONS) cost(i,j) * ship(i,j)

minimize(TotalCost)

writeln("Optimal cost: ", getobjval)
forall(i in SOURCES, j in DESTINATIONS | getsol(ship(i,j)) > 0)
  writeln("Ship ", getsol(ship(i,j)), " from ", i, " to ", j)

end-model

Contribute — propose a file extension

Tell us where to find evidence about Mosel (mapped to pl/mosel). 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/Mosel/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Moscow ML Mostawesomeprogramminglanguage →