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