~ubuntu-branches/ubuntu/natty/coinor-cbc/natty

« back to all changes in this revision

Viewing changes to Cbc/examples/ClpQuadInterface.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Soeren Sonnenburg
  • Date: 2009-08-26 16:57:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090826165729-ybrezxdybg0hd1u6
Tags: upstream-2.3.0
ImportĀ upstreamĀ versionĀ 2.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2004, International Business Machines
 
2
// Corporation and others.  All Rights Reserved.
 
3
 
 
4
#ifndef ClpQuadInterface_H
 
5
#define ClpQuadInterface_H
 
6
 
 
7
#include "OsiClpSolverInterface.hpp"
 
8
 
 
9
//#############################################################################
 
10
 
 
11
/**
 
12
 
 
13
    This is to allow the user to replace initialSolve and resolve
 
14
*/
 
15
 
 
16
class ClpQuadInterface : public OsiClpSolverInterface {
 
17
 
 
18
public:
 
19
  //---------------------------------------------------------------------------
 
20
  /**@name Solve methods */
 
21
  //@{
 
22
    /// Solve initial LP relaxation 
 
23
    virtual void initialSolve();
 
24
 
 
25
    /// Resolve an LP relaxation after problem modification
 
26
    virtual void resolve();
 
27
 
 
28
  //@}
 
29
 
 
30
 
 
31
  /**@name Constructors and destructors */
 
32
  //@{
 
33
    /// Default Constructor
 
34
    ClpQuadInterface ();
 
35
    
 
36
    /// Clone
 
37
    virtual OsiSolverInterface * clone(bool CopyData=true) const;
 
38
    
 
39
    /// Copy constructor 
 
40
    ClpQuadInterface (const ClpQuadInterface &);
 
41
    
 
42
    /// Assignment operator 
 
43
    ClpQuadInterface & operator=(const ClpQuadInterface& rhs);
 
44
    
 
45
    /// Destructor 
 
46
    virtual ~ClpQuadInterface ();
 
47
 
 
48
  //@}
 
49
 
 
50
 
 
51
  /**@name Sets and Getss */
 
52
  //@{
 
53
  /** Setup fake objective.  It could also read an ampl .nl file
 
54
      or somehow get nonlinear  info */
 
55
  void initialize();
 
56
  /// Get objective function value (can't use default)
 
57
  virtual double getObjValue() const;
 
58
 
 
59
  //@}
 
60
 
 
61
  //---------------------------------------------------------------------------
 
62
 
 
63
private:
 
64
  
 
65
  /**@name Private member data */
 
66
  //@{
 
67
  /// True quadratic objective
 
68
  ClpObjective * quadraticObjective_;
 
69
  //@}
 
70
};
 
71
 
 
72
#endif