Class: Gecode::Constraints::IntEnum::Channel::ChannelConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Gecode::Constraints::IntEnum::Channel::ChannelConstraint
- Defined in:
- lib/gecoder/interface/constraints/int_enum/channel.rb
Overview
Describes a channel constraint.
Instance Method Summary collapse
Methods inherited from Constraint
Constructor Details
This class inherits a constructor from Gecode::Constraints::Constraint
Instance Method Details
#post ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/gecoder/interface/constraints/int_enum/channel.rb', line 21 def post lhs, rhs, strength = @params.values_at(:lhs, :rhs, :strength) # Bind both sides. lhs = lhs.to_int_var_array rhs = rhs.to_int_var_array Gecode::Raw::channel(@model.active_space, lhs, rhs, strength) end |