Raku package for mathematical optimization algorithms.
Make sure the Raku package "COIN-OR", [AAp1], is installed.
Install from Zef ecosystem:
zef install Math::Optimization
From GitHub:
zef install https://github.com/antononcube/Raku-Math-Optimization.git
Minimize x + y, subject to constraint x + 2 * y ≥ 3 and lower bounds 2 ≥ x ≥ -1, 1 ≥ y ≥ -1:
linear-programming([1, 1], [(1, 2),], [3,], [[-1, 2], [-1, 1]])# [1 1]
See more examples in the Markdown document "LinearProgramming.md".
(Obtained by executing "LinearProgramming-work.md" by the script file-code-chunks-eval
provided by the package "Text::CodeProcessing", [AAp2].)
[AAp1] Anton Antonov, COIN-OR, Raku package, (2026), GitHub/antononcube.
[AAp2] Anton Antonov, Text::CodeProcessing, Raku package, (2026), GitHub/antononcube.