Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.CpModelProto Class Reference
Inheritance diagram for com.google.ortools.sat.CpModelProto:
com.google.ortools.sat.CpModelProtoOrBuilder

Classes

class  Builder
 

Public Member Functions

java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
java.util.List< com.google.ortools.sat.IntegerVariableProtogetVariablesList ()
 
java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuildergetVariablesOrBuilderList ()
 
int getVariablesCount ()
 
com.google.ortools.sat.IntegerVariableProto getVariables (int index)
 
com.google.ortools.sat.IntegerVariableProtoOrBuilder getVariablesOrBuilder (int index)
 
java.util.List< com.google.ortools.sat.ConstraintProtogetConstraintsList ()
 
java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuildergetConstraintsOrBuilderList ()
 
int getConstraintsCount ()
 
com.google.ortools.sat.ConstraintProto getConstraints (int index)
 
com.google.ortools.sat.ConstraintProtoOrBuilder getConstraintsOrBuilder (int index)
 
boolean hasObjective ()
 
com.google.ortools.sat.CpObjectiveProto getObjective ()
 
com.google.ortools.sat.CpObjectiveProtoOrBuilder getObjectiveOrBuilder ()
 
boolean hasFloatingPointObjective ()
 
com.google.ortools.sat.FloatObjectiveProto getFloatingPointObjective ()
 
com.google.ortools.sat.FloatObjectiveProtoOrBuilder getFloatingPointObjectiveOrBuilder ()
 
java.util.List< com.google.ortools.sat.DecisionStrategyProtogetSearchStrategyList ()
 
java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuildergetSearchStrategyOrBuilderList ()
 
int getSearchStrategyCount ()
 
com.google.ortools.sat.DecisionStrategyProto getSearchStrategy (int index)
 
com.google.ortools.sat.DecisionStrategyProtoOrBuilder getSearchStrategyOrBuilder (int index)
 
boolean hasSolutionHint ()
 
com.google.ortools.sat.PartialVariableAssignment getSolutionHint ()
 
com.google.ortools.sat.PartialVariableAssignmentOrBuilder getSolutionHintOrBuilder ()
 
java.util.List< java.lang.Integer > getAssumptionsList ()
 
int getAssumptionsCount ()
 
int getAssumptions (int index)
 
boolean hasSymmetry ()
 
com.google.ortools.sat.SymmetryProto getSymmetry ()
 
com.google.ortools.sat.SymmetryProtoOrBuilder getSymmetryOrBuilder ()
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< CpModelProtogetParserForType ()
 
com.google.ortools.sat.CpModelProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.CpModelProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.sat.CpModelProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CpModelProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CpModelProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CpModelProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CpModelProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CpModelProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CpModelProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CpModelProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.CpModelProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CpModelProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.CpModelProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CpModelProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.sat.CpModelProto prototype)
 
static com.google.ortools.sat.CpModelProto getDefaultInstance ()
 
static com.google.protobuf.Parser< CpModelProtoparser ()
 

Static Public Attributes

static final int NAME_FIELD_NUMBER = 1
 
static final int VARIABLES_FIELD_NUMBER = 2
 
static final int CONSTRAINTS_FIELD_NUMBER = 3
 
static final int OBJECTIVE_FIELD_NUMBER = 4
 
static final int FLOATING_POINT_OBJECTIVE_FIELD_NUMBER = 9
 
static final int SEARCH_STRATEGY_FIELD_NUMBER = 5
 
static final int SOLUTION_HINT_FIELD_NUMBER = 6
 
static final int ASSUMPTIONS_FIELD_NUMBER = 7
 
static final int SYMMETRY_FIELD_NUMBER = 8
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

A constraint programming problem.

Protobuf type operations_research.sat.CpModelProto

Definition at line 14 of file CpModelProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.sat.CpModelProto.equals ( final java.lang.Object obj)

