ampl Class Reference

Class for the AMPL-Interface. More...

#include <ampl.h>

Collaboration diagram for ampl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ampl (char *stubfile_)
 Constructor for the name of the .nl file.
Pointer< MinlpProblemget_problem ()
 Read's the AMPL file and constructs a MINLP-problem.
void write_sol_file (const UserVector< double > &sol_point, char *message="")
 Write the AMPL solution-file stub.sol.

Private Attributes

Pointer< char > stubfile
 The name of the AMPL .nl-file to read.

Detailed Description

Class for the AMPL-Interface.

Definition at line 28 of file ampl.h.


Constructor & Destructor Documentation

ampl::ampl ( char *  stubfile_  )  [inline]

Constructor for the name of the .nl file.

If stubfile_ if NULL, gives an error-message and exists.

Parameters:
stubfile_ The name of the .nl-file without ".nl"

Definition at line 40 of file ampl.h.


Member Function Documentation

Pointer<MinlpProblem> ampl::get_problem (  ) 

Read's the AMPL file and constructs a MINLP-problem.

Returns:
The problem, which was described in the AMPL-file.
void ampl::write_sol_file ( const UserVector< double > &  sol_point,
char *  message = "" 
) [inline]

Write the AMPL solution-file stub.sol.

Parameters:
sol_point The solution point.
message A message.

Definition at line 57 of file ampl.h.


Member Data Documentation

Pointer<char> ampl::stubfile [private]

The name of the AMPL .nl-file to read.

Definition at line 32 of file ampl.h.


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

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1