Many voting rules are based on minimization or maximization principle. Likewise, in the field of logic-based knowledge representation and reasoning, many belief change or inconsistency handling operators make use of minimization. Surprisingly, minimization has not played a major role in the field of judgment aggregation, in spite of its proximity to voting theory and logic-based knowledge representation and reasoning. Here we make a first step in the study of judgment aggregation rules based on minimization, and propose a classification of judgment aggregation rules based on some minimization or maximization principle. We distinguish four families. The rules of the first family compute the collective judgment for each issue, using proposition-wise majoritarian aggregation, and then restore consistency using some minimal change principle. The rules of the second family proceed in a similar way but take into account the strength of the majority on each issue. Those of the third family consist in restoring the consistency of the majoritarian judgment by removing or changing some individual judgments in a minimal way. Finally, those of the fourth family are based on some predefined distance between judgment sets, and look for a consistent collective judgment minimizing the overall distance to the individual judgment sets. For each family we propose a few typical rules. While most of these rules are new, a few ones correspond to rules * A preliminary version of this paper appeared in the