Definition at line 718 of file CpModelProto.java.

◆ getAssumptions()

int com.google.ortools.sat.CpModelProto.getAssumptions ( int index)
A list of literals. The model will be solved assuming all these literals
are true. Compared to just fixing the domain of these literals, using this
mechanism is slower but allows in case the model is INFEASIBLE to get a
potentially small subset of them that can be used to explain the
infeasibility.

Think (IIS), except when you are only concerned by the provided
assumptions. This is powerful as it allows to group a set of logically
related constraint under only one enforcement literal which can potentially
give you a good and interpretable explanation for infeasiblity.

Such infeasibility explanation will be available in the
sufficient_assumptions_for_infeasibility response field.

repeated int32 assumptions = 7;

Parameters
indexThe index of the element to return.
Returns
The assumptions at the given index.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 557 of file CpModelProto.java.

◆ getAssumptionsCount()

int com.google.ortools.sat.CpModelProto.getAssumptionsCount ( )
A list of literals. The model will be solved assuming all these literals
are true. Compared to just fixing the domain of these literals, using this
mechanism is slower but allows in case the model is INFEASIBLE to get a
potentially small subset of them that can be used to explain the
infeasibility.

Think (IIS), except when you are only concerned by the provided
assumptions. This is powerful as it allows to group a set of logically
related constraint under only one enforcement literal which can potentially
give you a good and interpretable explanation for infeasiblity.

Such infeasibility explanation will be available in the
sufficient_assumptions_for_infeasibility response field.

repeated int32 assumptions = 7;

Returns
The count of assumptions.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 533 of file CpModelProto.java.

◆ getAssumptionsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.CpModelProto.getAssumptionsList ( )
A list of literals. The model will be solved assuming all these literals
are true. Compared to just fixing the domain of these literals, using this
mechanism is slower but allows in case the model is INFEASIBLE to get a
potentially small subset of them that can be used to explain the
infeasibility.

Think (IIS), except when you are only concerned by the provided
assumptions. This is powerful as it allows to group a set of logically
related constraint under only one enforcement literal which can potentially
give you a good and interpretable explanation for infeasiblity.

Such infeasibility explanation will be available in the
sufficient_assumptions_for_infeasibility response field.

repeated int32 assumptions = 7;

Returns
A list containing the assumptions.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 510 of file CpModelProto.java.

◆ getConstraints()

com.google.ortools.sat.ConstraintProto com.google.ortools.sat.CpModelProto.getConstraints ( int index)

repeated .operations_research.sat.ConstraintProto constraints = 3;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 191 of file CpModelProto.java.

◆ getConstraintsCount()

int com.google.ortools.sat.CpModelProto.getConstraintsCount ( )

repeated .operations_research.sat.ConstraintProto constraints = 3;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 184 of file CpModelProto.java.

◆ getConstraintsList()

java.util.List< com.google.ortools.sat.ConstraintProto > com.google.ortools.sat.CpModelProto.getConstraintsList ( )

repeated .operations_research.sat.ConstraintProto constraints = 3;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 169 of file CpModelProto.java.

◆ getConstraintsOrBuilder()

com.google.ortools.sat.ConstraintProtoOrBuilder com.google.ortools.sat.CpModelProto.getConstraintsOrBuilder ( int index)

repeated .operations_research.sat.ConstraintProto constraints = 3;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 198 of file CpModelProto.java.

◆ getConstraintsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.ConstraintProtoOrBuilder > com.google.ortools.sat.CpModelProto.getConstraintsOrBuilderList ( )

repeated .operations_research.sat.ConstraintProto constraints = 3;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 177 of file CpModelProto.java.

◆ getDefaultInstance()

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.getDefaultInstance ( )
static

Definition at line 3507 of file CpModelProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.getDefaultInstanceForType ( )

Definition at line 3543 of file CpModelProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CpModelProto.getDescriptor ( )
static

Definition at line 41 of file CpModelProto.java.

