7#ifndef __IPPIECEWISEPENALTY_HPP__
8#define __IPPIECEWISEPENALTY_HPP__
64 AddEntry(pen_r, barrier_obj, infeasi);
114 AddEntry(pen_r, barrier_obj, infeasi);
Templated class which stores one entry for the CachedResult class.
Class responsible for all message output.
Class for the Piecewise Penalty.
void operator=(const PiecewisePenalty &)
Default Assignment Operator.
PiecewisePenalty()
Default Constructor.
Index dim_
Dimension of the Piecewise Penalty (number of coordinates per entry)
void ResetList(Number pen_r, Number barrier_obj, Number infeasi)
Clear and reset the piecewise penalty list.
void UpdateEntry(Number barrier_obj, Number infeasi)
Update Piecewise Penalty entry for given coordinates.
Number BiggestBarr()
Get the value of the biggest barrier function so far.
void AddEntry(Number pen_r, Number barrier_obj, Number infeasi)
Add a entry to the list.
void Clear()
Delete all Piecewise Penalty entries.
bool Acceptable(Number Fzconst, Number Fzlin)
Check acceptability of given coordinates with respect to the Piecewise Penalty.
Index max_piece_number_
The max number of the break points in the piecewise penalty list.
Number min_piece_penalty_
The min penalty value for the piecewise penalty list.
~PiecewisePenalty()
Destructor.
PiecewisePenalty(Index dim)
Default Constructor.
void Print(const Journalist &jnlst)
Print current Piecewise Penalty entries.
PiecewisePenalty(const PiecewisePenalty &)
Copy Constructor.
std::vector< PiecewisePenEntry > PiecewisePenalty_list_
vector storing the Piecewise Penalty entries
void InitPiecewisePenaltyList(Number pen_r, Number barrier_obj, Number infeasi)
bool IsPiecewisePenaltyListEmpty()
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ipindex Index
Type of all indices of vectors, matrices etc.
ipnumber Number
Type of all numbers.
struct for one Piecewise Penalty entry.