OSnl2osil Class Reference

The OSnl2osil Class. More...

#include <OSnl2osil.h>

Collaboration diagram for OSnl2osil:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OSnl2osil (std::string nlfilename)
 the OSnl2osil class constructor
 ~OSnl2osil ()
 the OSnl2osil class destructor
bool createOSInstance ()
 create an OSInstance from the AMPL nl instance representation
OSnLNodewalkTree (expr *e)
 parse an nl tree structure holding a nonlinear expression

Public Attributes

OSInstanceosinstance
 osinstance is a pointer to the OSInstance object that gets created from the instance represented in NL format
std::vector< std::string > op_type
std::vector< double > operand
int numkount

Private Attributes

ograd * og
 og is a pointer to the AMPL data structure holding the objective function coefficients
ASL * asl
 Pointers to AMPL data structures.
ASL * cw
ASL * rw
std::string stub
 stub is the name of the file with the nl instance

Detailed Description

The OSnl2osil Class.

Author:
Robert Fourer, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
the OSnl2osil class is used for reading an instance in AMPL nl format and creating an OSInstance object in OSiL format

Definition at line 46 of file OSnl2osil.h.


Constructor & Destructor Documentation

OSnl2osil::OSnl2osil ( std::string  nlfilename  ) 

the OSnl2osil class constructor

Definition at line 67 of file OSnl2osil-save.cpp.

OSnl2osil::~OSnl2osil (  ) 

the OSnl2osil class destructor

Definition at line 112 of file OSnl2osil-save.cpp.


Member Function Documentation

bool OSnl2osil::createOSInstance (  ) 

create an OSInstance from the AMPL nl instance representation

Returns:
whether the instance is created successfully.

Before we can process the rows, we check for QP This needs to be done here because of the possibility of expressions like (1 - x[0])^2 which may modify the A matrix as well as the right-hand sides In particular, there may be fill-in in the A-matrix, in which case the column-wise representation of the A-matrix is out of date and needs to rebuilt from the row-wise form.

Definition at line 423 of file OSnl2osil-save.cpp.

OSnLNode * OSnl2osil::walkTree ( expr *  e  ) 

parse an nl tree structure holding a nonlinear expression

Returns:
the AMPL nonlinear structure as an OSnLNode.

Definition at line 122 of file OSnl2osil-save.cpp.


Member Data Documentation

osinstance is a pointer to the OSInstance object that gets created from the instance represented in NL format

Definition at line 72 of file OSnl2osil.h.

std::vector<std::string> OSnl2osil::op_type

Definition at line 74 of file OSnl2osil.h.

std::vector<double> OSnl2osil::operand

Definition at line 75 of file OSnl2osil.h.

Definition at line 76 of file OSnl2osil.h.

ograd* OSnl2osil::og [private]

og is a pointer to the AMPL data structure holding the objective function coefficients

Definition at line 82 of file OSnl2osil.h.

ASL* OSnl2osil::asl [private]

Pointers to AMPL data structures.

cw is loaded in column-wise format. rw is loaded in row-wise format. asl is for conveniently switching.

Definition at line 89 of file OSnl2osil.h.

ASL * OSnl2osil::cw [private]

Definition at line 89 of file OSnl2osil.h.

ASL * OSnl2osil::rw [private]

Definition at line 89 of file OSnl2osil.h.

std::string OSnl2osil::stub [private]

stub is the name of the file with the nl instance

Definition at line 93 of file OSnl2osil.h.


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

Generated on 15 Jul 2012 by  doxygen 1.6.1