source: trunk/Cbc/examples/ClpQuadInterface.hpp

Last change on this file was 2469, checked in by unxusr, 4 months ago

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1// $Id: ClpQuadInterface.hpp 2469 2019-01-06 23:17:46Z stefan $
2// Copyright (C) 2004, International Business Machines
3// Corporation and others.  All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6#ifndef ClpQuadInterface_H
7#define ClpQuadInterface_H
8
9#include "OsiClpSolverInterface.hpp"
10
11//#############################################################################
12
13/**
14
15    This is to allow the user to replace initialSolve and resolve
16*/
17
18class ClpQuadInterface : public OsiClpSolverInterface {
19
20public:
21  //---------------------------------------------------------------------------
22  /**@name Solve methods */
23  //@{
24  /// Solve initial LP relaxation
25  virtual void initialSolve();
26
27  /// Resolve an LP relaxation after problem modification
28  virtual void resolve();
29
30  //@}
31
32  /**@name Constructors and destructors */
33  //@{
34  /// Default Constructor
35  ClpQuadInterface();
36
37  /// Clone
38  virtual OsiSolverInterface *clone(bool CopyData = true) const;
39
40  /// Copy constructor
41  ClpQuadInterface(const ClpQuadInterface &);
42
43  /// Assignment operator
44  ClpQuadInterface &operator=(const ClpQuadInterface &rhs);
45
46  /// Destructor
47  virtual ~ClpQuadInterface();
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  /**@name Private member data */
65  //@{
66  /// True quadratic objective
67  ClpObjective *quadraticObjective_;
68  //@}
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.