A grant rationing model for a health care system