Package com.google.ortools.sat
Class CpSolverResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
com.google.ortools.sat.CpSolverResponse.Builder
- All Implemented Interfaces:
CpSolverResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- CpSolverResponse
public static final class CpSolverResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder> implements CpSolverResponseOrBuilder
The response returned by a solver trying to solve a CpModelProto. TODO(user): support returning multiple solutions. Look at the Stubby streaming API as we probably wants to get them as they are found. Next id: 27Protobuf type
operations_research.sat.CpSolverResponse-
Method Summary
Modifier and Type Method Description CpSolverResponse.BuilderaddAllSolution(java.lang.Iterable<? extends java.lang.Long> values)A feasible solution to the given problem.CpSolverResponse.BuilderaddAllSolutionLowerBounds(java.lang.Iterable<? extends java.lang.Long> values)Advanced usage.CpSolverResponse.BuilderaddAllSolutionUpperBounds(java.lang.Iterable<? extends java.lang.Long> values)repeated int64 solution_upper_bounds = 19;CpSolverResponse.BuilderaddAllSufficientAssumptionsForInfeasibility(java.lang.Iterable<? extends java.lang.Integer> values)A subset of the model "assumptions" field.CpSolverResponse.BuilderaddAllTightenedVariables(java.lang.Iterable<? extends IntegerVariableProto> values)Advanced usage.CpSolverResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CpSolverResponse.BuilderaddSolution(long value)A feasible solution to the given problem.CpSolverResponse.BuilderaddSolutionLowerBounds(long value)Advanced usage.CpSolverResponse.BuilderaddSolutionUpperBounds(long value)repeated int64 solution_upper_bounds = 19;CpSolverResponse.BuilderaddSufficientAssumptionsForInfeasibility(int value)A subset of the model "assumptions" field.CpSolverResponse.BuilderaddTightenedVariables(int index, IntegerVariableProto value)Advanced usage.CpSolverResponse.BuilderaddTightenedVariables(int index, IntegerVariableProto.Builder builderForValue)Advanced usage.CpSolverResponse.BuilderaddTightenedVariables(IntegerVariableProto value)Advanced usage.CpSolverResponse.BuilderaddTightenedVariables(IntegerVariableProto.Builder builderForValue)Advanced usage.IntegerVariableProto.BuilderaddTightenedVariablesBuilder()Advanced usage.IntegerVariableProto.BuilderaddTightenedVariablesBuilder(int index)Advanced usage.CpSolverResponsebuild()CpSolverResponsebuildPartial()CpSolverResponse.Builderclear()CpSolverResponse.BuilderclearAllSolutionsWereFound()This will be true iff the solver was asked to find all solutions to a satisfiability problem (or all optimal solutions to an optimization problem), and it was successful in doing so.CpSolverResponse.BuilderclearBestObjectiveBound()Only make sense for an optimization problem.CpSolverResponse.BuilderclearDeterministicTime()double deterministic_time = 17;CpSolverResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CpSolverResponse.BuilderclearNumBinaryPropagations()int64 num_binary_propagations = 13;CpSolverResponse.BuilderclearNumBooleans()Some statistics about the solve.CpSolverResponse.BuilderclearNumBranches()int64 num_branches = 12;CpSolverResponse.BuilderclearNumConflicts()int64 num_conflicts = 11;CpSolverResponse.BuilderclearNumIntegerPropagations()int64 num_integer_propagations = 14;CpSolverResponse.BuilderclearNumLpIterations()int64 num_lp_iterations = 25;CpSolverResponse.BuilderclearNumRestarts()int64 num_restarts = 24;CpSolverResponse.BuilderclearObjectiveValue()Only make sense for an optimization problem.CpSolverResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CpSolverResponse.BuilderclearPrimalIntegral()double primal_integral = 22;CpSolverResponse.BuilderclearSolution()A feasible solution to the given problem.CpSolverResponse.BuilderclearSolutionInfo()Additional information about how the solution was found.CpSolverResponse.BuilderclearSolutionLowerBounds()Advanced usage.CpSolverResponse.BuilderclearSolutionUpperBounds()repeated int64 solution_upper_bounds = 19;CpSolverResponse.BuilderclearSolveLog()The solve log will be filled if the parameter log_to_response is set to true.CpSolverResponse.BuilderclearStatus()The status of the solve.CpSolverResponse.BuilderclearSufficientAssumptionsForInfeasibility()A subset of the model "assumptions" field.CpSolverResponse.BuilderclearTightenedVariables()Advanced usage.CpSolverResponse.BuilderclearUserTime()double user_time = 16;CpSolverResponse.BuilderclearWallTime()double wall_time = 15;CpSolverResponse.Builderclone()booleangetAllSolutionsWereFound()This will be true iff the solver was asked to find all solutions to a satisfiability problem (or all optimal solutions to an optimization problem), and it was successful in doing so.doublegetBestObjectiveBound()Only make sense for an optimization problem.CpSolverResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetDeterministicTime()double deterministic_time = 17;longgetNumBinaryPropagations()int64 num_binary_propagations = 13;longgetNumBooleans()Some statistics about the solve.longgetNumBranches()int64 num_branches = 12;longgetNumConflicts()int64 num_conflicts = 11;longgetNumIntegerPropagations()int64 num_integer_propagations = 14;longgetNumLpIterations()int64 num_lp_iterations = 25;longgetNumRestarts()int64 num_restarts = 24;doublegetObjectiveValue()Only make sense for an optimization problem.doublegetPrimalIntegral()double primal_integral = 22;longgetSolution(int index)A feasible solution to the given problem.intgetSolutionCount()A feasible solution to the given problem.java.lang.StringgetSolutionInfo()Additional information about how the solution was found.com.google.protobuf.ByteStringgetSolutionInfoBytes()Additional information about how the solution was found.java.util.List<java.lang.Long>getSolutionList()A feasible solution to the given problem.longgetSolutionLowerBounds(int index)Advanced usage.intgetSolutionLowerBoundsCount()Advanced usage.java.util.List<java.lang.Long>getSolutionLowerBoundsList()Advanced usage.longgetSolutionUpperBounds(int index)repeated int64 solution_upper_bounds = 19;intgetSolutionUpperBoundsCount()repeated int64 solution_upper_bounds = 19;java.util.List<java.lang.Long>getSolutionUpperBoundsList()repeated int64 solution_upper_bounds = 19;java.lang.StringgetSolveLog()The solve log will be filled if the parameter log_to_response is set to true.com.google.protobuf.ByteStringgetSolveLogBytes()The solve log will be filled if the parameter log_to_response is set to true.CpSolverStatusgetStatus()The status of the solve.intgetStatusValue()The status of the solve.intgetSufficientAssumptionsForInfeasibility(int index)A subset of the model "assumptions" field.intgetSufficientAssumptionsForInfeasibilityCount()A subset of the model "assumptions" field.java.util.List<java.lang.Integer>getSufficientAssumptionsForInfeasibilityList()A subset of the model "assumptions" field.IntegerVariableProtogetTightenedVariables(int index)Advanced usage.IntegerVariableProto.BuildergetTightenedVariablesBuilder(int index)Advanced usage.java.util.List<IntegerVariableProto.Builder>getTightenedVariablesBuilderList()Advanced usage.intgetTightenedVariablesCount()Advanced usage.java.util.List<IntegerVariableProto>getTightenedVariablesList()Advanced usage.IntegerVariableProtoOrBuildergetTightenedVariablesOrBuilder(int index)Advanced usage.java.util.List<? extends IntegerVariableProtoOrBuilder>getTightenedVariablesOrBuilderList()Advanced usage.doublegetUserTime()double user_time = 16;doublegetWallTime()double wall_time = 15;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CpSolverResponse.BuildermergeFrom(CpSolverResponse other)CpSolverResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CpSolverResponse.BuildermergeFrom(com.google.protobuf.Message other)CpSolverResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CpSolverResponse.BuilderremoveTightenedVariables(int index)Advanced usage.CpSolverResponse.BuildersetAllSolutionsWereFound(boolean value)This will be true iff the solver was asked to find all solutions to a satisfiability problem (or all optimal solutions to an optimization problem), and it was successful in doing so.CpSolverResponse.BuildersetBestObjectiveBound(double value)Only make sense for an optimization problem.CpSolverResponse.BuildersetDeterministicTime(double value)double deterministic_time = 17;CpSolverResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CpSolverResponse.BuildersetNumBinaryPropagations(long value)int64 num_binary_propagations = 13;CpSolverResponse.BuildersetNumBooleans(long value)Some statistics about the solve.CpSolverResponse.BuildersetNumBranches(long value)int64 num_branches = 12;CpSolverResponse.BuildersetNumConflicts(long value)int64 num_conflicts = 11;CpSolverResponse.BuildersetNumIntegerPropagations(long value)int64 num_integer_propagations = 14;CpSolverResponse.BuildersetNumLpIterations(long value)int64 num_lp_iterations = 25;CpSolverResponse.BuildersetNumRestarts(long value)int64 num_restarts = 24;CpSolverResponse.BuildersetObjectiveValue(double value)Only make sense for an optimization problem.CpSolverResponse.BuildersetPrimalIntegral(double value)double primal_integral = 22;CpSolverResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CpSolverResponse.BuildersetSolution(int index, long value)A feasible solution to the given problem.CpSolverResponse.BuildersetSolutionInfo(java.lang.String value)Additional information about how the solution was found.CpSolverResponse.BuildersetSolutionInfoBytes(com.google.protobuf.ByteString value)Additional information about how the solution was found.CpSolverResponse.BuildersetSolutionLowerBounds(int index, long value)Advanced usage.CpSolverResponse.BuildersetSolutionUpperBounds(int index, long value)repeated int64 solution_upper_bounds = 19;CpSolverResponse.BuildersetSolveLog(java.lang.String value)The solve log will be filled if the parameter log_to_response is set to true.CpSolverResponse.BuildersetSolveLogBytes(com.google.protobuf.ByteString value)The solve log will be filled if the parameter log_to_response is set to true.CpSolverResponse.BuildersetStatus(CpSolverStatus value)The status of the solve.CpSolverResponse.BuildersetStatusValue(int value)The status of the solve.CpSolverResponse.BuildersetSufficientAssumptionsForInfeasibility(int index, int value)A subset of the model "assumptions" field.CpSolverResponse.BuildersetTightenedVariables(int index, IntegerVariableProto value)Advanced usage.CpSolverResponse.BuildersetTightenedVariables(int index, IntegerVariableProto.Builder builderForValue)Advanced usage.CpSolverResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CpSolverResponse.BuildersetUserTime(double value)double user_time = 16;CpSolverResponse.BuildersetWallTime(double value)double wall_time = 15;Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
setField
public CpSolverResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
setRepeatedField
public CpSolverResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
addRepeatedField
public CpSolverResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CpSolverResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
mergeFrom
public CpSolverResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CpSolverResponse.Builder>- Throws:
java.io.IOException
-
getStatusValue
public int getStatusValue()The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;- Specified by:
getStatusValuein interfaceCpSolverResponseOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;- Specified by:
getStatusin interfaceCpSolverResponseOrBuilder- Returns:
- The status.
-
setStatus
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
The status of the solve.
.operations_research.sat.CpSolverStatus status = 1;- Returns:
- This builder for chaining.
-
getSolutionList
public java.util.List<java.lang.Long> getSolutionList()A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Specified by:
getSolutionListin interfaceCpSolverResponseOrBuilder- Returns:
- A list containing the solution.
-
getSolutionCount
public int getSolutionCount()A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Specified by:
getSolutionCountin interfaceCpSolverResponseOrBuilder- Returns:
- The count of solution.
-
getSolution
public long getSolution(int index)A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Specified by:
getSolutionin interfaceCpSolverResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The solution at the given index.
-
setSolution
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Parameters:
index- The index to set the value at.value- The solution to set.- Returns:
- This builder for chaining.
-
addSolution
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Parameters:
value- The solution to add.- Returns:
- This builder for chaining.
-
addAllSolution
public CpSolverResponse.Builder addAllSolution(java.lang.Iterable<? extends java.lang.Long> values)A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Parameters:
values- The solution to add.- Returns:
- This builder for chaining.
-
clearSolution
A feasible solution to the given problem. Depending on the returned status it may be optimal or just feasible. This is in one-to-one correspondence with a CpModelProto::variables repeated field and list the values of all the variables.
repeated int64 solution = 2;- Returns:
- This builder for chaining.
-
getObjectiveValue
public double getObjectiveValue()Only make sense for an optimization problem. The objective value of the returned solution if it is non-empty. If there is no solution, then for a minimization problem, this will be an upper-bound of the objective of any feasible solution, and a lower-bound for a maximization problem.
double objective_value = 3;- Specified by:
getObjectiveValuein interfaceCpSolverResponseOrBuilder- Returns:
- The objectiveValue.
-
setObjectiveValue
Only make sense for an optimization problem. The objective value of the returned solution if it is non-empty. If there is no solution, then for a minimization problem, this will be an upper-bound of the objective of any feasible solution, and a lower-bound for a maximization problem.
double objective_value = 3;- Parameters:
value- The objectiveValue to set.- Returns:
- This builder for chaining.
-
clearObjectiveValue
Only make sense for an optimization problem. The objective value of the returned solution if it is non-empty. If there is no solution, then for a minimization problem, this will be an upper-bound of the objective of any feasible solution, and a lower-bound for a maximization problem.
double objective_value = 3;- Returns:
- This builder for chaining.
-
getBestObjectiveBound
public double getBestObjectiveBound()Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization problem, or a proven upper-bound for a maximization problem.
double best_objective_bound = 4;- Specified by:
getBestObjectiveBoundin interfaceCpSolverResponseOrBuilder- Returns:
- The bestObjectiveBound.
-
setBestObjectiveBound
Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization problem, or a proven upper-bound for a maximization problem.
double best_objective_bound = 4;- Parameters:
value- The bestObjectiveBound to set.- Returns:
- This builder for chaining.
-
clearBestObjectiveBound
Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization problem, or a proven upper-bound for a maximization problem.
double best_objective_bound = 4;- Returns:
- This builder for chaining.
-
getSolutionLowerBoundsList
public java.util.List<java.lang.Long> getSolutionLowerBoundsList()Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Specified by:
getSolutionLowerBoundsListin interfaceCpSolverResponseOrBuilder- Returns:
- A list containing the solutionLowerBounds.
-
getSolutionLowerBoundsCount
public int getSolutionLowerBoundsCount()Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Specified by:
getSolutionLowerBoundsCountin interfaceCpSolverResponseOrBuilder- Returns:
- The count of solutionLowerBounds.
-
getSolutionLowerBounds
public long getSolutionLowerBounds(int index)Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Specified by:
getSolutionLowerBoundsin interfaceCpSolverResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The solutionLowerBounds at the given index.
-
setSolutionLowerBounds
Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Parameters:
index- The index to set the value at.value- The solutionLowerBounds to set.- Returns:
- This builder for chaining.
-
addSolutionLowerBounds
Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Parameters:
value- The solutionLowerBounds to add.- Returns:
- This builder for chaining.
-
addAllSolutionLowerBounds
public CpSolverResponse.Builder addAllSolutionLowerBounds(java.lang.Iterable<? extends java.lang.Long> values)Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Parameters:
values- The solutionLowerBounds to add.- Returns:
- This builder for chaining.
-
clearSolutionLowerBounds
Advanced usage. If the problem has some variables that are not fixed at the end of the search (because of a particular search strategy in the CpModelProto) then this will be used instead of filling the solution above. The two fields will then contains the lower and upper bounds of each variable as they were when the best "solution" was found.
repeated int64 solution_lower_bounds = 18;- Returns:
- This builder for chaining.
-
getSolutionUpperBoundsList
public java.util.List<java.lang.Long> getSolutionUpperBoundsList()repeated int64 solution_upper_bounds = 19;- Specified by:
getSolutionUpperBoundsListin interfaceCpSolverResponseOrBuilder- Returns:
- A list containing the solutionUpperBounds.
-
getSolutionUpperBoundsCount
public int getSolutionUpperBoundsCount()repeated int64 solution_upper_bounds = 19;- Specified by:
getSolutionUpperBoundsCountin interfaceCpSolverResponseOrBuilder- Returns:
- The count of solutionUpperBounds.
-
getSolutionUpperBounds
public long getSolutionUpperBounds(int index)repeated int64 solution_upper_bounds = 19;- Specified by:
getSolutionUpperBoundsin interfaceCpSolverResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The solutionUpperBounds at the given index.
-
setSolutionUpperBounds
repeated int64 solution_upper_bounds = 19;- Parameters:
index- The index to set the value at.value- The solutionUpperBounds to set.- Returns:
- This builder for chaining.
-
addSolutionUpperBounds
repeated int64 solution_upper_bounds = 19;- Parameters:
value- The solutionUpperBounds to add.- Returns:
- This builder for chaining.
-
addAllSolutionUpperBounds
public CpSolverResponse.Builder addAllSolutionUpperBounds(java.lang.Iterable<? extends java.lang.Long> values)repeated int64 solution_upper_bounds = 19;- Parameters:
values- The solutionUpperBounds to add.- Returns:
- This builder for chaining.
-
clearSolutionUpperBounds
repeated int64 solution_upper_bounds = 19;- Returns:
- This builder for chaining.
-
getTightenedVariablesList
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;- Specified by:
getTightenedVariablesListin interfaceCpSolverResponseOrBuilder
-
getTightenedVariablesCount
public int getTightenedVariablesCount()Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;- Specified by:
getTightenedVariablesCountin interfaceCpSolverResponseOrBuilder
-
getTightenedVariables
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;- Specified by:
getTightenedVariablesin interfaceCpSolverResponseOrBuilder
-
setTightenedVariables
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
setTightenedVariables
public CpSolverResponse.Builder setTightenedVariables(int index, IntegerVariableProto.Builder builderForValue)Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
addTightenedVariables
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
addTightenedVariables
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
addTightenedVariables
public CpSolverResponse.Builder addTightenedVariables(IntegerVariableProto.Builder builderForValue)Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
addTightenedVariables
public CpSolverResponse.Builder addTightenedVariables(int index, IntegerVariableProto.Builder builderForValue)Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
addAllTightenedVariables
public CpSolverResponse.Builder addAllTightenedVariables(java.lang.Iterable<? extends IntegerVariableProto> values)Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
clearTightenedVariables
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
removeTightenedVariables
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
getTightenedVariablesBuilder
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
getTightenedVariablesOrBuilder
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;- Specified by:
getTightenedVariablesOrBuilderin interfaceCpSolverResponseOrBuilder
-
getTightenedVariablesOrBuilderList
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21;- Specified by:
getTightenedVariablesOrBuilderListin interfaceCpSolverResponseOrBuilder
-
addTightenedVariablesBuilder
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
addTightenedVariablesBuilder
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
getTightenedVariablesBuilderList
Advanced usage. If the option fill_tightened_domains_in_response is set, then this field will be a copy of the CpModelProto.variables where each domain has been reduced using the information the solver was able to derive. Note that this is only filled with the info derived during a normal search and we do not have any dedicated algorithm to improve it. If the problem is a feasibility problem, then these bounds will be valid for any feasible solution. If the problem is an optimization problem, then these bounds will only be valid for any OPTIMAL solutions, it can exclude sub-optimal feasible ones.
repeated .operations_research.sat.IntegerVariableProto tightened_variables = 21; -
getSufficientAssumptionsForInfeasibilityList
public java.util.List<java.lang.Integer> getSufficientAssumptionsForInfeasibilityList()A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Specified by:
getSufficientAssumptionsForInfeasibilityListin interfaceCpSolverResponseOrBuilder- Returns:
- A list containing the sufficientAssumptionsForInfeasibility.
-
getSufficientAssumptionsForInfeasibilityCount
public int getSufficientAssumptionsForInfeasibilityCount()A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Specified by:
getSufficientAssumptionsForInfeasibilityCountin interfaceCpSolverResponseOrBuilder- Returns:
- The count of sufficientAssumptionsForInfeasibility.
-
getSufficientAssumptionsForInfeasibility
public int getSufficientAssumptionsForInfeasibility(int index)A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Specified by:
getSufficientAssumptionsForInfeasibilityin interfaceCpSolverResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sufficientAssumptionsForInfeasibility at the given index.
-
setSufficientAssumptionsForInfeasibility
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Parameters:
index- The index to set the value at.value- The sufficientAssumptionsForInfeasibility to set.- Returns:
- This builder for chaining.
-
addSufficientAssumptionsForInfeasibility
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Parameters:
value- The sufficientAssumptionsForInfeasibility to add.- Returns:
- This builder for chaining.
-
addAllSufficientAssumptionsForInfeasibility
public CpSolverResponse.Builder addAllSufficientAssumptionsForInfeasibility(java.lang.Iterable<? extends java.lang.Integer> values)A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Parameters:
values- The sufficientAssumptionsForInfeasibility to add.- Returns:
- This builder for chaining.
-
clearSufficientAssumptionsForInfeasibility
A subset of the model "assumptions" field. This will only be filled if the status is INFEASIBLE. This subset of assumption will be enough to still get an infeasible problem. This is related to what is called the irreducible inconsistent subsystem or IIS. Except one is only concerned by the provided assumptions. There is also no guarantee that we return an irreducible (aka minimal subset). However, this is based on SAT explanation and there is a good chance it is not too large. If you really want a minimal subset, a possible way to get one is by changing your model to minimize the number of assumptions at false, but this is likely an harder problem to solve. TODO(user): Allows for returning multiple core at once.
repeated int32 sufficient_assumptions_for_infeasibility = 23;- Returns:
- This builder for chaining.
-
getAllSolutionsWereFound
public boolean getAllSolutionsWereFound()This will be true iff the solver was asked to find all solutions to a satisfiability problem (or all optimal solutions to an optimization problem), and it was successful in doing so. TODO(user): Remove as we also use the OPTIMAL vs FEASIBLE status for that.
bool all_solutions_were_found = 5;- Specified by:
getAllSolutionsWereFoundin interfaceCpSolverResponseOrBuilder- Returns:
- The allSolutionsWereFound.
-
setAllSolutionsWereFound
This will be true iff the solver was asked to find all solutions to a satisfiability problem (or all optimal solutions to an optimization problem), and it was successful in doing so. TODO(user): Remove as we also use the OPTIMAL vs FEASIBLE status for that.
bool all_solutions_were_found = 5;- Parameters:
value- The allSolutionsWereFound to set.- Returns:
- This builder for chaining.
-
clearAllSolutionsWereFound
This will be true iff the solver was asked to find all solutions to a satisfiability problem (or all optimal solutions to an optimization problem), and it was successful in doing so. TODO(user): Remove as we also use the OPTIMAL vs FEASIBLE status for that.
bool all_solutions_were_found = 5;- Returns:
- This builder for chaining.
-
getNumBooleans
public long getNumBooleans()Some statistics about the solve.
int64 num_booleans = 10;- Specified by:
getNumBooleansin interfaceCpSolverResponseOrBuilder- Returns:
- The numBooleans.
-
setNumBooleans
Some statistics about the solve.
int64 num_booleans = 10;- Parameters:
value- The numBooleans to set.- Returns:
- This builder for chaining.
-
clearNumBooleans
Some statistics about the solve.
int64 num_booleans = 10;- Returns:
- This builder for chaining.
-
getNumConflicts
public long getNumConflicts()int64 num_conflicts = 11;- Specified by:
getNumConflictsin interfaceCpSolverResponseOrBuilder- Returns:
- The numConflicts.
-
setNumConflicts
int64 num_conflicts = 11;- Parameters:
value- The numConflicts to set.- Returns:
- This builder for chaining.
-
clearNumConflicts
int64 num_conflicts = 11;- Returns:
- This builder for chaining.
-
getNumBranches
public long getNumBranches()int64 num_branches = 12;- Specified by:
getNumBranchesin interfaceCpSolverResponseOrBuilder- Returns:
- The numBranches.
-
setNumBranches
int64 num_branches = 12;- Parameters:
value- The numBranches to set.- Returns:
- This builder for chaining.
-
clearNumBranches
int64 num_branches = 12;- Returns:
- This builder for chaining.
-
getNumBinaryPropagations
public long getNumBinaryPropagations()int64 num_binary_propagations = 13;- Specified by:
getNumBinaryPropagationsin interfaceCpSolverResponseOrBuilder- Returns:
- The numBinaryPropagations.
-
setNumBinaryPropagations
int64 num_binary_propagations = 13;- Parameters:
value- The numBinaryPropagations to set.- Returns:
- This builder for chaining.
-
clearNumBinaryPropagations
int64 num_binary_propagations = 13;- Returns:
- This builder for chaining.
-
getNumIntegerPropagations
public long getNumIntegerPropagations()int64 num_integer_propagations = 14;- Specified by:
getNumIntegerPropagationsin interfaceCpSolverResponseOrBuilder- Returns:
- The numIntegerPropagations.
-
setNumIntegerPropagations
int64 num_integer_propagations = 14;- Parameters:
value- The numIntegerPropagations to set.- Returns:
- This builder for chaining.
-
clearNumIntegerPropagations
int64 num_integer_propagations = 14;- Returns:
- This builder for chaining.
-
getNumRestarts
public long getNumRestarts()int64 num_restarts = 24;- Specified by:
getNumRestartsin interfaceCpSolverResponseOrBuilder- Returns:
- The numRestarts.
-
setNumRestarts
int64 num_restarts = 24;- Parameters:
value- The numRestarts to set.- Returns:
- This builder for chaining.
-
clearNumRestarts
int64 num_restarts = 24;- Returns:
- This builder for chaining.
-
getNumLpIterations
public long getNumLpIterations()int64 num_lp_iterations = 25;- Specified by:
getNumLpIterationsin interfaceCpSolverResponseOrBuilder- Returns:
- The numLpIterations.
-
setNumLpIterations
int64 num_lp_iterations = 25;- Parameters:
value- The numLpIterations to set.- Returns:
- This builder for chaining.
-
clearNumLpIterations
int64 num_lp_iterations = 25;- Returns:
- This builder for chaining.
-
getWallTime
public double getWallTime()double wall_time = 15;- Specified by:
getWallTimein interfaceCpSolverResponseOrBuilder- Returns:
- The wallTime.
-
setWallTime
double wall_time = 15;- Parameters:
value- The wallTime to set.- Returns:
- This builder for chaining.
-
clearWallTime
double wall_time = 15;- Returns:
- This builder for chaining.
-
getUserTime
public double getUserTime()double user_time = 16;- Specified by:
getUserTimein interfaceCpSolverResponseOrBuilder- Returns:
- The userTime.
-
setUserTime
double user_time = 16;- Parameters:
value- The userTime to set.- Returns:
- This builder for chaining.
-
clearUserTime
double user_time = 16;- Returns:
- This builder for chaining.
-
getDeterministicTime
public double getDeterministicTime()double deterministic_time = 17;- Specified by:
getDeterministicTimein interfaceCpSolverResponseOrBuilder- Returns:
- The deterministicTime.
-
setDeterministicTime
double deterministic_time = 17;- Parameters:
value- The deterministicTime to set.- Returns:
- This builder for chaining.
-
clearDeterministicTime
double deterministic_time = 17;- Returns:
- This builder for chaining.
-
getPrimalIntegral
public double getPrimalIntegral()double primal_integral = 22;- Specified by:
getPrimalIntegralin interfaceCpSolverResponseOrBuilder- Returns:
- The primalIntegral.
-
setPrimalIntegral
double primal_integral = 22;- Parameters:
value- The primalIntegral to set.- Returns:
- This builder for chaining.
-
clearPrimalIntegral
double primal_integral = 22;- Returns:
- This builder for chaining.
-
getSolutionInfo
public java.lang.String getSolutionInfo()Additional information about how the solution was found.
string solution_info = 20;- Specified by:
getSolutionInfoin interfaceCpSolverResponseOrBuilder- Returns:
- The solutionInfo.
-
getSolutionInfoBytes
public com.google.protobuf.ByteString getSolutionInfoBytes()Additional information about how the solution was found.
string solution_info = 20;- Specified by:
getSolutionInfoBytesin interfaceCpSolverResponseOrBuilder- Returns:
- The bytes for solutionInfo.
-
setSolutionInfo
Additional information about how the solution was found.
string solution_info = 20;- Parameters:
value- The solutionInfo to set.- Returns:
- This builder for chaining.
-
clearSolutionInfo
Additional information about how the solution was found.
string solution_info = 20;- Returns:
- This builder for chaining.
-
setSolutionInfoBytes
Additional information about how the solution was found.
string solution_info = 20;- Parameters:
value- The bytes for solutionInfo to set.- Returns:
- This builder for chaining.
-
getSolveLog
public java.lang.String getSolveLog()The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;- Specified by:
getSolveLogin interfaceCpSolverResponseOrBuilder- Returns:
- The solveLog.
-
getSolveLogBytes
public com.google.protobuf.ByteString getSolveLogBytes()The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;- Specified by:
getSolveLogBytesin interfaceCpSolverResponseOrBuilder- Returns:
- The bytes for solveLog.
-
setSolveLog
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;- Parameters:
value- The solveLog to set.- Returns:
- This builder for chaining.
-
clearSolveLog
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;- Returns:
- This builder for chaining.
-
setSolveLogBytes
The solve log will be filled if the parameter log_to_response is set to true.
string solve_log = 26;- Parameters:
value- The bytes for solveLog to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CpSolverResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-
mergeUnknownFields
public final CpSolverResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CpSolverResponse.Builder>
-