Couenne  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CouenneAmplInterface.hpp
Go to the documentation of this file.
1 // $Id: CouenneAmplInterface.hpp 488 2011-01-10 17:06:41Z pbelotti $
2 //
3 // (C) Copyright XXX 2009
4 // All Rights Reserved.
5 // This code is published under the Eclipse Public License (EPL).
6 //
7 // Authors :
8 // Pietro Belotti, Lehigh University
9 // Stefan Vigerske, Humboldt University
10 //
11 // Date : 07/18/2009
12 
13 #ifndef COUENNEAMPLINTERFACE_HPP_
14 #define COUENNEAMPLINTERFACE_HPP_
15 
16 #include "CouenneUserInterface.hpp"
17 #include "BonRegisteredOptions.hpp"
18 
19 struct ASL;
20 struct expr;
21 
22 namespace Couenne {
23 
24 class expression;
25 
27 private:
30 
32  struct ASL* asl;
33 
34  bool readASLfg();
35  bool readnl();
36  expression* nl2e(expr *e);
37 
38 public:
40 
42  : CouenneUserInterface(options_, jnlst_), problem(NULL), asl(NULL)
43  { }
44 
46 
48 
50 
51  bool writeSolution(Bonmin::Bab& bab);
52 
54  { roptions = roptions_; }
55 
56 };
57 
58 }
59 
60 #endif /*COUENNEAMPLINTERFACE_HPP_*/
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions
Ipopt::SmartPtr< Bonmin::TMINLP > tminlp
void setRegisteredOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions_)
CouenneAmplInterface(Ipopt::SmartPtr< Ipopt::OptionsList > options_, Ipopt::SmartPtr< Ipopt::Journalist > jnlst_)
Class for MINLP problems with symbolic information.
CouenneProblem * getCouenneProblem()
Should return the problem to solve in algebraic form.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
bool writeSolution(Bonmin::Bab &bab)
Called after B&amp;B finished.
Ipopt::SmartPtr< Bonmin::TMINLP > getTMINLP()
Should return the problem to solve as TMINLP.
expression * nl2e(expr *e)
Expression base class.