/dports/math/py-or-tools/or-tools-9.2/ortools/math_opt/cpp/ |
H A D | objective.cc | 55 model_->objective_offset()); in Add() 63 LinearExpression result = model_->objective_offset(); in AsLinearExpression()
|
H A D | objective.h | 95 double Objective::offset() const { return model_->objective_offset(); } in offset()
|
/dports/math/py-or-tools/or-tools-9.2/ortools/lp_data/ |
H A D | proto_utils.cc | 25 output->set_objective_offset(input.objective_offset()); in LinearProgramToMPModelProto() 56 output->SetObjectiveOffset(input.objective_offset()); in MPModelProtoToLinearProgram()
|
H A D | lp_data.h | 146 void SetObjectiveOffset(Fractional objective_offset); 260 Fractional objective_offset() const { return objective_offset_; } in objective_offset() function
|
H A D | lp_data.cc | 331 void LinearProgram::SetObjectiveOffset(Fractional objective_offset) { 332 DCHECK(IsFinite(objective_offset)); 333 objective_offset_ = objective_offset; 552 return objective_scaling_factor() * (value + objective_offset()); 557 return value / objective_scaling_factor() - objective_offset(); 777 SetObjectiveOffset(dual.objective_offset()); 1216 SetObjectiveOffset(objective_offset() / cost_scaling_factor); 1239 SetObjectiveOffset(objective_offset() / bound_scaling_factor);
|
/dports/math/py-or-tools/or-tools-9.2/ortools/sat/ |
H A D | lp_utils.h | 110 double objective_offset, bool maximize,
|
H A D | lp_utils.cc | 939 float_objective->set_offset(mp_model.objective_offset()); in ConvertMPModelProtoToCpModelProto() 957 double objective_offset, bool maximize, in ScaleAndSetObjective() argument 975 if (lb != 0) objective_offset += lb * coeff; in ScaleAndSetObjective() 988 if (coefficients.empty() && objective_offset == 0.0) return true; in ScaleAndSetObjective() 1053 objective_proto->set_offset(objective_offset * scaling_factor / gcd * mult); in ScaleAndSetObjective() 1221 objective->set_offset(mp_model.objective_offset() * scaling_factor / gcd); in ConvertBinaryMPModelProtoToBooleanProblem()
|
H A D | optimization.cc | 576 const Coefficient objective_offset( in SolveWithWPM1() local 579 if (objective + objective_offset < upper_bound) { in SolveWithWPM1() 581 upper_bound = objective + objective_offset; in SolveWithWPM1() 1567 IntegerValue objective_offset(0); in Optimize() local 1582 objective_offset += term.weight * var_lb.value(); in Optimize() 1617 -objective_offset.value())); in Optimize()
|
H A D | boolean_problem.cc | 640 int64_t objective_offset = 0; in MakeAllLiteralsPositive() local 647 objective_offset += coefficient; in MakeAllLiteralsPositive() 650 mutable_objective->set_offset(mutable_objective->offset() + objective_offset); in MakeAllLiteralsPositive()
|
/dports/math/py-or-tools/or-tools-9.2/ortools/bop/ |
H A D | integral_solver.cc | 145 objective->set_offset(linear_problem.objective_offset() * scaling_factor / in BuildBooleanProblemWithIntegralConstraints() 702 objective->set_offset((linear_problem.objective_offset() + offset) * in ConvertObjective() 991 *objective_value = linear_problem.objective_offset(); in InternalSolve() 1111 objective_value_ = lp->objective_offset(); in SolveWithTimeLimit()
|
/dports/math/py-or-tools/or-tools-9.2/ortools/math_opt/core/ |
H A D | indexed_model.h | 415 inline double objective_offset() const; 889 double IndexedModel::objective_offset() const { return objective_offset_; } in objective_offset() function
|
/dports/math/py-or-tools/or-tools-9.2/ortools/linear_solver/ |
H A D | model_validator.cc | 433 if (IsNanOrAbsGreaterThanOrEqual(model.objective_offset(), in FindErrorInMPModelProto() 436 (model.objective_offset())); in FindErrorInMPModelProto() 608 response->set_objective_value(model.get().objective_offset()); in ExtractValidMPModelOrPopulateResponseStatus()
|
H A D | model_exporter.cc | 546 if (proto_.objective_offset() != 0.0) { in ExportModelAsLpFormat() 548 DoubleToStringWithForcedSign(proto_.objective_offset()), " Constant ")); in ExportModelAsLpFormat() 607 if (proto_.objective_offset() != 0.0) { in ExportModelAsLpFormat()
|
H A D | scip_proto_solver.cc | 652 if (model.objective_offset() >= infinity || 653 model.objective_offset() <= -infinity) { 838 RETURN_IF_SCIP_ERROR(SCIPaddOrigObjoffset(scip, model.objective_offset()));
|
H A D | gurobi_proto_solver.cc | 461 model.objective_offset())); in GurobiSolveProto()
|
H A D | linear_solver.proto | 274 optional double objective_offset = 2 [default = 0.0]; field 589 // account the source "objective_offset" and "objective_coefficient".
|
H A D | linear_solver.cc | 782 objective->SetOffset(input_model.objective_offset()); in LoadModelFromProtoInternal()
|
/dports/math/py-or-tools/or-tools-9.2/examples/cpp/ |
H A D | jobshop_sat.cc | 474 int64_t objective_offset = 0; in CreateObjective() local 544 static_cast<double>(objective_offset)); in CreateObjective() 547 objective_offset); in CreateObjective()
|
/dports/math/py-or-tools/or-tools-9.2/ortools/math_opt/io/ |
H A D | proto_converter.cc | 125 objective->set_offset(model.objective_offset()); in MPModelProtoToMathOptModel()
|
/dports/math/py-or-tools/or-tools-9.2/ortools/glop/ |
H A D | preprocessor.cc | 418 lp->SetObjectiveOffset(lp->objective_offset() + in Run() 457 lp->SetObjectiveOffset(lp->objective_offset() + in SubtractColumnMultipleFromConstraintBound() 2617 lp->SetObjectiveOffset(lp->objective_offset() + rhs * multiplier); in DeleteSingletonColumnInEquality() 3728 KahanSum objective_offset; in Run() local 3753 objective_offset.Add(lp->objective_coefficients()[col] * offset); in Run() 3775 if (!std::isfinite(objective_offset.Value())) { in Run() 3781 lp->SetObjectiveOffset(lp->objective_offset() + objective_offset.Value()); in Run() 3891 lp->SetObjectiveOffset(-lp->objective_offset()); in Run()
|
H A D | lp_solver.cc | 281 return lp.objective_scaling_factor() * (value + lp.objective_offset());
|
H A D | revised_simplex.cc | 1029 objective_offset_ = -lp.objective_offset(); in InitializeObjectiveAndTestIfUnchanged() 1039 objective_offset_ = lp.objective_offset(); in InitializeObjectiveAndTestIfUnchanged()
|
/dports/math/py-or-tools/or-tools-9.2/ortools/constraint_solver/ |
H A D | search.cc | 4238 double objective_scaling_factor, double objective_offset, in ImprovementSearchLimit() argument 4245 objective_offset_(objective_offset), in ImprovementSearchLimit() 4353 double objective_offset, double improvement_rate_coefficient, in MakeImprovementLimit() argument 4356 this, objective_var, maximize, objective_scaling_factor, objective_offset, in MakeImprovementLimit()
|
H A D | constraint_solver.h | 2265 double objective_offset, double improvement_rate_coefficient, 4400 double objective_offset,
|