TSP Solver and Generator
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
TSPSolver::SStep Struct Reference

This structure represents one step of solving. More...

#include <tspsolver.h>

+ Collaboration diagram for TSPSolver::SStep:

Classes

struct  SCandidate
 A structure that represents a candidate for branching. More...
 

Public Types

enum  NextStep { NoNextStep, LeftBranch, RightBranch }
 An enum that describes possible selection of the next step. More...
 

Public Member Functions

 SStep ()
 Assigns default values.
 

Public Attributes

TMatrix matrix
 This step's matrix.
 
double price
 The price of travel to this step.
 
SCandidate candidate
 A candiadate for branching in the current step.
 
QList< SCandidatealts
 A list of alternative branching candidates.
 
SSteppNode
 Pointer to the parent step.
 
SStepplNode
 Pointer to the left branch step.
 
SStepprNode
 Pointer to the right branch step.
 
NextStep next
 Indicates what branch was selected for the next step.
 

Detailed Description

This structure represents one step of solving.

A tree of such elements will represent the solving process.

Member Enumeration Documentation

An enum that describes possible selection of the next step.

Enumerator
NoNextStep 

No next step (end of solution)

LeftBranch 

Left branch was selected for the next step.

RightBranch 

Right branch was selected for the next step.


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