DOBSS model code optimization