diff --git a/n3fit/src/n3fit/checks.py b/n3fit/src/n3fit/checks.py index b9d57cdb3080418fdaf7a4668d867bfebdb4aba0..1c4310df8e6bbe37d54bb23c8e87cc1822dc1d73 100644 --- a/n3fit/src/n3fit/checks.py +++ b/n3fit/src/n3fit/checks.py @@ -129,6 +129,8 @@ def check_lagrange_multipliers(parameters, key): multiplier = lagrange_dict.get("multiplier") if multiplier is not None and multiplier < 0: log.warning("The %s multiplier is below 0, it will produce a negative loss", key) + elif multiplier is not None and multiplier == 0: + log.warning("The %s multiplier is 0 so it won't contribute to the loss", key) threshold = lagrange_dict.get("threshold") if threshold is not None and not _is_floatable(threshold): raise CheckError(f"The {key}::threshold must be a number, received: {threshold}")