Source code for discrete_optimization.generic_tasks_tools.solvers.cp.base.objectives.makespan

#  Copyright (c) 2026 AIRBUS and its affiliates.
#  This source code is licensed under the MIT license found in the
#  LICENSE file in the root directory of this source tree.
from discrete_optimization.generic_tasks_tools.solvers.cp.base.objectives.objective_modeler import (
    ObjectiveModelerCp,
)
from discrete_optimization.generic_tasks_tools.solvers.cp.base.typing import LinearExpr


[docs] class MakespanModelerCp(ObjectiveModelerCp):
[docs] def get_objective_expr(self) -> LinearExpr: return self.solver.get_global_makespan_variable()