source: trunk/Cbc/examples/ClpQuadInterface.hpp @ 1565

Last change on this file since 1565 was 12, checked in by forrest, 15 years ago

MIQP example

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
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
16class ClpQuadInterface : public OsiClpSolverInterface {
17
18public:
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
63private:
64 
65  /**@name Private member data */
66  //@{
67  /// True quadratic objective
68  ClpObjective * quadraticObjective_;
69  //@}
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.