From 2961338407d12e499aba2b9086f22350ac3668ff Mon Sep 17 00:00:00 2001 From: Bruno Donassolo Date: Wed, 16 Mar 2022 18:36:27 +0100 Subject: [PATCH] BMF: remove warning since the solver can be used by any model --- src/kernel/lmm/bmf.cpp | 7 ------- src/kernel/lmm/bmf.hpp | 1 - 2 files changed, 8 deletions(-) diff --git a/src/kernel/lmm/bmf.cpp b/src/kernel/lmm/bmf.cpp index 4d6b88af48..def915a153 100644 --- a/src/kernel/lmm/bmf.cpp +++ b/src/kernel/lmm/bmf.cpp @@ -462,13 +462,6 @@ void BmfSystem::get_constraint_data(const CnstList& cnst_list, Eigen::VectorXd& C(cnst_idx) = cnst.bound_; if (cnst.get_sharing_policy() == Constraint::SharingPolicy::NONLINEAR && cnst.dyn_constraint_cb_) { C(cnst_idx) = cnst.dyn_constraint_cb_(cnst.bound_, cnst.concurrency_current_); - if (not warned_nonlinear_) { - XBT_WARN("You are using dynamic constraint bound with parallel tasks and BMF model." - " The BMF solver assumes that all flows (and subflows) are always active and executing." - " This is quite pessimist, specially considering parallel tasks with small subflows." - " Analyze your results with caution."); - warned_nonlinear_ = true; - } } cnst2idx_[&cnst] = cnst_idx; // FATPIPE links aren't really shared diff --git a/src/kernel/lmm/bmf.hpp b/src/kernel/lmm/bmf.hpp index 7077bc8366..3d0564fa94 100644 --- a/src/kernel/lmm/bmf.hpp +++ b/src/kernel/lmm/bmf.hpp @@ -267,7 +267,6 @@ private: std::unordered_map idx2Var_; //!< Map player index (and position in matrices) to system's variable std::unordered_map cnst2idx_; //!< Conversely map constraint to index - bool warned_nonlinear_ = false; }; } // namespace lmm -- 2.20.1