MPObjective.java
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.12
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.google.ortools.linearsolver;
10 
11 import java.lang.reflect.*;
12 
13 public class MPObjective {
14  private transient long swigCPtr;
15  protected transient boolean swigCMemOwn;
16 
17  protected MPObjective(long cPtr, boolean cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = cPtr;
20  }
21 
22  protected static long getCPtr(MPObjective obj) {
23  return (obj == null) ? 0 : obj.swigCPtr;
24  }
25 
26  protected void finalize() {
27  delete();
28  }
29 
30  public synchronized void delete() {
31  if (swigCPtr != 0) {
32  if (swigCMemOwn) {
33  swigCMemOwn = false;
35  }
36  swigCPtr = 0;
37  }
38  }
39 
40  public void clear() {
42  }
43 
44  public void setCoefficient(MPVariable var, double coeff) {
46  }
47 
48  public double getCoefficient(MPVariable var) {
50  }
51 
52  public void setOffset(double value) {
54  }
55 
56  public double offset() {
58  }
59 
60  public void setOptimizationDirection(boolean maximize) {
62  }
63 
64  public void setMinimization() {
66  }
67 
68  public void setMaximization() {
70  }
71 
72  public boolean maximization() {
74  }
75 
76  public boolean minimization() {
78  }
79 
80  public double value() {
82  }
83 
84  public double bestBound() {
86  }
87 
88 }
MPObjective(long cPtr, boolean cMemoryOwn)
static final native boolean MPObjective_maximization(long jarg1, MPObjective jarg1_)
static final native void MPObjective_setMaximization(long jarg1, MPObjective jarg1_)
static final native double MPObjective_value(long jarg1, MPObjective jarg1_)
static final native void MPObjective_setMinimization(long jarg1, MPObjective jarg1_)
static final native void delete_MPObjective(long jarg1)
static long getCPtr(MPObjective obj)
static final native void MPObjective_clear(long jarg1, MPObjective jarg1_)
void setCoefficient(MPVariable var, double coeff)
static final native boolean MPObjective_minimization(long jarg1, MPObjective jarg1_)
static long getCPtr(MPVariable obj)
Definition: MPVariable.java:22
static final native double MPObjective_bestBound(long jarg1, MPObjective jarg1_)
static final native double MPObjective_offset(long jarg1, MPObjective jarg1_)
static final native void MPObjective_setCoefficient(long jarg1, MPObjective jarg1_, long jarg2, MPVariable jarg2_, double jarg3)
static final native void MPObjective_setOptimizationDirection(long jarg1, MPObjective jarg1_, boolean jarg2)
static final native double MPObjective_getCoefficient(long jarg1, MPObjective jarg1_, long jarg2, MPVariable jarg2_)
void setOptimizationDirection(boolean maximize)
static final native void MPObjective_setOffset(long jarg1, MPObjective jarg1_, double jarg2)