# Ambiguous and unambiguous restraints

**URL:** <https://ask.bioexcel.eu/t/ambiguous-and-unambiguous-restraints/154>\
**Category:** HADDOCK\
**Created:** [July 7, 2016, 8:34am UTC](https://ask.bioexcel.eu/t/ambiguous-and-unambiguous-restraints/154 "2016-07-07T08:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klara\_Kirsch](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@Klara\_Kirsch](https://ask.bioexcel.eu/u/Klara_Kirsch)\
**Post date:** [July 7, 2016, 8:34am UTC](https://ask.bioexcel.eu/t/ambiguous-and-unambiguous-restraints/154/1 "2016-07-07T08:34:40Z")

</div>

The HADDOCK category is meant to discuss any HADDOCK-related issue. For general information about HADDOCK refer to [http://www.bonvinlab.org/software/haddock2.2](http://www.bonvinlab.org/software/haddock2.2)

I would like to ask, what is difference in the counting method (if any)

- if I submit restraints to an ambiguous restrain file but with NO random exclusion or I submit the same restraints to the unambiguous file.

- if I submit restraints to the unambiguous file like containing “OR” or “AND” , like these:  
assign ( resid 11 and segid A)  
(  
( resid 9 and segid B)  
or  
( resid 10 and segid B)  
or  
(  
…  
) ) 2.0 2.0 0.0

assign ( resid 11 and segid A)  
(  
( resid 9 and segid B)  
and  
( resid 10 and segid B)  
and  
(  
…  
) ) 2.0 2.0 0.0

Thank you for your reply!

---

<div class="post-metadata">

**Author:** ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)\
**Post date:** [July 7, 2016, 8:57am UTC](https://ask.bioexcel.eu/t/ambiguous-and-unambiguous-restraints/154/2 "2016-07-07T08:57:46Z")

</div>

`if I submit restraints to an ambiguous restrain file but with NO random exclusion or I submit the same restraints to the unambiguous file.`  
==\> this would be the same

For the second question, the AND would not select any atoms… since it would be the intersection of the selection and no atom belongs to two residues. Only OR will work in this case
