CONOPT
Loading...
Searching...
No Matches

Data Structures

struct  ConoptVariable
 the variable data More...
 
struct  ConoptConstraint
 the constraint data More...
 

Functions

int ConoptModelData::numVar () const
 returns the number of variables in the model
 
int ConoptModelData::numCons () const
 returns the number of constraints in the model
 
int ConoptModelData::numHessianNonzeros () const
 returns the number of non-zeros in the Hessian
 
const ConoptVariableConoptModelData::getVariable (int index) const
 returns a reference to the variable object
 
const ConoptConstraintConoptModelData::getConstraint (int index) const
 returns a reference to the constraint object
 

Detailed Description

Methods to query information about the model.

Function Documentation

◆ numVar()

int ConoptModelData::numVar ( ) const

returns the number of variables in the model

◆ numCons()

int ConoptModelData::numCons ( ) const

returns the number of constraints in the model

◆ numHessianNonzeros()

int ConoptModelData::numHessianNonzeros ( ) const

returns the number of non-zeros in the Hessian

◆ getVariable()

const ConoptVariable & ConoptModelData::getVariable ( int index) const

returns a reference to the variable object

◆ getConstraint()

const ConoptConstraint & ConoptModelData::getConstraint ( int index) const

returns a reference to the constraint object