A heuristic algorithm for controlling the weight of tomamto packages This site has the Octave code of an algorithm to establish proper weight breaks of tomatoes in a new packing line in an agro-industry company.