Debian Codegraph @

Bonmin/examples/OptionDocGen/DocGen.cpp

raw
1 // (C) Copyright Carnegie Mellon University 2006, 2007
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors :
6 // P. Bonami, Carnegie Mellon University
7 //
8 // Date : 03/17/2006
9
10
11 #include <iomanip>
12 #include <fstream>
13
14 #include "CoinPragma.hpp"
15 #include "CoinTime.hpp"
16
17 #include "BonOsiTMINLPInterface.hpp"
18 #include "BonIpoptSolver.hpp"
19 #include "MyTMINLP.hpp"
20 #include "BonCbc.hpp"
21 #include "BonBonminSetup.hpp"
22
23 #include "BonOACutGenerator2.hpp"
24 #include "BonEcpCuts.hpp"
25 #include "BonOaNlpOptim.hpp"
26
27
28 int main (int argc, char *argv[])
29 {
30 using namespace Ipopt;
31 using namespace Bonmin;
32 SmartPtr<MyTMINLP> tminlp = new MyTMINLP;
33
34
35 BonminSetup bonmin;
36 bonmin.initializeOptionsAndJournalist();
37 //Now initialize from tminlp
38 bonmin.initialize(GetRawPtr(tminlp));
39
40 std::ofstream of("options_list_bonmin_content.tex");
41 bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::BonminCategory);
42 of.close();
43 of.open("options_list_ipopt_content.tex");
44 bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::IpoptCategory);
45 of.close();
46 of.open("options_list_filter_content.tex");
47 bonmin.roptions()->writeLatexHtmlDoc(of, Bonmin::RegisteredOptions::FilterCategory);
48 of.close();
49
50 of.open("options_table.tex");
51 bonmin.roptions()->writeLatexOptionsTable(of, Bonmin::RegisteredOptions::BonminCategory);
52 of.close();
53
54 of.open("bonmin.opt");
55 bonmin.roptions()->writeBonminOpt(of, Bonmin::RegisteredOptions::BonminCategory);
56 return 0;
57 }
58