9package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
15 super(mainJNI.ImprovementSearchLimit_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
27 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
29 obj.swigCMemOwn =
false;
35 @SuppressWarnings({
"deprecation",
"removal"})
44 mainJNI.delete_ImprovementSearchLimit(swigCPtr);
51 public ImprovementSearchLimit(
Solver solver,
IntVar objective_var,
boolean maximize,
double objective_scaling_factor,
double objective_offset,
double improvement_rate_coefficient,
int improvement_rate_solutions_distance) {
52 this(mainJNI.new_ImprovementSearchLimit__SWIG_0(
Solver.
getCPtr(
solver),
solver,
IntVar.
getCPtr(objective_var), objective_var, maximize, objective_scaling_factor, objective_offset, improvement_rate_coefficient, improvement_rate_solutions_distance),
true);
55 public ImprovementSearchLimit(
Solver solver,
IntVar[] objective_vars, SWIGTYPE_p_std__vectorT_bool_t maximize,
double[] objective_scaling_factors,
double[] objective_offsets,
double improvement_rate_coefficient,
int improvement_rate_solutions_distance) {
56 this(mainJNI.new_ImprovementSearchLimit__SWIG_1(
Solver.
getCPtr(
solver),
solver, objective_vars, SWIGTYPE_p_std__vectorT_bool_t.
getCPtr(maximize), objective_scaling_factors, objective_offsets, improvement_rate_coefficient, improvement_rate_solutions_distance),
true);
60 mainJNI.ImprovementSearchLimit_copy(swigCPtr,
this,
SearchLimit.
getCPtr(limit), limit);
64 long cPtr = mainJNI.ImprovementSearchLimit_makeClone(swigCPtr,
this);
65 return (cPtr == 0) ? null :
new SearchLimit(cPtr,
false);
69 return mainJNI.ImprovementSearchLimit_CheckWithOffset(swigCPtr,
this, SWIGTYPE_p_absl__Duration.getCPtr(offset));
73 return mainJNI.ImprovementSearchLimit_atSolution(swigCPtr,
this);
77 mainJNI.ImprovementSearchLimit_init(swigCPtr,
this);
81 mainJNI.ImprovementSearchLimit_install(swigCPtr,
this);