◆ getFloatingPointObjective()

com.google.ortools.sat.FloatObjectiveProto com.google.ortools.sat.CpModelProto.getFloatingPointObjective ( )
Advanced usage.
It is invalid to have both an objective and a floating point objective.

The objective of the model, in floating point format. The solver will
automatically scale this to integer during expansion and thus convert it to
a normal CpObjectiveProto. See the mip* parameters to control how this is
scaled. In most situation the precision will be good enough, but you can
see the logs to see what are the precision guaranteed when this is
converted to a fixed point representation.

Note that even if the precision is bad, the returned objective_value and
best_objective_bound will be computed correctly. So at the end of the solve
you can check the gap if you only want precise optimal.

.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;

Returns
The floatingPointObjective.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 288 of file CpModelProto.java.

◆ getFloatingPointObjectiveOrBuilder()

com.google.ortools.sat.FloatObjectiveProtoOrBuilder com.google.ortools.sat.CpModelProto.getFloatingPointObjectiveOrBuilder ( )
Advanced usage.
It is invalid to have both an objective and a floating point objective.

The objective of the model, in floating point format. The solver will
automatically scale this to integer during expansion and thus convert it to
a normal CpObjectiveProto. See the mip* parameters to control how this is
scaled. In most situation the precision will be good enough, but you can
see the logs to see what are the precision guaranteed when this is
converted to a fixed point representation.

Note that even if the precision is bad, the returned objective_value and
best_objective_bound will be computed correctly. So at the end of the solve
you can check the gap if you only want precise optimal.

.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 311 of file CpModelProto.java.

◆ getName()

java.lang.String com.google.ortools.sat.CpModelProto.getName ( )
For debug/logging only. Can be empty.

string name = 1;

Returns
The name.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 66 of file CpModelProto.java.

◆ getNameBytes()

com.google.protobuf.ByteString com.google.ortools.sat.CpModelProto.getNameBytes ( )
For debug/logging only. Can be empty.

string name = 1;

Returns
The bytes for name.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 88 of file CpModelProto.java.

◆ getObjective()

com.google.ortools.sat.CpObjectiveProto com.google.ortools.sat.CpModelProto.getObjective ( )
The objective to minimize. Can be empty for pure decision problems.

.operations_research.sat.CpObjectiveProto objective = 4;

Returns
The objective.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 226 of file CpModelProto.java.

◆ getObjectiveOrBuilder()

com.google.ortools.sat.CpObjectiveProtoOrBuilder com.google.ortools.sat.CpModelProto.getObjectiveOrBuilder ( )
The objective to minimize. Can be empty for pure decision problems.

.operations_research.sat.CpObjectiveProto objective = 4;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 237 of file CpModelProto.java.

◆ getParserForType()

com.google.protobuf.Parser< CpModelProto > com.google.ortools.sat.CpModelProto.getParserForType ( )

Definition at line 3538 of file CpModelProto.java.

◆ getSearchStrategy()

com.google.ortools.sat.DecisionStrategyProto com.google.ortools.sat.CpModelProto.getSearchStrategy ( int index)
Defines the strategy that the solver should follow when the
search_branching parameter is set to FIXED_SEARCH. Note that this strategy
is also used as a heuristic when we are not in fixed search.

Advanced Usage: if not all variables appears and the parameter
"instantiate_all_variables" is set to false, then the solver will not try
to instantiate the variables that do not appear. Thus, at the end of the
search, not all variables may be fixed. Currently, we will set them to
their lower bound in the solution.

repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 392 of file CpModelProto.java.

◆ getSearchStrategyCount()

int com.google.ortools.sat.CpModelProto.getSearchStrategyCount ( )
Defines the strategy that the solver should follow when the
search_branching parameter is set to FIXED_SEARCH. Note that this strategy
is also used as a heuristic when we are not in fixed search.

