From d74e17e7c1af9fdf99700b1b21bae6b95ba5241a Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 18 Jun 2019 14:03:16 +0200 Subject: [PATCH 1/1] defaults values to lmm::System::variable_new --- src/kernel/lmm/maxmin.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kernel/lmm/maxmin.hpp b/src/kernel/lmm/maxmin.hpp index dab8763a4c..4e88bba2b8 100644 --- a/src/kernel/lmm/maxmin.hpp +++ b/src/kernel/lmm/maxmin.hpp @@ -397,11 +397,12 @@ public: /** * @brief Create a new Linear MaxMin variable * @param id Data associated to the variable (e.g.: a network communication) - * @param weight_value The weight of the variable (0.0 if not used) + * @param sharing_penalty The weight of the variable (0.0 if not used) * @param bound The maximum value of the variable (-1.0 if no maximum value) - * @param number_of_constraints The maximum number of constraint to associate to the variable + * @param number_of_constraints The maximum number of constraints to associate to the variable */ - Variable* variable_new(resource::Action* id, double weight_value, double bound, size_t number_of_constraints); + Variable* variable_new(resource::Action* id, double sharing_penalty, double bound = -1.0, + size_t number_of_constraints = 1); /** * @brief Free a variable -- 2.20.1