struct ORTools::Sat::FloatObjectiveProto
- ORTools::Sat::FloatObjectiveProto
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
ortools-sat/connector/cp_model.pb.crConstant Summary
-
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 Method Summary
Instance Method Summary
- #[](key : String)
- #coeffs : Array(Float64) | Nil
- #coeffs=(coeffs : Array(Float64) | Nil)
- #maximize : Bool | Nil
- #maximize=(maximize : Bool | Nil)
- #offset : Float64 | Nil
- #offset=(offset : Float64 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #vars : Array(Int32) | Nil
- #vars=(vars : Array(Int32) | Nil)
Constructor Detail
def self.new(vars : Array(Int32) | Nil = nil, coeffs : Array(Float64) | Nil = nil, offset : Float64 | Nil = nil, maximize : Bool | Nil = nil)
#