mip_rule function

Create a rule used by mip