New objective function weighted by modality pair