Techniques are described for generating setting parameters for an MRI sequence to be performed, wherein a conditional generative artificial neural network is used that has been trained as part of a conditional generative adversarial net. The techniques also include establishing a conditional generative artificial neural network. The conditioning of the conditional generative artificial neural network can be used to specify a specific medical application or question to obtain setting parameters for an MRI apparatus that are optimized with respect to said application or question.