/home/coin/SVN-release/OS-2.1.0/Bonmin/examples/OptionDocGen/DocGen.cpp

Go to the documentation of this file.
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 #if defined(_MSC_VER)
00012 // Turn off compiler warning about long names
00013 #  pragma warning(disable:4786)
00014 #endif
00015 #include <iomanip>
00016 #include <fstream>
00017 
00018 #include "CoinTime.hpp"
00019 
00020 #include "BonOsiTMINLPInterface.hpp"
00021 #include "BonIpoptSolver.hpp"
00022 #include "MyTMINLP.hpp"
00023 #include "BonCbc.hpp"
00024 #include "BonBonminSetup.hpp"
00025 
00026 #include "BonOACutGenerator2.hpp"
00027 #include "BonEcpCuts.hpp"
00028 #include "BonOaNlpOptim.hpp"
00029 
00030 
00031 int main (int argc, char *argv[])
00032 {
00033   using namespace Ipopt;
00034   using namespace Bonmin;
00035   SmartPtr<MyTMINLP> tminlp = new MyTMINLP;
00036   
00037 
00038   BonminSetup bonmin;
00039   bonmin.initializeOptionsAndJournalist();
00040   //Now initialize from tminlp
00041   bonmin.initialize(GetRawPtr(tminlp));
00042 
00043   std::ofstream of("options_list_bonmin_content.tex");
00044   bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::BonminCategory);
00045   of.close();
00046   of.open("options_list_ipopt_content.tex");
00047   bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::IpoptCategory);
00048   of.close();
00049   of.open("options_list_filter_content.tex");
00050   bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::FilterCategory);
00051   of.close();
00052 
00053   of.open("latex_table.tex");
00054   bonmin.roptions()->writeLatexOptionsTable(of, Bonmin::RegisteredOptions::BonminCategory);
00055   of.close();
00056 
00057   of.open("bonmin.opt");
00058   bonmin.roptions()->writeBonminOpt(of, Bonmin::RegisteredOptions::BonminCategory);
00059   return 0;
00060 }
00061 

Generated on Tue Mar 30 03:04:33 2010 by  doxygen 1.4.7