#include <CouenneAmplInterface.hpp>
Inheritance diagram for Couenne::CouenneAmplInterface:
Public Member Functions | |
CouenneAmplInterface (Ipopt::SmartPtr< Ipopt::OptionsList > options_, Ipopt::SmartPtr< Ipopt::Journalist > jnlst_) | |
~CouenneAmplInterface () | |
CouenneProblem * | getCouenneProblem () |
Should return the problem to solve in algebraic form. | |
Ipopt::SmartPtr< Bonmin::TMINLP > | getTMINLP () |
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 () |
expression * | nl2e (expr *e) |
Private Attributes | |
CouenneProblem * | problem |
Ipopt::SmartPtr< Bonmin::TMINLP > | tminlp |
Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions |
ASL * | asl |
Definition at line 26 of file CouenneAmplInterface.hpp.
Couenne::CouenneAmplInterface::CouenneAmplInterface | ( | Ipopt::SmartPtr< Ipopt::OptionsList > | options_, | |
Ipopt::SmartPtr< Ipopt::Journalist > | jnlst_ | |||
) | [inline] |
Definition at line 41 of file CouenneAmplInterface.hpp.
CouenneAmplInterface::~CouenneAmplInterface | ( | ) |
bool CouenneAmplInterface::readASLfg | ( | ) | [private] |
Definition at line 152 of file CouenneAmplInterface.cpp.
References asl, Oinfo, and Couenne::CouenneUserInterface::options.
Referenced by getCouenneProblem().
bool CouenneAmplInterface::readnl | ( | ) | [private] |
Definition at line 207 of file CouenneAmplInterface.cpp.
References asl, CON_DE, Couenne::COU_EXPRGROUP, Couenne::COU_EXPRSUM, COUENNE_EPS, Couenne::COUENNE_EQ, Couenne::COUENNE_GE, COUENNE_INFINITY, Couenne::COUENNE_LE, Couenne::COUENNE_RNG, e, Couenne::exprGroup::genExprGroup(), Couenne::CouenneUserInterface::jnlst, k, Couenne::CouenneProblem::nDefVars(), nl2e(), nt, OBJ_DE, OBJ_sense, Couenne::CouenneUserInterface::options, print(), problem, VAR_E, and x.
Referenced by getCouenneProblem().
expression * CouenneAmplInterface::nl2e | ( | expr * | e | ) | [private] |
Definition at line 693 of file CouenneAmplInterface.cpp.
References a, asl, getOperator(), Intcast, Couenne::CouenneUserInterface::jnlst, Couenne::log(), and problem.
Referenced by readnl().
void CouenneAmplInterface::registerOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [static] |
Definition at line 79 of file CouenneAmplInterface.cpp.
CouenneProblem * CouenneAmplInterface::getCouenneProblem | ( | ) | [virtual] |
Should return the problem to solve in algebraic form.
NOTE: Couenne is (currently) going to modify this problem!
Implements Couenne::CouenneUserInterface.
Definition at line 96 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 Couenne::CouenneUserInterface.
Definition at line 114 of file CouenneAmplInterface.cpp.
References Couenne::CouenneUserInterface::jnlst, Couenne::CouenneUserInterface::options, roptions, and tminlp.
bool CouenneAmplInterface::writeSolution | ( | Bonmin::Bab & | bab | ) | [virtual] |
Called after B&B finished.
Should write solution information.
Reimplemented from Couenne::CouenneUserInterface.
Definition at line 137 of file CouenneAmplInterface.cpp.
References Bonmin::Bab::bestSolution().
void Couenne::CouenneAmplInterface::setRegisteredOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions_ | ) | [inline] |
Definition at line 28 of file CouenneAmplInterface.hpp.
Referenced by getCouenneProblem(), nl2e(), readnl(), and ~CouenneAmplInterface().
Ipopt::SmartPtr<Bonmin::TMINLP> Couenne::CouenneAmplInterface::tminlp [private] |
Ipopt::SmartPtr<Bonmin::RegisteredOptions> Couenne::CouenneAmplInterface::roptions [private] |
Definition at line 31 of file CouenneAmplInterface.hpp.
Referenced by getTMINLP(), and setRegisteredOptions().
struct ASL* Couenne::CouenneAmplInterface::asl [private] |
Definition at line 32 of file CouenneAmplInterface.hpp.
Referenced by nl2e(), readASLfg(), readnl(), and ~CouenneAmplInterface().