struct ORTools::Sat::RoutesConstraintProto
- ORTools::Sat::RoutesConstraintProto
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
ortools-sat/connector/cp_model.pb.crConstant Summary
-
FIELDS =
{1 => {name: :tails, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :heads, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :literals, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :demands, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :capacity, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(tails : Array(Int32) | Nil = nil, heads : Array(Int32) | Nil = nil, literals : Array(Int32) | Nil = nil, demands : Array(Int32) | Nil = nil, capacity : Int64 | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #capacity : Int64 | Nil
- #capacity=(capacity : Int64 | Nil)
- #demands : Array(Int32) | Nil
- #demands=(demands : Array(Int32) | Nil)
- #heads : Array(Int32) | Nil
- #heads=(heads : Array(Int32) | Nil)
- #literals : Array(Int32) | Nil
- #literals=(literals : Array(Int32) | Nil)
- #tails : Array(Int32) | Nil
- #tails=(tails : Array(Int32) | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(tails : Array(Int32) | Nil = nil, heads : Array(Int32) | Nil = nil, literals : Array(Int32) | Nil = nil, demands : Array(Int32) | Nil = nil, capacity : Int64 | Nil = nil)
#