source: trunk/Couenne/src/main/BonCouenneInfo.cpp @ 349

Last change on this file since 349 was 349, checked in by pbelotti, 10 years ago

Added Couenne namespace. Committed old code for Feas Pump. Added code for ellipsoid cuts. Added (empty) CouenneMINLPInterface that might replace AMPL interface to Ipopt. Fixed a few warnings. Solved a few namespace problems due to ambiguity in Bonmin and AMPL. Added (empty) code for sdp cuts.

  • Property svn:keywords set to Id
File size: 1004 bytes
Line 
1/* $Id: BonCouenneInfo.cpp 349 2010-05-31 20:36:37Z pbelotti $ */
2// (C) Copyright International Business Machines Corporation 2007
3// All Rights Reserved.
4// This code is published under the Common Public License.
5//
6// Authors :
7// Andreas Waechter, International Business Machines Corporation
8//
9// Date : 02/10/2008
10
11#include "BonCouenneInfo.hpp"
12
13using namespace Couenne;
14
15
16/** Default constructor.*/
17CouenneInfo::CouenneInfo(int type):
18  BabInfo(type)
19{}
20
21/** Constructor from OsiBabSolver.*/
22CouenneInfo::CouenneInfo(const OsiBabSolver &other):
23  BabInfo(other)
24{}
25
26/** Copy constructor.*/
27CouenneInfo::CouenneInfo(const CouenneInfo &other):
28  BabInfo(other)
29{}
30
31/** Destructor.*/
32CouenneInfo::~CouenneInfo()
33{}
34
35/** Virtual copy constructor.*/
36OsiAuxInfo *
37CouenneInfo::clone() const
38{
39  return new CouenneInfo(*this);
40}
41
42CouenneInfo::NlpSolution::NlpSolution(int n, const double* sol, double objval)
43  :
44  n_(n),
45  objVal_(objval)
46{
47  sol_ = new double[n];
48  CoinCopyN(sol, n, sol_);
49}
50
51CouenneInfo::NlpSolution::~NlpSolution()
52{
53  delete [] sol_;
54}
Note: See TracBrowser for help on using the repository browser.