MPVariable.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 MPVariable {
14  private transient long swigCPtr;
15  protected transient boolean swigCMemOwn;
16 
17  protected MPVariable(long cPtr, boolean cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = cPtr;
20  }
21 
22  protected static long getCPtr(MPVariable 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 String name() {
41  return main_research_linear_solverJNI.MPVariable_name(swigCPtr, this);
42  }
43 
44  public void setInteger(boolean integer) {
46  }
47 
48  public double solutionValue() {
50  }
51 
52  public int index() {
53  return main_research_linear_solverJNI.MPVariable_index(swigCPtr, this);
54  }
55 
56  public double lb() {
57  return main_research_linear_solverJNI.MPVariable_lb(swigCPtr, this);
58  }
59 
60  public double ub() {
61  return main_research_linear_solverJNI.MPVariable_ub(swigCPtr, this);
62  }
63 
64  public void setLb(double lb) {
66  }
67 
68  public void setUb(double ub) {
70  }
71 
72  public void setBounds(double lb, double ub) {
74  }
75 
76  public double reducedCost() {
78  }
79 
82  }
83 
84 }
static final native double MPVariable_reducedCost(long jarg1, MPVariable jarg1_)
static final native int MPVariable_index(long jarg1, MPVariable jarg1_)
MPVariable(long cPtr, boolean cMemoryOwn)
Definition: MPVariable.java:17
void setBounds(double lb, double ub)
Definition: MPVariable.java:72
static final native double MPVariable_lb(long jarg1, MPVariable jarg1_)
static BasisStatus swigToEnum(int swigValue)
Definition: MPSolver.java:338
static final native double MPVariable_solutionValue(long jarg1, MPVariable jarg1_)
static final native void MPVariable_setLb(long jarg1, MPVariable jarg1_, double jarg2)
static long getCPtr(MPVariable obj)
Definition: MPVariable.java:22
static final native void MPVariable_setInteger(long jarg1, MPVariable jarg1_, boolean jarg2)
static final native int MPVariable_basisStatus(long jarg1, MPVariable jarg1_)
static final native void MPVariable_setUb(long jarg1, MPVariable jarg1_, double jarg2)
static final native void delete_MPVariable(long jarg1)
static final native double MPVariable_ub(long jarg1, MPVariable jarg1_)
static final native void MPVariable_setBounds(long jarg1, MPVariable jarg1_, double jarg2, double jarg3)
static final native String MPVariable_name(long jarg1, MPVariable jarg1_)