00001 // (C) Copyright Carnegie Mellon University 2006, 2007 00002 // All Rights Reserved. 00003 // This code is published under the Common Public License. 00004 // 00005 // Authors : 00006 // P. Bonami, Carnegie Mellon University 00007 // 00008 // Date : 03/17/2006 00009 00010 00011 #include <iomanip> 00012 #include <fstream> 00013 00014 #include "CoinPragma.hpp" 00015 #include "CoinTime.hpp" 00016 00017 #include "BonOsiTMINLPInterface.hpp" 00018 #include "BonIpoptSolver.hpp" 00019 #include "MyTMINLP.hpp" 00020 #include "BonCbc.hpp" 00021 #include "BonBonminSetup.hpp" 00022 00023 #include "BonOACutGenerator2.hpp" 00024 #include "BonEcpCuts.hpp" 00025 #include "BonOaNlpOptim.hpp" 00026 00027 00028 int main (int argc, char *argv[]) 00029 { 00030 using namespace Ipopt; 00031 using namespace Bonmin; 00032 SmartPtr<MyTMINLP> tminlp = new MyTMINLP; 00033 00034 00035 BonminSetup bonmin; 00036 bonmin.initializeOptionsAndJournalist(); 00037 //Now initialize from tminlp 00038 bonmin.initialize(GetRawPtr(tminlp)); 00039 00040 std::ofstream of("options_list_bonmin_content.tex"); 00041 bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::BonminCategory); 00042 of.close(); 00043 of.open("options_list_ipopt_content.tex"); 00044 bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::IpoptCategory); 00045 of.close(); 00046 of.open("options_list_filter_content.tex"); 00047 bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::FilterCategory); 00048 of.close(); 00049 00050 of.open("options_table.tex"); 00051 bonmin.roptions()->writeLatexOptionsTable(of, Bonmin::RegisteredOptions::BonminCategory); 00052 of.close(); 00053 00054 of.open("bonmin.opt"); 00055 bonmin.roptions()->writeBonminOpt(of, Bonmin::RegisteredOptions::BonminCategory); 00056 return 0; 00057 } 00058