struct

ORTools::Sat::FloatObjectiveProto

Inherits Protobuf::Message < Struct < Value < Object

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)
new(vars : Array(Int32) | Nil = nil, coeffs : Array(Float64) | Nil = nil, offset : Float64 | Nil = nil, maximize : Bool | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
coeffs
coeffs=(coeffs : Array(Float64) | Nil)
maximize
maximize=(maximize : Bool | Nil)
offset
offset=(offset : Float64 | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf
vars
vars=(vars : Array(Int32) | Nil)