Create optimRefVal.m