Math::Optimization
Math::Optimization
Raku package for mathematical optimization algorithms.
Installation
Make sure the Raku package "COIN-OR", [AAp1], is installed.
Install from Zef ecosystem:
zef install Math::OptimizationFrom GitHub:
zef install https://github.com/antononcube/Raku-Math-Optimization.gitUsage examples
linear-programming
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].)
References
[AAp1] Anton Antonov, COIN-OR, Raku package, (2026), GitHub/antononcube.
[AAp2] Anton Antonov, Text::CodeProcessing, Raku package, (2026), GitHub/antononcube.