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

Last change on this file since 490 was 490, checked in by pbelotti, 9 years ago

cut repeated (EPL)...

  • 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 490 2011-01-14 16:07:12Z pbelotti $
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
17using namespace Couenne;
18
19/// constructor
20CouenneCrossConv::CouenneCrossConv (CouenneProblem *p,
21                                    JnlstPtr,
22                                    const Ipopt::SmartPtr <Ipopt::OptionsList>) {
23  setup ();
24}
25
26/// copy constructor
27CouenneCrossConv::CouenneCrossConv  (const CouenneCrossConv &src):
28
29  CglCutGenerator (src) {
30}
31
32/// destructor
33CouenneCrossConv::~CouenneCrossConv () {
34
35
36}
37
38/// Add list of options to be read from file
39void CouenneCrossConv::registerOptions (Ipopt::SmartPtr <Bonmin::RegisteredOptions> roptions) {
40
41  roptions -> AddLowerBoundedIntegerOption
42    ("crossconv_cuts",
43     "The frequency (in terms of nodes) at which Couenne cross-aux convexification cuts are generated.",
44     -99, 0,
45     "A frequency of 0 (default) means these cuts are never generated. "
46     "Any positive number n instructs Couenne to generate them at every n nodes of the B&B tree. "
47     "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."
48    );
49}
Note: See TracBrowser for help on using the repository browser.