struct ORTools::Sat::CumulativeConstraintProto

Included Modules

Defined in:

ortools-sat/connector/cp_model.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(capacity : LinearExpressionProto | Nil = nil, intervals : Array(Int32) | Nil = nil, demands : Array(LinearExpressionProto) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def capacity : LinearExpressionProto | Nil #

def capacity=(capacity : LinearExpressionProto | Nil) #

def demands : Array(LinearExpressionProto) | Nil #

def demands=(demands : Array(LinearExpressionProto) | Nil) #

def intervals : Array(Int32) | Nil #

def intervals=(intervals : Array(Int32) | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #