Home
last modified time | relevance | path

Searched refs:objective_offset (Results 1 – 24 of 24) sorted by relevance

/dports/math/py-or-tools/or-tools-9.2/ortools/math_opt/cpp/
H A Dobjective.cc55 model_->objective_offset()); in Add()
63 LinearExpression result = model_->objective_offset(); in AsLinearExpression()
H A Dobjective.h95 double Objective::offset() const { return model_->objective_offset(); } in offset()
/dports/math/py-or-tools/or-tools-9.2/ortools/lp_data/
H A Dproto_utils.cc25 output->set_objective_offset(input.objective_offset()); in LinearProgramToMPModelProto()
56 output->SetObjectiveOffset(input.objective_offset()); in MPModelProtoToLinearProgram()
H A Dlp_data.h146 void SetObjectiveOffset(Fractional objective_offset);
260 Fractional objective_offset() const { return objective_offset_; } in objective_offset() function
H A Dlp_data.cc331 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 Dlp_utils.h110 double objective_offset, bool maximize,
H A Dlp_utils.cc939 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 Doptimization.cc576 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 Dboolean_problem.cc640 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 Dintegral_solver.cc145 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 Dindexed_model.h415 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 Dmodel_validator.cc433 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 Dmodel_exporter.cc546 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 Dscip_proto_solver.cc652 if (model.objective_offset() >= infinity ||
653 model.objective_offset() <= -infinity) {
838 RETURN_IF_SCIP_ERROR(SCIPaddOrigObjoffset(scip, model.objective_offset()));
H A Dgurobi_proto_solver.cc461 model.objective_offset())); in GurobiSolveProto()
H A Dlinear_solver.proto274 optional double objective_offset = 2 [default = 0.0]; field
589 // account the source "objective_offset" and "objective_coefficient".
H A Dlinear_solver.cc782 objective->SetOffset(input_model.objective_offset()); in LoadModelFromProtoInternal()
/dports/math/py-or-tools/or-tools-9.2/examples/cpp/
H A Djobshop_sat.cc474 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 Dproto_converter.cc125 objective->set_offset(model.objective_offset()); in MPModelProtoToMathOptModel()
/dports/math/py-or-tools/or-tools-9.2/ortools/glop/
H A Dpreprocessor.cc418 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 Dlp_solver.cc281 return lp.objective_scaling_factor() * (value + lp.objective_offset());
H A Drevised_simplex.cc1029 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 Dsearch.cc4238 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 Dconstraint_solver.h2265 double objective_offset, double improvement_rate_coefficient,
4400 double objective_offset,