CONOPT
Loading...
Searching...
No Matches

the constraint data More...

Public Member Functions

 __init__ (self, idx, type, bound, slackstat)
 init(Constraint self, int idx, ConoptConstraintType type, double bound, int slackstat) -> Constraint
 
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
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
 index = property(libconoptpy4.Constraint_index_get, libconoptpy4.Constraint_index_set, doc=)
 
 constype = property(libconoptpy4.Constraint_constype_get, libconoptpy4.Constraint_constype_set, doc=)
 
 rhs = property(libconoptpy4.Constraint_rhs_get, libconoptpy4.Constraint_rhs_set, doc=)
 
 slackstatus = property(libconoptpy4.Constraint_slackstatus_get, libconoptpy4.Constraint_slackstatus_set, doc=)
 

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.

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 1903 of file conopt.py.

Constructor & Destructor Documentation

◆ __init__()

conopt.Constraint.__init__ ( self,
idx,
type,
bound,
slackstat )

init(Constraint self, int idx, ConoptConstraintType type, double bound, int slackstat) -> Constraint

Parameters

idx: int type: enum ConoptConstraintType bound: double slackstat: int

Definition at line 1918 of file conopt.py.

◆ Constraint() [1/2]

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

Definition at line 29 of file Constraint.java.

◆ Constraint() [2/2]

conopt.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 conopt.Constraint.getCPtr ( Constraint obj)
inlinestaticprotected

Definition at line 34 of file Constraint.java.

◆ swigRelease()

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

Definition at line 38 of file Constraint.java.

◆ finalize()

void conopt.Constraint.finalize ( )
inlineprotected

Definition at line 51 of file Constraint.java.

◆ delete()

synchronized void conopt.Constraint.delete ( )
inline

Definition at line 55 of file Constraint.java.

◆ setIndex()

void conopt.Constraint.setIndex ( int value)
inline

the index of the constraint in the problem

Definition at line 72 of file Constraint.java.

◆ getIndex()

int conopt.Constraint.getIndex ( )
inline

the index of the constraint in the problem

Definition at line 79 of file Constraint.java.

◆ setConstype()

void conopt.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 conopt.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 conopt.Constraint.setRhs ( double value)
inline

the right hand side of the constraint

Definition at line 100 of file Constraint.java.

◆ getRhs()

double conopt.Constraint.getRhs ( )
inline

the right hand side of the constraint

Definition at line 107 of file Constraint.java.

◆ setSlackstatus()

void conopt.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 conopt.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 conopt.Constraint.swigCMemOwn
protected

Definition at line 27 of file Constraint.java.

Property Documentation

◆ thisown

conopt.Constraint.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 1915 of file conopt.py.

◆ index

conopt.Constraint.index = property(libconoptpy4.Constraint_index_get, libconoptpy4.Constraint_index_set, doc=)
static

Definition at line 1931 of file conopt.py.

◆ constype

conopt.Constraint.constype = property(libconoptpy4.Constraint_constype_get, libconoptpy4.Constraint_constype_set, doc=)
static

Definition at line 1932 of file conopt.py.

◆ rhs

conopt.Constraint.rhs = property(libconoptpy4.Constraint_rhs_get, libconoptpy4.Constraint_rhs_set, doc=)
static

Definition at line 1933 of file conopt.py.

◆ slackstatus

conopt.Constraint.slackstatus = property(libconoptpy4.Constraint_slackstatus_get, libconoptpy4.Constraint_slackstatus_set, doc=)
static

Definition at line 1934 of file conopt.py.


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