CONOPT
Loading...
Searching...
No Matches

the variable data More...

Public Member Functions

 __init__ (self, idx, low, up, cur=0, varstat=-1)
 init(Variable self, int idx, double low, double up, double cur=0, int varstat=-1) -> Variable
 
 addNonzero (self, conindex, value, nlflag)
 adds a non-zero to the variable data
 
 sortNonzeros (self)
 sorts the non-zeros by constraint index.
 
synchronized void delete ()
 
 Variable (int idx, double low, double up, double cur, int varstat)
 
 Variable (int idx, double low, double up, double cur)
 
 Variable (int idx, double low, double up)
 
void addNonzero (int conindex, double value, int nlflag)
 
void sortNonzeros ()
 
void setIndex (int value)
 
int getIndex ()
 
void setLower (double value)
 
double getLower ()
 
void setUpper (double value)
 
double getUpper ()
 
void setCurr (double value)
 
double getCurr ()
 
void setVarstatus (int value)
 
int getVarstatus ()
 
void setConsindex_ (SWIGTYPE_p_std__vectorT_int_t value)
 
SWIGTYPE_p_std__vectorT_int_t getConsindex_ ()
 
void setValue_ (SWIGTYPE_p_std__vectorT_double_t value)
 
SWIGTYPE_p_std__vectorT_double_t getValue_ ()
 
void setNlflag_ (SWIGTYPE_p_std__vectorT_int_t value)
 
SWIGTYPE_p_std__vectorT_int_t getNlflag_ ()
 
void setSortorder_ (SWIGTYPE_p_std__vectorT_int_t value)
 
SWIGTYPE_p_std__vectorT_int_t getSortorder_ ()
 

Protected Member Functions

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

Static Protected Member Functions

static long getCPtr (Variable obj)
 
static long swigRelease (Variable 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.Variable_index_get, libconoptpy4.Variable_index_set, doc=)
 
 lower = property(libconoptpy4.Variable_lower_get, libconoptpy4.Variable_lower_set, doc=)
 
 upper = property(libconoptpy4.Variable_upper_get, libconoptpy4.Variable_upper_set, doc=)
 
 curr = property(libconoptpy4.Variable_curr_get, libconoptpy4.Variable_curr_set, doc=)
 
 varstatus = property(libconoptpy4.Variable_varstatus_get, libconoptpy4.Variable_varstatus_set, doc=)
 
 consindex_ = property(libconoptpy4.Variable_consindex__get, libconoptpy4.Variable_consindex__set, doc=)
 
 value_ = property(libconoptpy4.Variable_value__get, libconoptpy4.Variable_value__set, doc=)
 
 nlflag_ = property(libconoptpy4.Variable_nlflag__get, libconoptpy4.Variable_nlflag__set, doc=)
 
 sortorder_ = property(libconoptpy4.Variable_sortorder__get, libconoptpy4.Variable_sortorder__set, doc=)
 

Detailed Description

the variable 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 variable 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 1845 of file conopt.py.

Constructor & Destructor Documentation

◆ __init__()

conopt.Variable.__init__ ( self,
idx,
low,
up,
cur = 0,
varstat = -1 )

init(Variable self, int idx, double low, double up, double cur=0, int varstat=-1) -> Variable

Parameters

idx: int low: double up: double cur: double varstat: int

Definition at line 1860 of file conopt.py.

◆ Variable() [1/4]

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

Definition at line 29 of file Variable.java.

◆ Variable() [2/4]

conopt.Variable.Variable ( int idx,
double low,
double up,
double cur,
int varstat )
inline

Definition at line 65 of file Variable.java.

◆ Variable() [3/4]

conopt.Variable.Variable ( int idx,
double low,
double up,
double cur )
inline

Definition at line 69 of file Variable.java.

◆ Variable() [4/4]

conopt.Variable.Variable ( int idx,
double low,
double up )
inline

Definition at line 73 of file Variable.java.

Member Function Documentation

◆ addNonzero() [1/2]

conopt.Variable.addNonzero ( self,
conindex,
value,
nlflag )

adds a non-zero to the variable data

Notes: this is used internally.

Definition at line 1875 of file conopt.py.

◆ sortNonzeros() [1/2]

conopt.Variable.sortNonzeros ( self)

sorts the non-zeros by constraint index.

Notes: this is used internally.

Definition at line 1883 of file conopt.py.

◆ getCPtr()

static long conopt.Variable.getCPtr ( Variable obj)
inlinestaticprotected

Definition at line 34 of file Variable.java.

◆ swigRelease()

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

Definition at line 38 of file Variable.java.

◆ finalize()

void conopt.Variable.finalize ( )
inlineprotected

Definition at line 51 of file Variable.java.

◆ delete()

synchronized void conopt.Variable.delete ( )
inline

Definition at line 55 of file Variable.java.

◆ addNonzero() [2/2]

void conopt.Variable.addNonzero ( int conindex,
double value,
int nlflag )
inline

adds a non-zero to the variable data

Note: this is used internally.

Definition at line 82 of file Variable.java.

◆ sortNonzeros() [2/2]

void conopt.Variable.sortNonzeros ( )
inline

sorts the non-zeros by constraint index.

Note: this is used internally.

Definition at line 91 of file Variable.java.

◆ setIndex()

