A dialysis machine is configured to perform treatment sessions of renal replacement therapy. Prior to each treatment session for an individual patient, a machine controller in the dialysis machine obtains from a logic device a set of current control settings of the machine-related parameters to be applied in the treatment session. In generating the control settings, the logic device obtains (21B) a set of therapeutic targets comprising a target value that represents part of a desired status of the patient after the treatment session, in terms of one or more physiological parameters for the patient. The logic device also obtains (21A) status data that represents the current status of the patient prior to the treatment session, and computes (22) the set of current control settings of the machine-related parameters, as a function of the set of therapeutic targets and the status data and at least partly based on a predictive model, which estimates the physiological response of the patient to the machine-related parameters during the treatment session. Thereby, the dialysis machine may be inherently controlled to achieve the desired status at the end of the treatment session, based on automatically computed control settings, which reduces the need for the patient to strictly adhere to a predetermined treatment plan, and for the caregiver to manually estimate control settings.