class Gecode::Set::Relation::RelationConstraint

Public Instance Methods

post() click to toggle source
# File doc/tmp/rdoc_dev/gecoder/interface/constraints/set/relation.rb, line 140
def post
  lhs, rhs, reif_var, relation = @params.values_at(:lhs, :rhs, :reif, 
    :relation)
  
  (params = []) << lhs.to_set_var.bind
  params << Gecode::Util::SET_RELATION_TYPES[relation]
  params << rhs.to_set_var.bind
  if reif_var.respond_to? :to_bool_var
    params << reif_var.to_bool_var.bind 
  end
  Gecode::Raw::rel(@model.active_space, *params)
end