void conopt.Variable.setIndex ( int value)
inline

the index of the variable in the problem

Definition at line 98 of file Variable.java.

◆ getIndex()

int conopt.Variable.getIndex ( )
inline

the index of the variable in the problem

Definition at line 105 of file Variable.java.

◆ setLower()

void conopt.Variable.setLower ( double value)
inline

the lower bound of the variable

Definition at line 112 of file Variable.java.

◆ getLower()

double conopt.Variable.getLower ( )
inline

the lower bound of the variable

Definition at line 119 of file Variable.java.

◆ setUpper()

void conopt.Variable.setUpper ( double value)
inline

the upper bound of the variable

Definition at line 126 of file Variable.java.

◆ getUpper()

double conopt.Variable.getUpper ( )
inline

the upper bound of the variable

Definition at line 133 of file Variable.java.

◆ setCurr()

void conopt.Variable.setCurr ( double value)
inline

the initial value of the variable. This is 0 by default.

Definition at line 140 of file Variable.java.

◆ getCurr()

double conopt.Variable.getCurr ( )
inline

the initial value of the variable. This is 0 by default.

Definition at line 147 of file Variable.java.

◆ setVarstatus()

void conopt.Variable.setVarstatus ( int value)
inline

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

Definition at line 154 of file Variable.java.

◆ getVarstatus()

int conopt.Variable.getVarstatus ( )
inline

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

Definition at line 161 of file Variable.java.

◆ setConsindex_()

void conopt.Variable.setConsindex_ ( SWIGTYPE_p_std__vectorT_int_t value)
inline

the index of the constraints

Definition at line 168 of file Variable.java.

◆ getConsindex_()

SWIGTYPE_p_std__vectorT_int_t conopt.Variable.getConsindex_ ( )
inline

the index of the constraints

Definition at line 175 of file Variable.java.

◆ setValue_()

void conopt.Variable.setValue_ ( SWIGTYPE_p_std__vectorT_double_t value)
inline

the non-zero for linear terms, for non-linear terms this is ignored

Definition at line 183 of file Variable.java.

◆ getValue_()

SWIGTYPE_p_std__vectorT_double_t conopt.Variable.getValue_ ( )
inline

the non-zero for linear terms, for non-linear terms this is ignored

Definition at line 190 of file Variable.java.

◆ setNlflag_()

void conopt.Variable.setNlflag_ ( SWIGTYPE_p_std__vectorT_int_t value)
inline

indicator whether the non-zero is part of a non-linear term

Definition at line 198 of file Variable.java.

◆ getNlflag_()

SWIGTYPE_p_std__vectorT_int_t conopt.Variable.getNlflag_ ( )
inline

indicator whether the non-zero is part of a non-linear term

Definition at line 205 of file Variable.java.

◆ setSortorder_()

void conopt.Variable.setSortorder_ ( SWIGTYPE_p_std__vectorT_int_t value)
inline

a vector to support the sorting of the non-zeros

Definition at line 213 of file Variable.java.

◆ getSortorder_()

SWIGTYPE_p_std__vectorT_int_t conopt.Variable.getSortorder_ ( )
inline

a vector to support the sorting of the non-zeros

Definition at line 220 of file Variable.java.

Field Documentation

◆ swigCMemOwn

transient boolean conopt.Variable.swigCMemOwn
protected

Definition at line 27 of file Variable.java.

Property Documentation

◆ thisown

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

Definition at line 1857 of file conopt.py.

◆ index

conopt.Variable.index = property(libconoptpy4.Variable_index_get, libconoptpy4.Variable_index_set, doc=)
static

Definition at line 1890 of file conopt.py.

◆ lower

conopt.Variable.lower = property(libconoptpy4.Variable_lower_get, libconoptpy4.Variable_lower_set, doc=)
static

Definition at line 1891 of file conopt.py.

◆ upper

conopt.Variable.upper = property(libconoptpy4.Variable_upper_get, libconoptpy4.Variable_upper_set, doc=)
static

Definition at line 1892 of file conopt.py.

◆ curr

conopt.Variable.curr = property(libconoptpy4.Variable_curr_get, libconoptpy4.Variable_curr_set, doc=)
static

Definition at line 1893 of file conopt.py.

◆ varstatus

conopt.Variable.varstatus = property(libconoptpy4.Variable_varstatus_get, libconoptpy4.Variable_varstatus_set, doc=)
static

Definition at line 1894 of file conopt.py.

◆ consindex_

conopt.Variable.consindex_ = property(libconoptpy4.Variable_consindex__get, libconoptpy4.Variable_consindex__set, doc=)
static

Definition at line 1895 of file conopt.py.

◆ value_

conopt.Variable.value_ = property(libconoptpy4.Variable_value__get, libconoptpy4.Variable_value__set, doc=)
static

Definition at line 1896 of file conopt.py.

◆ nlflag_

conopt.Variable.nlflag_ = property(libconoptpy4.Variable_nlflag__get, libconoptpy4.Variable_nlflag__set, doc=)
static

Definition at line 1897 of file conopt.py.

◆ sortorder_

conopt.Variable.sortorder_ = property(libconoptpy4.Variable_sortorder__get, libconoptpy4.Variable_sortorder__set, doc=)
static

Definition at line 1898 of file conopt.py.


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