ORTools::Sat::FloatObjectiveProto
Constants
FIELDS = {1 => {name: :vars, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :coeffs, pb_type: :double, crystal_type: Float64, cast_type: Array(Float64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :offset, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :maximize, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
new(buf : Protobuf::Buffer)
Class methods
from_protobuf(io)
Instance methods
[](key : String)
coeffs
maximize
offset
to_protobuf(io : IO, embedded = false)
to_protobuf
vars