#2686: in the constants optimizer the variable weight must be multiplied to the variable value even when variable weights are not updated by the constants optimizer