optimization _ minimize fencing.pdf