OSosrl2ampl Class Reference

The OSosrl2ampl Class. More...

#include <OSosrl2ampl.h>

Collaboration diagram for OSosrl2ampl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OSosrl2ampl ()
 the OSosrl2ampl class constructor
 ~OSosrl2ampl ()
 the OSosrl2ampl class destructor
bool writeSolFile (std::string osrl, ASL *asl, std::string filename)
 Convert the solution to AMPL .sol format.

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 OSosrl2ampl Class.

Author:
Horand Gassmann, Jun Ma, Kipp Martin
Remarks:
The OSosrl2ampl class is used for writing an AMPL sol file, including any results indexed over variables, constraints, objectives.

Definition at line 44 of file OSosrl2ampl.h.


Constructor & Destructor Documentation

OSosrl2ampl::OSosrl2ampl (  ) 

the OSosrl2ampl class constructor

Definition at line 65 of file OSosrl2ampl.cpp.

OSosrl2ampl::~OSosrl2ampl (  ) 

the OSosrl2ampl class destructor

Definition at line 69 of file OSosrl2ampl.cpp.


Member Function Documentation

bool OSosrl2ampl::writeSolFile ( std::string  osrl,
ASL *  asl,
std::string  filename 
)

Convert the solution to AMPL .sol format.

Parameters:
osrl is a string containing the result information
asl is a pointer to an ASL data structure
filename is the name of the output file (e.g., as returned from the solver).
Returns:
whether the .sol file was created successfully.

Definition at line 73 of file OSosrl2ampl.cpp.


Member Data Documentation

ograd* OSosrl2ampl::og [private]

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

Definition at line 69 of file OSosrl2ampl.h.

ASL* OSosrl2ampl::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 76 of file OSosrl2ampl.h.

ASL * OSosrl2ampl::cw [private]

Definition at line 76 of file OSosrl2ampl.h.

ASL * OSosrl2ampl::rw [private]

Definition at line 76 of file OSosrl2ampl.h.

std::string OSosrl2ampl::stub [private]

stub is the name of the file with the nl instance

Definition at line 80 of file OSosrl2ampl.h.


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

Generated on 24 Jul 2013 by  doxygen 1.6.1