DotNet Reference

.Net Reference

Objective.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
13public partial class Objective : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 protected bool swigCMemOwn;
16
17 internal Objective(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 }
21
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Objective obj) {
23 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 }
25
26 ~Objective() {
27 Dispose(false);
28 }
29
30 public void Dispose() {
31 Dispose(true);
32 global::System.GC.SuppressFinalize(this);
33 }
34
35 protected virtual void Dispose(bool disposing) {
36 lock(this) {
37 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38 if (swigCMemOwn) {
39 swigCMemOwn = false;
41 }
42 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
43 }
44 }
45 }
46
47 public void Clear() {
49 }
50
51 public void SetCoefficient(Variable var, double coeff) {
53 }
54
55 public double GetCoefficient(Variable var) {
57 return ret;
58 }
59
60 public void SetOffset(double value) {
62 }
63
64 public double Offset() {
66 return ret;
67 }
68
69 public void SetOptimizationDirection(bool maximize) {
71 }
72
73 public void SetMinimization() {
75 }
76
77 public void SetMaximization() {
79 }
80
81 public bool Maximization() {
83 return ret;
84 }
85
86 public bool Minimization() {
88 return ret;
89 }
90
91 public double Value() {
93 return ret;
94 }
95
96 public double BestBound() {
98 return ret;
99 }
100
101}
102
103}
virtual void Dispose(bool disposing)
Definition: Objective.cs:35
double GetCoefficient(Variable var)
Definition: Objective.cs:55
void SetCoefficient(Variable var, double coeff)
Definition: Objective.cs:51
void SetOptimizationDirection(bool maximize)
Definition: Objective.cs:69
static void Objective_SetOffset(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double Objective_Offset(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Objective_Value(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_Objective(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Objective_BestBound(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Objective_SetMinimization(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Objective_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Objective_SetOptimizationDirection(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void Objective_SetCoefficient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static bool Objective_Minimization(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool Objective_Maximization(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Objective_GetCoefficient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void Objective_SetMaximization(global::System.Runtime.InteropServices.HandleRef jarg1)