Public Member Functions | Private Attributes | List of all members
OSosrl2ampl Class Reference

The OSosrl2ampl Class. More...

#include <OSosrl2ampl.h>

Collaboration diagram for OSosrl2ampl:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

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

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 63 of file OSosrl2ampl.cpp.

OSosrl2ampl::~OSosrl2ampl ( )

the OSosrl2ampl class destructor

Definition at line 67 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
osrlis a string containing the result information
aslis a pointer to an ASL data structure
filenameis the name of the output file (e.g., as returned from the solver).
Returns
whether the .sol file was created successfully.

First check if there is a solution (There might not be if some error condition was set)

Definition at line 71 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: