Couenne 0.5.8
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Couenne::CouenneObjective Class Reference

Objective function. More...

#include <CouenneProblemElem.hpp>

+ Collaboration diagram for Couenne::CouenneObjective:

Public Member Functions

 CouenneObjective (expression *body)
 constructor
 
 ~CouenneObjective ()
 destructor
 
 CouenneObjective (const CouenneObjective &o, Domain *d=NULL)
 copy constructor
 
CouenneObjectiveclone (Domain *d=NULL) const
 cloning method
 
expressionBody () const
 get body
 
expressionBody (expression *newBody)
 Set body.
 
exprAuxstandardize (CouenneProblem *p)
 Get standard form of this objective function.
 
void print (std::ostream &out=std::cout)
 Print to iostream.
 

Protected Attributes

expressionbody_
 expression to optimize
 

Detailed Description

Objective function.

It consists of an expression only. We only assume minimization problems (proper sign changes are applied upon reading)

Definition at line 109 of file CouenneProblemElem.hpp.

Constructor & Destructor Documentation

◆ CouenneObjective() [1/2]

Couenne::CouenneObjective::CouenneObjective ( expression body)
inline

constructor

Definition at line 119 of file CouenneProblemElem.hpp.

◆ ~CouenneObjective()

Couenne::CouenneObjective::~CouenneObjective ( )
inline

destructor

Definition at line 123 of file CouenneProblemElem.hpp.

◆ CouenneObjective() [2/2]

Couenne::CouenneObjective::CouenneObjective ( const CouenneObjective o,
Domain d = NULL 
)
inline

copy constructor

Definition at line 127 of file CouenneProblemElem.hpp.

Member Function Documentation

◆ clone()

CouenneObjective * Couenne::CouenneObjective::clone ( Domain d = NULL) const
inline

cloning method

Definition at line 131 of file CouenneProblemElem.hpp.

◆ Body() [1/2]

expression * Couenne::CouenneObjective::Body ( ) const
inline

get body

Definition at line 135 of file CouenneProblemElem.hpp.

◆ Body() [2/2]

expression * Couenne::CouenneObjective::Body ( expression newBody)
inline

Set body.

Definition at line 139 of file CouenneProblemElem.hpp.

◆ standardize()

exprAux * Couenne::CouenneObjective::standardize ( CouenneProblem p)
inline

Get standard form of this objective function.

Definition at line 143 of file CouenneProblemElem.hpp.

◆ print()

void Couenne::CouenneObjective::print ( std::ostream &  out = std::cout)
inline

Print to iostream.

Definition at line 147 of file CouenneProblemElem.hpp.

Member Data Documentation

◆ body_

expression* Couenne::CouenneObjective::body_
protected

expression to optimize

Definition at line 114 of file CouenneProblemElem.hpp.


The documentation for this class was generated from the following file: