diff --git a/10/ex2.py b/10/ex2.py index e17e9f9..0bdbd87 100644 --- a/10/ex2.py +++ b/10/ex2.py @@ -1,4 +1,13 @@ from pulp import LpProblem, LpVariable, LpMinimize, lpSum, PULP_CBC_CMD +""" +ok to clarify the solution here: +modelling this as ilp -> +variable for each button representing how many times it is pressed - minimize this! +constraints for each joltage thingy? idk - (buttons that increment it * number of times pressed) *must equal goal so it matches expected value*! +if button doesnt increment 0 * wtv is still 0 so doesnt matter +boom done city +""" + def solve(goal, buttons): # hence another thing i havent done in years prob = LpProblem("Operation_Dumbass_Elves", LpMinimize)