Techniques for generating a radiotherapy treatment plan parameter are provided. The techniques include receiving radiotherapy treatment plan information; processing the radiotherapy treatment plan information to estimate one or more radiotherapy treatment plan parameters based on a process that depends on the output of a subprocess that estimates a derivative of a dose calculation; and generating a radiotherapy treatment plan using the estimated one or more radiotherapy treatment plan parameters.