Automatic History Matching to Determine Relative Permeability