Skip to content

Commit

Permalink
Merge pull request #202 from IIIM-IS/strong-and-weak-requirement-overlap
Browse files Browse the repository at this point in the history
Don't let old strong requirement disable a weak requirement
  • Loading branch information
jefft0 authored Nov 25, 2021
2 parents 607dc79 + ea6eca6 commit 1389ee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion r_exec/mdl_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ ChainingStatus MDLController::retrieve_simulated_imdl_bwd(HLPBindingMap *bm, Fac
// Use match_fwd because the f_imdl time interval matches the binding map's fwd_after and fwd_before from the model LHS.
if (_original.match_fwd_strict(_f_imdl, f_imdl)) {

if ((*e).confidence_ > negative_cfd) {
if ((*e).confidence_ > negative_cfd ||
_f_imdl->get_after() >= strong_requirement_ground->get_pred()->get_target()->get_before()) {

r = WEAK_REQUIREMENT_ENABLED;
bm->load(&_original);
Expand Down

0 comments on commit 1389ee2

Please sign in to comment.