- Added weight level to proof output in <..> notation.

- Added selection factor for singular variables (not rolenames)
This commit is contained in:
ccremers 2004-12-29 19:40:12 +00:00
parent 54ccd5179e
commit 45c42408dd

View File

@ -1292,6 +1292,7 @@ termBindConsequences (Term t)
* 2: key or not * 2: key or not
* 4: consequences determination * 4: consequences determination
* 8: select also single variables (that are not role variables) * 8: select also single variables (that are not role variables)
* 16: single variables are better
*/ */
Binding Binding
select_goal () select_goal ()
@ -1372,6 +1373,8 @@ select_goal ()
if (mode & 2) adapt (1, 0.5 * (1 - b->level)); if (mode & 2) adapt (1, 0.5 * (1 - b->level));
// Bit 2: 4 consequence level // Bit 2: 4 consequence level
if (mode & 4) adapt (1, termBindConsequences (b->term)); if (mode & 4) adapt (1, termBindConsequences (b->term));
// Bit 4: 16 single variables first
if (mode & 16) adapt (4, 1-isTermVariable (b->term));
// Weigh result // Weigh result
if (buf_weight == 0 || buf_constrain <= min_constrain) if (buf_weight == 0 || buf_constrain <= min_constrain)
@ -1388,6 +1391,7 @@ select_goal ()
{ {
eprintf ("[%i]", b->level); eprintf ("[%i]", b->level);
} }
eprintf ("<%.2f>", buf_constrain);
} }
} }
} }