Advanced Usage: if not all variables appears and the parameter
"instantiate_all_variables" is set to false, then the solver will not try
to instantiate the variables that do not appear. Thus, at the end of the
search, not all variables may be fixed. Currently, we will set them to
their lower bound in the solution.

repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 373 of file CpModelProto.java.

◆ getSearchStrategyList()

java.util.List< com.google.ortools.sat.DecisionStrategyProto > com.google.ortools.sat.CpModelProto.getSearchStrategyList ( )
Defines the strategy that the solver should follow when the
search_branching parameter is set to FIXED_SEARCH. Note that this strategy
is also used as a heuristic when we are not in fixed search.

Advanced Usage: if not all variables appears and the parameter
"instantiate_all_variables" is set to false, then the solver will not try
to instantiate the variables that do not appear. Thus, at the end of the
search, not all variables may be fixed. Currently, we will set them to
their lower bound in the solution.

repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 334 of file CpModelProto.java.

◆ getSearchStrategyOrBuilder()

com.google.ortools.sat.DecisionStrategyProtoOrBuilder com.google.ortools.sat.CpModelProto.getSearchStrategyOrBuilder ( int index)
Defines the strategy that the solver should follow when the
search_branching parameter is set to FIXED_SEARCH. Note that this strategy
is also used as a heuristic when we are not in fixed search.

Advanced Usage: if not all variables appears and the parameter
"instantiate_all_variables" is set to false, then the solver will not try
to instantiate the variables that do not appear. Thus, at the end of the
search, not all variables may be fixed. Currently, we will set them to
their lower bound in the solution.

repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 411 of file CpModelProto.java.

◆ getSearchStrategyOrBuilderList()

java.util.List<? extends com.google.ortools.sat.DecisionStrategyProtoOrBuilder > com.google.ortools.sat.CpModelProto.getSearchStrategyOrBuilderList ( )
Defines the strategy that the solver should follow when the
search_branching parameter is set to FIXED_SEARCH. Note that this strategy
is also used as a heuristic when we are not in fixed search.

Advanced Usage: if not all variables appears and the parameter
"instantiate_all_variables" is set to false, then the solver will not try
to instantiate the variables that do not appear. Thus, at the end of the
search, not all variables may be fixed. Currently, we will set them to
their lower bound in the solution.

repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 354 of file CpModelProto.java.

◆ getSerializedSize()

int com.google.ortools.sat.CpModelProto.getSerializedSize ( )

Definition at line 662 of file CpModelProto.java.

◆ getSolutionHint()

com.google.ortools.sat.PartialVariableAssignment com.google.ortools.sat.CpModelProto.getSolutionHint ( )
Solution hint.

If a feasible or almost-feasible solution to the problem is already known,
it may be helpful to pass it to the solver so that it can be used. The
solver will try to use this information to create its initial feasible
solution.

Note that it may not always be faster to give a hint like this to the
solver. There is also no guarantee that the solver will use this hint or
try to return a solution "close" to this assignment in case of multiple
optimal solutions.

.operations_research.sat.PartialVariableAssignment solution_hint = 6;

Returns
The solutionHint.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 459 of file CpModelProto.java.

◆ getSolutionHintOrBuilder()

com.google.ortools.sat.PartialVariableAssignmentOrBuilder com.google.ortools.sat.CpModelProto.getSolutionHintOrBuilder ( )
Solution hint.

If a feasible or almost-feasible solution to the problem is already known,
it may be helpful to pass it to the solver so that it can be used. The
solver will try to use this information to create its initial feasible
solution.

Note that it may not always be faster to give a hint like this to the
solver. There is also no guarantee that the solver will use this hint or
try to return a solution "close" to this assignment in case of multiple
optimal solutions.

.operations_research.sat.PartialVariableAssignment solution_hint = 6;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 480 of file CpModelProto.java.

◆ getSymmetry()

