BeagleMIP Balancing Code