class Gecode::Bool::Linear::LinearRelationConstraint
Public Instance Methods
post()
click to toggle source
# File doc/tmp/rdoc_dev/gecoder/interface/constraints/bool/linear.rb, line 103 def post lhs, rhs, relation_type, reif_var = @params.values_at(:lhs, :rhs, :relation_type, :reif) reif_var = reif_var.to_bool_var.bind if reif_var.respond_to? :to_bool_var final_exp = (lhs.to_minimodel_lin_exp - rhs.to_minimodel_lin_exp) if reif_var.nil? final_exp.post(@model.active_space, relation_type, *propagation_options) else final_exp.post(@model.active_space, relation_type, reif_var, *propagation_options) end end