My Project
OSosrl2ampl.h
Go to the documentation of this file.
1/* $Id: OSosrl2ampl.h 4249 2011-08-11 01:08:14Z Gassmann $ */
16#ifndef OSRL2AMPL_H
17#define OSRL2AMPL_H
18
19
20
21#include "OSResult.h"
22#include "OSMathUtil.h"
23#include <string>
24#include <vector>
25
26
38struct ograd;
39struct cgrad;
40struct ASL;
41struct expr;
42
43
45{
46public:
49
52
62 bool writeSolFile(std::string osrl, ASL *asl, std::string filename);
63
64private:
65
69 ograd *og;
70
76 ASL *asl, *cw, *rw;
77
80 std::string stub;
81
82}; //end of OSosrl2ampl
83
84#endif
The OSosrl2ampl Class.
Definition OSosrl2ampl.h:45
OSosrl2ampl()
the OSosrl2ampl class constructor
bool writeSolFile(std::string osrl, ASL *asl, std::string filename)
Convert the solution to AMPL .sol format.
ASL * asl
Pointers to AMPL data structures.
Definition OSosrl2ampl.h:76
ograd * og
og is a pointer to the AMPL data structure holding the objective function coefficients
Definition OSosrl2ampl.h:69
~OSosrl2ampl()
the OSosrl2ampl class destructor
std::string stub
stub is the name of the file with the nl instance
Definition OSosrl2ampl.h:80