Implementation in an FPGA of an Optimization Algorithm to Maximize the Productivity of a MEC