CouenneAmplInterface Class Reference

#include <CouenneAmplInterface.hpp>

Inheritance diagram for CouenneAmplInterface:

Inheritance graph
[legend]
Collaboration diagram for CouenneAmplInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CouenneAmplInterface (Ipopt::SmartPtr< Ipopt::OptionsList > options_, Ipopt::SmartPtr< Ipopt::Journalist > jnlst_)
 ~CouenneAmplInterface ()
CouenneProblemgetCouenneProblem ()
 Should return the problem to solve in algebraic form.
Ipopt::SmartPtr< Bonmin::TMINLPgetTMINLP ()
 Should return the problem to solve as TMINLP.
bool writeSolution (Bonmin::Bab &bab)
 Called after B&B finished.
void setRegisteredOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions_)

Static Public Member Functions

static void registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)

Private Member Functions

bool readASLfg ()
bool readnl ()
expressionnl2e (expr *e)

Private Attributes

CouenneProblemproblem
Ipopt::SmartPtr< Bonmin::TMINLPtminlp
Ipopt::SmartPtr< Bonmin::RegisteredOptionsroptions
ASL * asl

Detailed Description

Definition at line 23 of file CouenneAmplInterface.hpp.


Constructor & Destructor Documentation

CouenneAmplInterface::CouenneAmplInterface ( Ipopt::SmartPtr< Ipopt::OptionsList >  options_,
Ipopt::SmartPtr< Ipopt::Journalist >  jnlst_ 
) [inline]

Definition at line 38 of file CouenneAmplInterface.hpp.

CouenneAmplInterface::~CouenneAmplInterface (  ) 

Definition at line 81 of file CouenneAmplInterface.cpp.

References asl, and problem.


Member Function Documentation

bool CouenneAmplInterface::readASLfg (  )  [private]

Definition at line 150 of file CouenneAmplInterface.cpp.

References asl, Oinfo, and CouenneUserInterface::options.

Referenced by getCouenneProblem().

bool CouenneAmplInterface::readnl (  )  [private]

Definition at line 205 of file CouenneAmplInterface.cpp.

References asl, CON_DE, COU_EXPRGROUP, COU_EXPRSUM, COUENNE_EPS, COUENNE_EQ, COUENNE_GE, COUENNE_INFINITY, COUENNE_LE, COUENNE_RNG, e, exprGroup::genExprGroup(), CouenneUserInterface::jnlst, k, CouenneProblem::nDefVars(), nl2e(), nt, OBJ_DE, OBJ_sense, CouenneUserInterface::options, problem, VAR_E, and x.

Referenced by getCouenneProblem().

expression * CouenneAmplInterface::nl2e ( expr *  e  )  [private]

Definition at line 687 of file CouenneAmplInterface.cpp.

References a, asl, getOperator(), Intcast, CouenneUserInterface::jnlst, log(), and problem.

Referenced by readnl().

void CouenneAmplInterface::registerOptions ( Ipopt::SmartPtr< Bonmin::RegisteredOptions roptions  )  [static]

Definition at line 77 of file CouenneAmplInterface.cpp.

Referenced by main().

CouenneProblem * CouenneAmplInterface::getCouenneProblem (  )  [virtual]

Should return the problem to solve in algebraic form.

NOTE: Couenne is (currently) going to modify this problem!

Implements CouenneUserInterface.

Definition at line 94 of file CouenneAmplInterface.cpp.

References problem, readASLfg(), and readnl().

Ipopt::SmartPtr< Bonmin::TMINLP > CouenneAmplInterface::getTMINLP (  )  [virtual]

Should return the problem to solve as TMINLP.

Implements CouenneUserInterface.

Definition at line 112 of file CouenneAmplInterface.cpp.

References CouenneUserInterface::jnlst, CouenneUserInterface::options, roptions, and tminlp.

bool CouenneAmplInterface::writeSolution ( Bonmin::Bab bab  )  [virtual]

Called after B&B finished.

Should write solution information.

Reimplemented from CouenneUserInterface.

Definition at line 135 of file CouenneAmplInterface.cpp.

References Bonmin::Bab::bestSolution().

void CouenneAmplInterface::setRegisteredOptions ( Ipopt::SmartPtr< Bonmin::RegisteredOptions roptions_  )  [inline]

Definition at line 50 of file CouenneAmplInterface.hpp.

References roptions.


Member Data Documentation

CouenneProblem* CouenneAmplInterface::problem [private]

Definition at line 25 of file CouenneAmplInterface.hpp.

Referenced by getCouenneProblem(), nl2e(), readnl(), and ~CouenneAmplInterface().

Ipopt::SmartPtr<Bonmin::TMINLP> CouenneAmplInterface::tminlp [private]

Definition at line 26 of file CouenneAmplInterface.hpp.

Referenced by getTMINLP().

Ipopt::SmartPtr<Bonmin::RegisteredOptions> CouenneAmplInterface::roptions [private]

Definition at line 28 of file CouenneAmplInterface.hpp.

Referenced by getTMINLP(), and setRegisteredOptions().

struct ASL* CouenneAmplInterface::asl [private]

Definition at line 29 of file CouenneAmplInterface.hpp.

Referenced by nl2e(), readASLfg(), readnl(), and ~CouenneAmplInterface().


The documentation for this class was generated from the following files:
Generated on Tue Mar 30 03:11:53 2010 by  doxygen 1.4.7