com.google.ortools.sat.SymmetryProto com.google.ortools.sat.CpModelProto.getSymmetry ( )
For now, this is not meant to be filled by a client writing a model, but
by our preprocessing step.

Information about the symmetries of the feasible solution space.
These usually leaves the objective invariant.

.operations_research.sat.SymmetryProto symmetry = 8;

Returns
The symmetry.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 593 of file CpModelProto.java.

◆ getSymmetryOrBuilder()

com.google.ortools.sat.SymmetryProtoOrBuilder com.google.ortools.sat.CpModelProto.getSymmetryOrBuilder ( )
For now, this is not meant to be filled by a client writing a model, but
by our preprocessing step.

Information about the symmetries of the feasible solution space.
These usually leaves the objective invariant.

.operations_research.sat.SymmetryProto symmetry = 8;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 608 of file CpModelProto.java.

◆ getVariables()

com.google.ortools.sat.IntegerVariableProto com.google.ortools.sat.CpModelProto.getVariables ( int index)
The associated Protos should be referred by their index in these fields.

repeated .operations_research.sat.IntegerVariableProto variables = 2;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 146 of file CpModelProto.java.

◆ getVariablesCount()

int com.google.ortools.sat.CpModelProto.getVariablesCount ( )
The associated Protos should be referred by their index in these fields.

repeated .operations_research.sat.IntegerVariableProto variables = 2;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 135 of file CpModelProto.java.

◆ getVariablesList()

java.util.List< com.google.ortools.sat.IntegerVariableProto > com.google.ortools.sat.CpModelProto.getVariablesList ( )
The associated Protos should be referred by their index in these fields.

repeated .operations_research.sat.IntegerVariableProto variables = 2;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 112 of file CpModelProto.java.

◆ getVariablesOrBuilder()

com.google.ortools.sat.IntegerVariableProtoOrBuilder com.google.ortools.sat.CpModelProto.getVariablesOrBuilder ( int index)
The associated Protos should be referred by their index in these fields.

repeated .operations_research.sat.IntegerVariableProto variables = 2;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 157 of file CpModelProto.java.

◆ getVariablesOrBuilderList()

java.util.List<? extends com.google.ortools.sat.IntegerVariableProtoOrBuilder > com.google.ortools.sat.CpModelProto.getVariablesOrBuilderList ( )
The associated Protos should be referred by their index in these fields.

repeated .operations_research.sat.IntegerVariableProto variables = 2;

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 124 of file CpModelProto.java.

◆ hasFloatingPointObjective()

boolean com.google.ortools.sat.CpModelProto.hasFloatingPointObjective ( )
Advanced usage.
It is invalid to have both an objective and a floating point objective.

The objective of the model, in floating point format. The solver will
automatically scale this to integer during expansion and thus convert it to
a normal CpObjectiveProto. See the mip* parameters to control how this is
scaled. In most situation the precision will be good enough, but you can
see the logs to see what are the precision guaranteed when this is
converted to a fixed point representation.

Note that even if the precision is bad, the returned objective_value and
best_objective_bound will be computed correctly. So at the end of the solve
you can check the gap if you only want precise optimal.

.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;

Returns
Whether the floatingPointObjective field is set.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 264 of file CpModelProto.java.

◆ hashCode()

int com.google.ortools.sat.CpModelProto.hashCode ( )

Definition at line 762 of file CpModelProto.java.

◆ hasObjective()

boolean com.google.ortools.sat.CpModelProto.hasObjective ( )
The objective to minimize. Can be empty for pure decision problems.

.operations_research.sat.CpObjectiveProto objective = 4;

Returns
Whether the objective field is set.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 214 of file CpModelProto.java.

◆ hasSolutionHint()

boolean com.google.ortools.sat.CpModelProto.hasSolutionHint ( )
Solution hint.

If a feasible or almost-feasible solution to the problem is already known,
it may be helpful to pass it to the solver so that it can be used. The
solver will try to use this information to create its initial feasible
solution.

