Allow to set weight by task dimension to TargetObjectiveTask.