Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Sat.FloatObjectiveProto Class Referencesealed

A linear floating point objective: sum coeffs[i] * vars[i] + offset. More...

Inheritance diagram for Google.OrTools.Sat.FloatObjectiveProto:

Public Member Functions

 FloatObjectiveProto ()
 
 FloatObjectiveProto (FloatObjectiveProto other)
 
FloatObjectiveProto Clone ()
 
override bool Equals (object other)
 
bool Equals (FloatObjectiveProto other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (FloatObjectiveProto other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int VarsFieldNumber = 1
 Field number for the "vars" field.
 
const int CoeffsFieldNumber = 2
 Field number for the "coeffs" field.
 
const int OffsetFieldNumber = 3
 Field number for the "offset" field.
 
const int MaximizeFieldNumber = 4
 Field number for the "maximize" field.
 

Properties

static pb::MessageParser< FloatObjectiveProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
pbc::RepeatedField< int > Vars [get]
 
pbc::RepeatedField< double > Coeffs [get]
 
double Offset [get, set]
 
bool Maximize [get, set]
 The optimization direction. The default is to minimize.
 

Detailed Description

A linear floating point objective: sum coeffs[i] * vars[i] + offset.

Note
the variable can only still take integer value.

Definition at line 6903 of file CpModel.pb.cs.

Constructor & Destructor Documentation

◆ FloatObjectiveProto() [1/2]

Google.OrTools.Sat.FloatObjectiveProto.FloatObjectiveProto ( )
inline

Definition at line 6928 of file CpModel.pb.cs.

◆ FloatObjectiveProto() [2/2]

Google.OrTools.Sat.FloatObjectiveProto.FloatObjectiveProto ( FloatObjectiveProto other)
inline

Definition at line 6936 of file CpModel.pb.cs.

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.Sat.FloatObjectiveProto.CalculateSize ( )
inline

Definition at line 7085 of file CpModel.pb.cs.

◆ Clone()

FloatObjectiveProto Google.OrTools.Sat.FloatObjectiveProto.Clone ( )
inline

Definition at line 6946 of file CpModel.pb.cs.

◆ Equals() [1/2]

bool Google.OrTools.Sat.FloatObjectiveProto.Equals ( FloatObjectiveProto other)
inline

Definition at line 7007 of file CpModel.pb.cs.

◆ Equals() [2/2]

override bool Google.OrTools.Sat.FloatObjectiveProto.Equals ( object other)
inline

Definition at line 7001 of file CpModel.pb.cs.

◆ GetHashCode()

override int Google.OrTools.Sat.FloatObjectiveProto.GetHashCode ( )
inline

Definition at line 7023 of file CpModel.pb.cs.

◆ MergeFrom() [1/2]

void Google.OrTools.Sat.FloatObjectiveProto.MergeFrom ( FloatObjectiveProto other)
inline

Definition at line 7103 of file CpModel.pb.cs.

◆ MergeFrom() [2/2]

void Google.OrTools.Sat.FloatObjectiveProto.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 7120 of file CpModel.pb.cs.

◆ ToString()

override string Google.OrTools.Sat.FloatObjectiveProto.ToString ( )
inline

Definition at line 7037 of file CpModel.pb.cs.

◆ WriteTo()

void Google.OrTools.Sat.FloatObjectiveProto.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 7043 of file CpModel.pb.cs.

Member Data Documentation

◆ CoeffsFieldNumber

const int Google.OrTools.Sat.FloatObjectiveProto.CoeffsFieldNumber = 2
static

Field number for the "coeffs" field.

Definition at line 6962 of file CpModel.pb.cs.

◆ MaximizeFieldNumber

const int Google.OrTools.Sat.FloatObjectiveProto.MaximizeFieldNumber = 4
static

Field number for the "maximize" field.

Definition at line 6985 of file CpModel.pb.cs.

◆ OffsetFieldNumber

const int Google.OrTools.Sat.FloatObjectiveProto.OffsetFieldNumber = 3
static

Field number for the "offset" field.

Definition at line 6973 of file CpModel.pb.cs.

◆ VarsFieldNumber

const int Google.OrTools.Sat.FloatObjectiveProto.VarsFieldNumber = 1
static

Field number for the "vars" field.

Definition at line 6951 of file CpModel.pb.cs.

Property Documentation

◆ Coeffs

pbc.RepeatedField<double> Google.OrTools.Sat.FloatObjectiveProto.Coeffs
get

Definition at line 6968 of file CpModel.pb.cs.

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.Sat.FloatObjectiveProto.Descriptor
staticget

Definition at line 6916 of file CpModel.pb.cs.

◆ Maximize

bool Google.OrTools.Sat.FloatObjectiveProto.Maximize
getset

The optimization direction. The default is to minimize.

Definition at line 6992 of file CpModel.pb.cs.

◆ Offset

double Google.OrTools.Sat.FloatObjectiveProto.Offset
getset

Definition at line 6977 of file CpModel.pb.cs.

◆ Parser

pb.MessageParser<FloatObjectiveProto> Google.OrTools.Sat.FloatObjectiveProto.Parser
staticget

Definition at line 6912 of file CpModel.pb.cs.

◆ Vars

pbc.RepeatedField<int> Google.OrTools.Sat.FloatObjectiveProto.Vars
get

Definition at line 6957 of file CpModel.pb.cs.


The documentation for this class was generated from the following file: