In this paper, we propose a multilevel approach based on our previously developed hybrid optimizer to solve double-diffusive fluidflow problems in the presence of magnetic body forces. The problem consists in a square cavity subjected to a thermosolutal flow where the patterns of the isoconcentration lines are prescribed. Thus, the optimization problem is formulated in terms of the magnetic bou...