Computer-implemented method of generating a peritoneal dialysis regimen for controlling the operation of a peritoneal dialysis treatment machine to meet a therapy target or therapy target range, comprising: - receiving a therapy target input, - receiving a patient characteristics input, - generating a plurality of peritoneal dialysis treatment regimens, characterized in that - each peritoneal dialysis regimen is defined by: > a succession of first cycles and second cycles, wherein • the first cycles are respectively defined by a first inflow volume and a first dwell time, and wherein • the second cycles are respectively defined by a second inflow volume and a second dwell time, > a number of first cycles and by a number of second cycles, the number of first cycles and/or the number of second cycles being variable and/or independent from each other among the plurality of generated peritoneal dialysis treatment regimens, and in that the method further comprises the following steps: - simulating a peritoneal dialysis treatment outcome for each of the plurality of dialysis treatment regimens considering the patient characteristics input to generate a simulated treatment outcome, and - making available a peritoneal dialysis treatment regimen to be applied for a specific treatment for selection based on the simulated treatment outcome that meets the therapy target input. - receiving a therapy target input, - receiving a patient characteristics input, - generating a plurality of peritoneal dialysis treatment regimens, characterized in that - each peritoneal dialysis regimen is defined by: > a succession of first cycles and second cycles, wherein • the first cycles are respectively defined by a first inflow volume and a first dwell time, and wherein • the second cycles are respectively defined by a second inflow volume and a second dwell time, > a number of first cycles and by a number of second cycles, the number of first cycles and/or the number of second cycles being variable and/or independent from each other among the plurality of generated peritoneal dialysis treatment regimens, > a succession of first cycles and second cycles, wherein • the first cycles are respectively defined by a first inflow volume and a first dwell time, and wherein • the second cycles are respectively defined by a second inflow volume and a second dwell time, • the first cycles are respectively defined by a first inflow volume and a first dwell time, and wherein • the second cycles are respectively defined by a second inflow volume and a second dwell time, > a number of first cycles and by a number of second cycles, the number of first cycles and/or the number of second cycles being variable and/or independent from each other among the plurality of generated peritoneal dialysis treatment regimens, - simulating a peritoneal dialysis treatment outcome for each of the plurality of dialysis treatment regimens considering the patient characteristics input to generate a simulated treatment outcome, and - making available a peritoneal dialysis treatment regimen to be applied for a specific treatment for selection based on the simulated treatment outcome that meets the therapy target input.