A method of computer-based radiotherapy treatment planning, comprising a. Obtaining at least one proposed dose map to be used in treatment planning for a patient, said at least one dose map specifying at least one desired dose level for at least a first region of the patient in accordance with a set of clinical goals comprising at least one clinical goal for the patient, said set of clinical goals comprising at least one of the following: • requirements that a specified minimum or maximum dose should be delivered to at least or at most a specified fraction or volume of a Region of Interest, • requirements that a specified minimum or maximum fraction or volume of an ROI should receive at least or at most a specified dose, • requirements on the minimum, maximum, or average dose to an ROI, requirements on how well the dose conforms to the target, • requirements on the homogeneity in the target, • requirements on how the dose falls off with the distance to the target, • requirements that a certain point in the patient should receive a specified dose, and • requirements on biological measures such as the tumour control probability or normal tissue complication probability in an ROI. b. optimizing a treatment plan based on the dose map, to obtain an optimized dose distribution, c. comparing the optimized dose distribution of the treatment plan to the at least one clinical goal, and if the optimized dose distribution does not fulfil the at least one clinical goal, continuing with step d. d. based on the result of the comparison, adjusting the dose map in at least one region where the optimized dose distribution does not meet the at least one clinical goal, e. repeating steps b. to d. for the adjusted dose map, f. when it is determined in step c. that the optimized dose distribution fulfils the at least one clinical goal, accepting the treatment plan. a. Obtaining at least one proposed dose map to be used in treatment planning for a patient, said at least one dose map specifying at least one desired dose level for at least a first region of the patient in accordance with a set of clinical goals comprising at least one clinical goal for the patient, said set of clinical goals comprising at least one of the following: • requirements that a specified minimum or maximum dose should be delivered to at least or at most a specified fraction or volume of a Region of Interest, • requirements that a specified minimum or maximum fraction or volume of an ROI should receive at least or at most a specified dose, • requirements on the minimum, maximum, or average dose to an ROI, requirements on how well the dose conforms to the target, • requirements on the homogeneity in the target, • requirements on how the dose falls off with the distance to the target, • requirements that a certain point in the patient should receive a specified dose, and • requirements on biological measures such as the tumour control probability or normal tissue complication probability in an ROI. • requirements that a specified minimum or maximum dose should be delivered to at least or at most a specified fraction or volume of a Region of Interest, • requirements that a specified minimum or maximum fraction or volume of an ROI should receive at least or at most a specified dose, • requirements on the minimum, maximum, or average dose to an ROI, requirements on how well the dose conforms to the target, • requirements on the homogeneity in the target, • requirements on how the dose falls off with the distance to the target, • requirements that a certain point in the patient should receive a specified dose, and • requirements on biological measures such as the tumour control probability or normal tissue complication probability in an ROI. b. optimizing a treatment plan based on the dose map, to obtain an optimized dose distribution, c. comparing the optimized dose distribution of the treatment plan to the at least one clinical goal, and if the optimized dose distribution does not fulfil the at least one clinical goal, continuing with step d. d. based on the result of the comparison, adjusting the dose map in at least one region where the optimized dose distribution does not meet the at least one clinical goal, e. repeating steps b. to d. for the adjusted dose map, f. when it is determined in step c. that the optimized dose distribution fulfils the at least one clinical goal, accepting the treatment plan.