OS  2.10.2
Public Member Functions | List of all members
OSosrl2ampl Class Reference

The OSosrl2ampl Class. More...

#include <OSosrl2ampl.h>

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

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::OSosrl2ampl ( )

the OSosrl2ampl class constructor

◆ ~OSosrl2ampl()

OSosrl2ampl::~OSosrl2ampl ( )

the OSosrl2ampl class destructor

Member Function Documentation

◆ writeSolFile()

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.

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