DotNet Reference

.Net Reference

ImprovementSearchLimit.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 4.0.2
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
12 
13 using System;
14 using System.Runtime.InteropServices;
15 using System.Collections;
16 using System.Collections.Generic;
17 
18 public partial class ImprovementSearchLimit : SearchLimit {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20 
21  internal ImprovementSearchLimit(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.ImprovementSearchLimit_SWIGUpcast(cPtr), cMemoryOwn) {
22  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23  }
24 
25  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImprovementSearchLimit obj) {
26  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27  }
28 
29  protected override void Dispose(bool disposing) {
30  lock(this) {
31  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32  if (swigCMemOwn) {
33  swigCMemOwn = false;
35  }
36  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37  }
38  base.Dispose(disposing);
39  }
40  }
41 
42  public ImprovementSearchLimit(Solver s, IntVar objective_var, bool maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance) : this(operations_research_constraint_solverPINVOKE.new_ImprovementSearchLimit(Solver.getCPtr(s), IntVar.getCPtr(objective_var), maximize, objective_scaling_factor, objective_offset, improvement_rate_coefficient, improvement_rate_solutions_distance), true) {
43  }
44 
45  public override void Copy(SearchLimit limit) {
47  }
48 
49  public override SearchLimit MakeClone() {
51  SearchLimit ret = (cPtr == global::System.IntPtr.Zero) ? null : new SearchLimit(cPtr, false);
52  return ret;
53  }
54 
55  public override bool Check() {
57  return ret;
58  }
59 
60  public override bool AtSolution() {
62  return ret;
63  }
64 
65  public override void Init() {
67  }
68 
69 }
70 
71 }
Definition: IntVar.cs:18
static bool ImprovementSearchLimit_AtSolution(global::System.Runtime.InteropServices.HandleRef jarg1)
override SearchLimit MakeClone()
static bool ImprovementSearchLimit_Check(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: SearchLimit.cs:18
static void delete_ImprovementSearchLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
override bool Check()
override bool AtSolution()
using System
Definition: Program.cs:14
static void ImprovementSearchLimit_Init(global::System.Runtime.InteropServices.HandleRef jarg1)
ImprovementSearchLimit(Solver s, IntVar objective_var, bool maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance)
override void Copy(SearchLimit limit)
bool swigCMemOwn
Definition: BaseObject.cs:20
override void Dispose(bool disposing)
static void ImprovementSearchLimit_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ImprovementSearchLimit_SWIGUpcast(global::System.IntPtr jarg1)
static global::System.IntPtr ImprovementSearchLimit_MakeClone(global::System.Runtime.InteropServices.HandleRef jarg1)
override void Init()