Note that it may not always be faster to give a hint like this to the
solver. There is also no guarantee that the solver will use this hint or
try to return a solution "close" to this assignment in case of multiple
optimal solutions.

.operations_research.sat.PartialVariableAssignment solution_hint = 6;

Returns
Whether the solutionHint field is set.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 437 of file CpModelProto.java.

◆ hasSymmetry()

boolean com.google.ortools.sat.CpModelProto.hasSymmetry ( )
For now, this is not meant to be filled by a client writing a model, but
by our preprocessing step.

Information about the symmetries of the feasible solution space.
These usually leaves the objective invariant.

.operations_research.sat.SymmetryProto symmetry = 8;

Returns
Whether the symmetry field is set.

Implements com.google.ortools.sat.CpModelProtoOrBuilder.

Definition at line 577 of file CpModelProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.sat.CpModelProto.internalGetFieldAccessorTable ( )
protected

Definition at line 47 of file CpModelProto.java.

◆ isInitialized()

final boolean com.google.ortools.sat.CpModelProto.isInitialized ( )

Definition at line 614 of file CpModelProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.sat.CpModelProto.newBuilder ( )
static

Definition at line 881 of file CpModelProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.sat.CpModelProto.newBuilder ( com.google.ortools.sat.CpModelProto prototype)
static

Definition at line 884 of file CpModelProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.sat.CpModelProto.newBuilderForType ( )

Definition at line 880 of file CpModelProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.CpModelProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 894 of file CpModelProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 852 of file CpModelProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 858 of file CpModelProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 829 of file CpModelProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 833 of file CpModelProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 818 of file CpModelProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 823 of file CpModelProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 865 of file CpModelProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 871 of file CpModelProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 839 of file CpModelProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 844 of file CpModelProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 807 of file CpModelProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.sat.CpModelProto com.google.ortools.sat.CpModelProto.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 812 of file CpModelProto.java.

◆ parser()

static com.google.protobuf.Parser< CpModelProto > com.google.ortools.sat.CpModelProto.parser ( )
static

Definition at line 3533 of file CpModelProto.java.

◆ toBuilder()

Builder com.google.ortools.sat.CpModelProto.toBuilder ( )

Definition at line 888 of file CpModelProto.java.

◆ writeTo()

void com.google.ortools.sat.CpModelProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 624 of file CpModelProto.java.

Member Data Documentation

◆ ASSUMPTIONS_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.ASSUMPTIONS_FIELD_NUMBER = 7
static

Definition at line 484 of file CpModelProto.java.

◆ CONSTRAINTS_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.CONSTRAINTS_FIELD_NUMBER = 3
static

Definition at line 162 of file CpModelProto.java.

◆ FLOATING_POINT_OBJECTIVE_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.FLOATING_POINT_OBJECTIVE_FIELD_NUMBER = 9
static

Definition at line 241 of file CpModelProto.java.

◆ NAME_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.NAME_FIELD_NUMBER = 1
static

Definition at line 54 of file CpModelProto.java.

◆ OBJECTIVE_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.OBJECTIVE_FIELD_NUMBER = 4
static

Definition at line 203 of file CpModelProto.java.

◆ SEARCH_STRATEGY_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.SEARCH_STRATEGY_FIELD_NUMBER = 5
static

Definition at line 315 of file CpModelProto.java.

◆ SOLUTION_HINT_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.SOLUTION_HINT_FIELD_NUMBER = 6
static

Definition at line 416 of file CpModelProto.java.

◆ SYMMETRY_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.SYMMETRY_FIELD_NUMBER = 8
static

Definition at line 562 of file CpModelProto.java.

◆ VARIABLES_FIELD_NUMBER

final int com.google.ortools.sat.CpModelProto.VARIABLES_FIELD_NUMBER = 2
static

Definition at line 101 of file CpModelProto.java.


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