Ignore:
Timestamp:
Oct 16, 2006 11:05:15 PM (13 years ago)
Author:
pbonami
Message:

Update for including the interface for filter.
Everything compiles but not tested yet.
To compile filter interface has to specify --with-filtersqp-lib and with-filtersqp-incdir to point to correct location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Bonmin/test/InterfaceTest.cpp

    r58 r67  
    1818    If Solver passes all the test then it should have everything needed to be integrated into bonmin. */
    1919
    20 void testGetMethods(IpoptInterface &si)
     20void testGetMethods(OsiTMINLPInterface &si)
    2121{
    2222    CoinRelFltEq eq;// to test equality of doubles   
     
    8181      std::cout<<"Test passed"<<std::endl;                 
    8282}
    83 void testOptimAndSolutionQuery(IpoptInterface &si)
     83void testOptimAndSolutionQuery(OsiTMINLPInterface & si)
    8484{
    8585    CoinRelFltEq eq(1e-07);// to test equality of doubles   
     
    124124
    125125///Test set methods
    126 void testSetMethods(IpoptInterface &si)
     126void testSetMethods(OsiTMINLPInterface &si)
    127127{
    128128    CoinRelFltEq eq(1e-07);// to test equality of doubles   
     
    226226  /*   Test constructors                                                                                                              */
    227227  /**********************************************************************************/
    228   std::cout<<"Test IpoptInterface"<<std::endl;
     228  std::cout<<"Test OsiTMINLPInterface with Ipopt solver"<<std::endl;
    229229  // Test usefull constructor
    230230  {
     
    249249       const char ** argv = args;
    250250      SmartPtr<TMINLP> ampl_tminlp = new AmplTMINLP(ConstPtr(app->getIpoptApp().Jnlst()), app->Options(), const_cast<char**&>(argv));
    251       IpoptInterface si(ampl_tminlp);
     251      OsiTMINLPInterface si(ampl_tminlp, new IpoptSolver);
    252252    std::cout<<"---------------------------------------------------------------------------------------------------------------------------------------------------------"
    253253    <<std::endl<<"Testing usefull constructor"<<std::endl
     
    280280      const char ** argv = args;
    281281      SmartPtr<TMINLP> ampl_tminlp = new AmplTMINLP(ConstPtr(app->Jnlst()),  app->Options(), const_cast<char**&>(argv));
    282       IpoptInterface si1(ampl_tminlp);
    283      
    284       IpoptInterface si(si1);
     282      OsiTMINLPInterface si1(ampl_tminlp, new IpoptSolver);
     283     
     284      OsiTMINLPInterface si(si1);
    285285    std::cout<<"---------------------------------------------------------------------------------------------------------------------------------------------------------"
    286286    <<std::endl<<"Testing copy constructor"<<std::endl
Note: See TracChangeset for help on using the changeset viewer.