Section 6 - Eg 1 - Walkway of Fixed Width Given Finite Material - Intro to NLP
That is, there is a space of given dimensions. Now, build a walkway around it such that the space (linear) between the empty-space-edge and the walkway is constant and using only the available material to build the walkway. Sounds like something we might have done in differential calculus class ages ago. But, what makes this one different is that the Objective function involves w*l = meaning - it's non-linear. He's good at solving optimization problems, but a very poor (undisciplined) coder. Doesn't think twice about sprinkling magic constants throughout the code :( !pip install pyomo !wget -N -q "https://ampl.com/dl/open/ipopt/ipopt-linux64.zip" !unzip -o -q ipopt-linux64 Solver = SolverFactory( 'ipopt', executable = '/content/ipopt') OK, the code nails it easily, and that's when (checking the width thing), I realized that this one can be done on the back of an envelope. And, then, I saw that it can't be - because he (they, maybe? Poler a...