CONOPT
Loading...
Searching...
No Matches
jconopt.Constraint Class Reference

Public Member Functions

synchronized void delete ()
 
 Constraint (int idx, ConstraintType type, double bound, int slackstat)
 
void setIndex (int value)
 
int getIndex ()
 
void setConstype (ConstraintType value)
 
ConstraintType getConstype ()
 
void setRhs (double value)
 
double getRhs ()
 
void setSlackstatus (int value)
 
int getSlackstatus ()
 

Protected Member Functions

 Constraint (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (Constraint obj)
 
static long swigRelease (Constraint obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

the constraint data

This struct is used internally for supplying the variable data to CONOPT. The user is able to query this data from the ConoptModelData object. However, the user is not able to change the data after the variable has been added to CONOPT.

Definition at line 25 of file Constraint.java.

Constructor & Destructor Documentation

◆ Constraint() [1/2]

jconopt.Constraint.Constraint ( long cPtr,
boolean cMemoryOwn )
inlineprotected

Definition at line 29 of file Constraint.java.

◆ Constraint() [2/2]

jconopt.Constraint.Constraint ( int idx,
ConstraintType type,
double bound,
int slackstat )
inline

Definition at line 65 of file Constraint.java.

Member Function Documentation

◆ getCPtr()

static long jconopt.Constraint.getCPtr ( Constraint obj)
inlinestaticprotected

Definition at line 34 of file Constraint.java.

◆ swigRelease()

static long jconopt.Constraint.swigRelease ( Constraint obj)
inlinestaticprotected

Definition at line 38 of file Constraint.java.

◆ finalize()

void jconopt.Constraint.finalize ( )
inlineprotected

Definition at line 51 of file Constraint.java.

◆ delete()

synchronized void jconopt.Constraint.delete ( )
inline

Definition at line 55 of file Constraint.java.

◆ setIndex()

void jconopt.Constraint.setIndex ( int value)
inline

the index of the constraint in the problem

Definition at line 72 of file Constraint.java.

◆ getIndex()

int jconopt.Constraint.getIndex ( )
inline

the index of the constraint in the problem

Definition at line 79 of file Constraint.java.

◆ setConstype()

void jconopt.Constraint.setConstype ( ConstraintType value)
inline

0: equality, 1: greater than or equal, 2: less than or equal, 3: free row

Definition at line 86 of file Constraint.java.

◆ getConstype()

ConstraintType jconopt.Constraint.getConstype ( )
inline

0: equality, 1: greater than or equal, 2: less than or equal, 3: free row

Definition at line 93 of file Constraint.java.

◆ setRhs()

void jconopt.Constraint.setRhs ( double value)
inline

the right hand side of the constraint

Definition at line 100 of file Constraint.java.

◆ getRhs()

double jconopt.Constraint.getRhs ( )
inline

the right hand side of the constraint

Definition at line 107 of file Constraint.java.

◆ setSlackstatus()

void jconopt.Constraint.setSlackstatus ( int value)
inline

the initial status of the slacks. This depends on the COIDEF_IniStat setting.

Definition at line 114 of file Constraint.java.

◆ getSlackstatus()

int jconopt.Constraint.getSlackstatus ( )
inline

the initial status of the slacks. This depends on the COIDEF_IniStat setting.

Definition at line 121 of file Constraint.java.

Field Documentation

◆ swigCMemOwn

transient boolean jconopt.Constraint.swigCMemOwn
protected

Definition at line 27 of file Constraint.java.


The documentation for this class was generated from the following file: