source: trunk/Couenne/src/crossconv/CrossConvConstructors.cpp @ 510

Last change on this file since 510 was 510, checked in by stefan, 9 years ago

need IpOptionsList? for destructor of SmartPtr?<OptionsList?>'s

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/* $Id: CrossConvConstructors.cpp 510 2011-02-15 22:15:23Z stefan $
2 *
3 * Name:    CrossConvConstructors.cpp
4 * Author:  Pietro Belotti
5 * Purpose: Convexification cuts on redundant relationships between auxiliaries
6 *
7 * (C) Pietro Belotti, 2010.
8 * This file is licensed under the Eclipse Public License (EPL)
9 */
10
11#include "BonRegisteredOptions.hpp"
12#include "CouenneCrossConv.hpp"
13
14#include "CglCutGenerator.hpp"
15#include "CouenneJournalist.hpp"
16#include "IpOptionsList.hpp"
17
18using namespace Couenne;
19
20/// constructor
21CouenneCrossConv::CouenneCrossConv (CouenneProblem *p,
22                                    JnlstPtr,
23                                    const Ipopt::SmartPtr <Ipopt::OptionsList>) {
24  setup ();
25}
26
27/// copy constructor
28CouenneCrossConv::CouenneCrossConv  (const CouenneCrossConv &src):
29
30  CglCutGenerator (src) {
31}
32
33/// destructor
34CouenneCrossConv::~CouenneCrossConv () {
35
36
37}
38
39/// Add list of options to be read from file
40void CouenneCrossConv::registerOptions (Ipopt::SmartPtr <Bonmin::RegisteredOptions> roptions) {
41
42  roptions -> AddLowerBoundedIntegerOption
43    ("crossconv_cuts",
44     "The frequency (in terms of nodes) at which Couenne cross-aux convexification cuts are generated.",
45     -99, 0,
46     "A frequency of 0 (default) means these cuts are never generated. "
47     "Any positive number n instructs Couenne to generate them at every n nodes of the B&B tree. "
48     "A negative number -n means that generation should be attempted at the root node, and if successful it can be repeated at every n nodes, otherwise it is stopped altogether."
49    );
50}
Note: See TracBrowser for help on using the repository browser.