For your info, the following is a portion of a recent Canadian Court Martial decision which sets out the key purposes and principles in determining an appropriate sentence. You'll note there is one purpose with four objectives and additional principles:
[2] It is now incumbent upon me to determine what shall be an appropriate, fair, and just sentence that will maintain discipline. In the context of sentencing an offender under the Code of Service Discipline, the Court Martial Appeal Court has expressly stated that a court martial should guide itself with the appropriate sentencing purposes, principles, and objectives, including those enunciated in sections 718.1 and 718.2 of the Criminal Code. The fundamental purpose of sentencing at court martial is to contribute to the respect of the law and the maintenance of military discipline by imposing punishments that meet one or more of the following objectives: the protection of the public and it includes the Canadian Forces; the denunciation of the unlawful conduct; the deterrent effect of the punishment, not only on the offender, but also upon others who might be tempted to commit such offences; and the reformation and rehabilitation of the offender.
[3] The sentence must also take into consideration the following principles: the sentence must be commensurate with the gravity of the offence, the previous character of the offender and his or her degree of responsibility; and the sentence should be similar to sentences imposed on similar offenders for similar offences committed in similar circumstances. A court must also respect the principle that an offender should not be deprived of liberty if less restrictive punishments may be appropriate in the circumstances. In other words, punishments in the form of incarceration should be used as a last resort. Finally, the sentence should be increased or reduced to account for any relevant aggravating or mitigating circumstances relating to the offence or the offender. However, the court must act with restraint in determining sentence in imposing such punishment that should be the minimum necessary intervention to maintain discipline. It must be emphasized that sentencing in Canada is an individualized process.