Scippy

SCIP

Solving Constraint Integer Programs

AMPLProblemHandler::NumericArgHandler Class Reference

Detailed Description

handler to create a list of terms in a sum

NumericArgHandler is copied around, so it keeps only a pointer (with reference counting) to actual data

Definition at line 590 of file reader_nl.cpp.

Public Member Functions

 NumericArgHandler (int num_args)
 constructor More...
 
void AddArg (SCIP_EXPR *term)
 adds term to sum More...
 

Data Fields

std::shared_ptr< std::vector< SCIP_EXPR * > > v
 

Constructor & Destructor Documentation

◆ NumericArgHandler()

AMPLProblemHandler::NumericArgHandler::NumericArgHandler ( int  num_args)
inline

constructor

Parameters
num_argsnumber of terms to expect

Definition at line 596 of file reader_nl.cpp.

Member Function Documentation

◆ AddArg()

void AMPLProblemHandler::NumericArgHandler::AddArg ( SCIP_EXPR term)
inline

adds term to sum

Parameters
termterm to add

Definition at line 605 of file reader_nl.cpp.

Field Documentation

◆ v

std::shared_ptr<std::vector<SCIP_EXPR*> > AMPLProblemHandler::NumericArgHandler::v

Definition at line 593 of file reader_nl.cpp.

Referenced by AMPLProblemHandler::EndSum().