#include "BonminConfig.h"
#include "BonAmplInterface.hpp"
#include "OsiClpSolverInterface.hpp"
#include "BonTMINLP.hpp"
#include "IpIpoptApplication.hpp"
#include "BonIpoptSolver.hpp"
#include "CoinError.hpp"
#include <string>
#include <cmath>
Go to the source code of this file.
Macros | |
#define | MAKE_STRING(exp) std::string(#exp) |
#define | MyAssert(exp) MyAssertFunc(exp, MAKE_STRING(exp), __FILE__, __LINE__); |
#define | DblEqAssert(a, b) DblEqAssertFunc(a,MAKE_STRING(a),b,MAKE_STRING(b), __FILE__, __LINE__); |
Functions | |
void | MyAssertFunc (bool c, const std::string &s, const std::string &file, unsigned int line) |
void | DblEqAssertFunc (const double &a, const std::string &a_s, const double &b, const std::string &b_s, const std::string &file, unsigned int line) |
void | testGetMethods (OsiTMINLPInterface &si) |
Test function for the Osi interface to Ipopt (or any nlp solver). More... | |
void | testOptimAndSolutionQuery (OsiTMINLPInterface &si) |
void | testSetMethods (OsiTMINLPInterface &si) |
Test set methods. More... | |
void | testOa (Bonmin::OsiTMINLPInterface &si) |
void | testFp (Bonmin::AmplInterface &si) |
void | interfaceTest (Ipopt::SmartPtr< TNLPSolver > solver) |
int | main () |
Definition at line 50 of file InterfaceTest.cpp.
#define MyAssert | ( | exp | ) | MyAssertFunc(exp, MAKE_STRING(exp), __FILE__, __LINE__); |
Definition at line 51 of file InterfaceTest.cpp.
#define DblEqAssert | ( | a, | |
b | |||
) | DblEqAssertFunc(a,MAKE_STRING(a),b,MAKE_STRING(b), __FILE__, __LINE__); |
Definition at line 52 of file InterfaceTest.cpp.
Definition at line 33 of file InterfaceTest.cpp.
void DblEqAssertFunc | ( | const double & | a, |
const std::string & | a_s, | ||
const double & | b, | ||
const std::string & | b_s, | ||
const std::string & | file, | ||
unsigned int | line | ||
) |
Definition at line 40 of file InterfaceTest.cpp.
void testGetMethods | ( | OsiTMINLPInterface & | si | ) |
Test function for the Osi interface to Ipopt (or any nlp solver).
If Solver passes all the test then it should have everything needed to be integrated into bonmin.
Definition at line 59 of file InterfaceTest.cpp.
void testOptimAndSolutionQuery | ( | OsiTMINLPInterface & | si | ) |
Definition at line 122 of file InterfaceTest.cpp.
void testSetMethods | ( | OsiTMINLPInterface & | si | ) |
Test set methods.
Definition at line 165 of file InterfaceTest.cpp.
void testOa | ( | Bonmin::OsiTMINLPInterface & | si | ) |
Definition at line 191 of file InterfaceTest.cpp.
void testFp | ( | Bonmin::AmplInterface & | si | ) |
Definition at line 266 of file InterfaceTest.cpp.
void interfaceTest | ( | Ipopt::SmartPtr< TNLPSolver > | solver | ) |
Definition at line 276 of file InterfaceTest.cpp.
int main | ( | ) |
Definition at line 390 of file InterfaceTest.cpp.