struct

ORTools::Sat::CpObjectiveProto

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}, 4 => {name: :coeffs, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :offset, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :scaling_factor, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :domain, pb_type: :int64, crystal_type: Int64, cast_type: Array(Int64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :scaling_was_exact, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :integer_before_offset, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :integer_after_offset, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :integer_scaling_factor, 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(vars : Array(Int32) | Nil = nil, coeffs : Array(Int64) | Nil = nil, offset : Float64 | Nil = nil, scaling_factor : Float64 | Nil = nil, domain : Array(Int64) | Nil = nil, scaling_was_exact : Bool | Nil = nil, integer_before_offset : Int64 | Nil = nil, integer_after_offset : Int64 | Nil = nil, integer_scaling_factor : Int64 | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
coeffs
coeffs=(coeffs : Array(Int64) | Nil)
domain
domain=(domain : Array(Int64) | Nil)
integer_after_offset
integer_after_offset=(integer_after_offset : Int64 | Nil)
integer_before_offset
integer_before_offset=(integer_before_offset : Int64 | Nil)
integer_scaling_factor
integer_scaling_factor=(integer_scaling_factor : Int64 | Nil)
offset
offset=(offset : Float64 | Nil)
scaling_factor
scaling_factor=(scaling_factor : Float64 | Nil)
scaling_was_exact
scaling_was_exact=(scaling_was_exact : Bool | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf
vars
vars=(vars : Array(Int32) | Nil)