After struggling with constrOptim(), I broke down and loaded my first pkg this season. lpSolve is *so much* easier, and handles equality and int constraints. It was wild to revisit linear programming after many years.
Code on GH: github.com/ataustin/adv...
#RStats
After struggling with constrOptim(), I broke down and loaded my first pkg this season. lpSolve is *so much* easier, and handles equality and int constraints. It was wild to revisit linear programming after many years.
Code on GH: github.com/ataustin/adv...
#RStats
I used lpSolve (cran.r-project.org/web/packages...) to solve this #RStats #IntegerLinearProgramming
I used lpSolve (cran.r-project.org/web/packages...) to solve this #RStats #IntegerLinearProgramming
I just completed "Factory" - Day 10 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/10
I just completed "Factory" - Day 10 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/10
www.entrepreneursjoint.com/or-tools-and...
For part 2 I used lpSolve but I suspect could just use lm() with a bit of care in the few cases with multiple solutions.
For part 2 I used lpSolve but I suspect could just use lm() with a bit of care in the few cases with multiple solutions.