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

Sets a variable's value equal to a function on a set of variables and, optionally, a constant. More...

Inheritance diagram for OperationsResearch.MPArrayWithConstantConstraint:

Public Member Functions

 MPArrayWithConstantConstraint ()
 
 MPArrayWithConstantConstraint (MPArrayWithConstantConstraint other)
 
MPArrayWithConstantConstraint Clone ()
 
void ClearConstant ()
 Clears the value of the "constant" field.
 
void ClearResultantVarIndex ()
 Clears the value of the "resultant_var_index" field.
 
override bool Equals (object other)
 
bool Equals (MPArrayWithConstantConstraint other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (MPArrayWithConstantConstraint other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int VarIndexFieldNumber = 1
 Field number for the "var_index" field.
 
const int ConstantFieldNumber = 2
 Field number for the "constant" field.
 
const int ResultantVarIndexFieldNumber = 3
 Field number for the "resultant_var_index" field.
 

Properties

static pb::MessageParser< MPArrayWithConstantConstraintParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
pbc::RepeatedField< int > VarIndex [get]
 Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
 
double Constant [get, set]
 
bool HasConstant [get]
 Gets whether the "constant" field is set.
 
int ResultantVarIndex [get, set]
 
bool HasResultantVarIndex [get]
 Gets whether the "resultant_var_index" field is set.
 

Detailed Description

Sets a variable's value equal to a function on a set of variables and, optionally, a constant.

Definition at line 3486 of file LinearSolver.pb.cs.

Constructor & Destructor Documentation

◆ MPArrayWithConstantConstraint() [1/2]

OperationsResearch.MPArrayWithConstantConstraint.MPArrayWithConstantConstraint ( )
inline

Definition at line 3512 of file LinearSolver.pb.cs.

◆ MPArrayWithConstantConstraint() [2/2]

OperationsResearch.MPArrayWithConstantConstraint.MPArrayWithConstantConstraint ( MPArrayWithConstantConstraint other)
inline

Definition at line 3520 of file LinearSolver.pb.cs.

Member Function Documentation

◆ CalculateSize()

int OperationsResearch.MPArrayWithConstantConstraint.CalculateSize ( )
inline

Definition at line 3685 of file LinearSolver.pb.cs.

◆ ClearConstant()

void OperationsResearch.MPArrayWithConstantConstraint.ClearConstant ( )
inline

Clears the value of the "constant" field.

Definition at line 3572 of file LinearSolver.pb.cs.

◆ ClearResultantVarIndex()

void OperationsResearch.MPArrayWithConstantConstraint.ClearResultantVarIndex ( )
inline

Clears the value of the "resultant_var_index" field.

Definition at line 3599 of file LinearSolver.pb.cs.

◆ Clone()

MPArrayWithConstantConstraint OperationsResearch.MPArrayWithConstantConstraint.Clone ( )
inline

Definition at line 3530 of file LinearSolver.pb.cs.

◆ Equals() [1/2]

bool OperationsResearch.MPArrayWithConstantConstraint.Equals ( MPArrayWithConstantConstraint other)
inline

Definition at line 3611 of file LinearSolver.pb.cs.

◆ Equals() [2/2]

override bool OperationsResearch.MPArrayWithConstantConstraint.Equals ( object other)
inline

Definition at line 3605 of file LinearSolver.pb.cs.

◆ GetHashCode()

override int OperationsResearch.MPArrayWithConstantConstraint.GetHashCode ( )
inline

Definition at line 3626 of file LinearSolver.pb.cs.

◆ MergeFrom() [1/2]

void OperationsResearch.MPArrayWithConstantConstraint.MergeFrom ( MPArrayWithConstantConstraint other)
inline

Definition at line 3702 of file LinearSolver.pb.cs.

◆ MergeFrom() [2/2]

void OperationsResearch.MPArrayWithConstantConstraint.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 3718 of file LinearSolver.pb.cs.

◆ ToString()

override string OperationsResearch.MPArrayWithConstantConstraint.ToString ( )
inline

Definition at line 3639 of file LinearSolver.pb.cs.

◆ WriteTo()

void OperationsResearch.MPArrayWithConstantConstraint.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 3645 of file LinearSolver.pb.cs.

Member Data Documentation

◆ ConstantFieldNumber

const int OperationsResearch.MPArrayWithConstantConstraint.ConstantFieldNumber = 2
static

Field number for the "constant" field.

Definition at line 3550 of file LinearSolver.pb.cs.

◆ ResultantVarIndexFieldNumber

const int OperationsResearch.MPArrayWithConstantConstraint.ResultantVarIndexFieldNumber = 3
static

Field number for the "resultant_var_index" field.

Definition at line 3577 of file LinearSolver.pb.cs.

◆ VarIndexFieldNumber

const int OperationsResearch.MPArrayWithConstantConstraint.VarIndexFieldNumber = 1
static

Field number for the "var_index" field.

Definition at line 3535 of file LinearSolver.pb.cs.

Property Documentation

◆ Constant

double OperationsResearch.MPArrayWithConstantConstraint.Constant
getset

Definition at line 3556 of file LinearSolver.pb.cs.

◆ Descriptor

pbr.MessageDescriptor OperationsResearch.MPArrayWithConstantConstraint.Descriptor
staticget

Definition at line 3500 of file LinearSolver.pb.cs.

◆ HasConstant

bool OperationsResearch.MPArrayWithConstantConstraint.HasConstant
get

Gets whether the "constant" field is set.

Definition at line 3566 of file LinearSolver.pb.cs.

◆ HasResultantVarIndex

bool OperationsResearch.MPArrayWithConstantConstraint.HasResultantVarIndex
get

Gets whether the "resultant_var_index" field is set.

Definition at line 3593 of file LinearSolver.pb.cs.

◆ Parser

pb.MessageParser<MPArrayWithConstantConstraint> OperationsResearch.MPArrayWithConstantConstraint.Parser
staticget

Definition at line 3496 of file LinearSolver.pb.cs.

◆ ResultantVarIndex

int OperationsResearch.MPArrayWithConstantConstraint.ResultantVarIndex
getset

Definition at line 3583 of file LinearSolver.pb.cs.

◆ VarIndex

pbc.RepeatedField<int> OperationsResearch.MPArrayWithConstantConstraint.VarIndex
get

Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)

Definition at line 3545 of file LinearSolver.pb.cs.


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