QGIS API Documentation  2.99.0-Master (40f86b2)
Public Member Functions | Static Public Member Functions | Friends | List of all members
pal::Problem Class Reference

Representation of a labeling problem. More...

#include <problem.h>

Public Member Functions

 Problem ()
 
 Problem (const Problem &other)=delete
 Problem cannot be copied. More...
 
 ~Problem ()
 
void addCandidatePosition (LabelPosition *position)
 Adds a candidate label position to the problem. More...
 
void chain_search ()
 Test with very-large scale neighborhood. More...
 
double compute_feature_cost (SubPart *part, int feat_id, int label_id, int *nbOverlap)
 
double compute_subsolution_cost (SubPart *part, int *s, int *nbOverlap)
 
LabelPositiongetFeatureCandidate (int fi, int ci)
 
int getFeatureCandidateCount (int i)
 
int getNumFeatures ()
 
QList< LabelPosition * > * getSolution (bool returnInactive)
 
PalStatgetStats ()
 
void init_sol_empty ()
 Basic initial solution : every feature to -1. More...
 
void init_sol_falp ()
 
void initialization ()
 
Problemoperator= (const Problem &other)=delete
 Problem cannot be copied. More...
 
void popmusic ()
 popmusic framework More...
 
double popmusic_chain (SubPart *part)
 POPMUSIC, chain. More...
 
double popmusic_tabu (SubPart *part)
 
double popmusic_tabu_chain (SubPart *part)
 POPMUSIC, Tabu search with chain'. More...
 
void reduce ()
 
SubPartsubPart (int r, int featseed, int *isIn)
 

Static Public Member Functions

static bool compareLabelArea (pal::LabelPosition *l1, pal::LabelPosition *l2)
 

Friends

class Pal
 

Detailed Description

Representation of a labeling problem.

Note
not available in Python bindings

Definition at line 104 of file problem.h.

Constructor & Destructor Documentation

◆ Problem() [1/2]

Problem::Problem ( )

Definition at line 58 of file problem.cpp.

◆ ~Problem()

Problem::~Problem ( )

Definition at line 84 of file problem.cpp.

◆ Problem() [2/2]

pal::Problem::Problem ( const Problem other)
delete

Problem cannot be copied.

Member Function Documentation

◆ addCandidatePosition()

void pal::Problem::addCandidatePosition ( LabelPosition position)
inline

Adds a candidate label position to the problem.

Parameters
positionlabel candidate position. Ownership is transferred to Problem.
Note
added in QGIS 2.12

Definition at line 125 of file problem.h.

◆ chain_search()

void Problem::chain_search ( )

Test with very-large scale neighborhood.

Definition at line 2141 of file problem.cpp.

◆ compareLabelArea()

bool Problem::compareLabelArea ( pal::LabelPosition l1,
pal::LabelPosition l2 
)
static

Definition at line 2240 of file problem.cpp.

◆ compute_feature_cost()

double Problem::compute_feature_cost ( SubPart part,
int  feat_id,
int  label_id,
int *  nbOverlap 
)

Definition at line 650 of file problem.cpp.

◆ compute_subsolution_cost()

double Problem::compute_subsolution_cost ( SubPart part,
int *  s,
int *  nbOverlap 
)

Definition at line 687 of file problem.cpp.

◆ getFeatureCandidate()

LabelPosition* pal::Problem::getFeatureCandidate ( int  fi,
int  ci 
)
inline

Definition at line 133 of file problem.h.

◆ getFeatureCandidateCount()

int pal::Problem::getFeatureCandidateCount ( int  i)
inline

Definition at line 131 of file problem.h.

◆ getNumFeatures()

int pal::Problem::getNumFeatures ( )
inline

Definition at line 129 of file problem.h.

◆ getSolution()

QList< LabelPosition * > * Problem::getSolution ( bool  returnInactive)

Definition at line 2245 of file problem.cpp.

◆ getStats()

PalStat * Problem::getStats ( )

Definition at line 2279 of file problem.cpp.

◆ init_sol_empty()

void Problem::init_sol_empty ( )

Basic initial solution : every feature to -1.

Definition at line 193 of file problem.cpp.

◆ init_sol_falp()

void Problem::init_sol_falp ( )

Definition at line 280 of file problem.cpp.

◆ initialization()

void pal::Problem::initialization ( )

◆ operator=()

Problem& pal::Problem::operator= ( const Problem other)
delete

Problem cannot be copied.

◆ popmusic()

void Problem::popmusic ( )

popmusic framework

Definition at line 393 of file problem.cpp.

◆ popmusic_chain()

double Problem::popmusic_chain ( SubPart part)

POPMUSIC, chain.

Definition at line 1736 of file problem.cpp.

◆ popmusic_tabu()

double Problem::popmusic_tabu ( SubPart part)

Definition at line 796 of file problem.cpp.

◆ popmusic_tabu_chain()

double Problem::popmusic_tabu_chain ( SubPart part)

POPMUSIC, Tabu search with chain'.

Definition at line 1883 of file problem.cpp.

◆ reduce()

void Problem::reduce ( )

Definition at line 127 of file problem.cpp.

◆ subPart()

SubPart * Problem::subPart ( int  r,
int  featseed,
int *  isIn 
)

Definition at line 569 of file problem.cpp.

Friends And Related Function Documentation

◆ Pal

friend class Pal
friend

Definition at line 107 of file problem.h.


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