Adapt numerical records to fit (in)equality restrictions with