How to make a constrain in a CGR?