View Issue Details

IDProjectCategoryView StatusLast Update
0000772HeurekaTPGpublic2025-09-02 08:41
ReporterPeder Assigned Tojonare  
PrioritynormalSeveritymajorReproducibilitysometimes
Status acknowledgedResolutionopen 
Product Version2.23.0.2 
Summary0000772: Too few alternatives generated
DescriptionTPG generates too few alternatives.
PlanWise version: 2.23.0.16 ("PlanWise Preview")
Steps To ReproduceReproduction is somewhat arbitrary, and project settings when importing affect whether the bug occurs or not.

1. Create new project in PlanWise
2. Control table settings:
   -Production Model: Ingrowth model = None, Sapling Damage Factor (Moose) = 2.36
  - Treatment Program Generator: Thinning Period Delax Max = 0
3. Import attached stand register file
4. Run TPG with 21 periods planning horizon, period midpoint and Max Number Of Programs = 50

Expected result:
More alternatives. For example, only one alternative is created with final felling in period 3. With final final in period 3, final felling in generation 2 is possible in period 17, 18, 19 and 20.
TagsNo tags attached.
ProductPlanWise

Activities

Peder

2025-08-21 08:34

administrator   ~0000651

Beståndsregisterfilen
B2H_250703_67E2g7454.csv (1,320 bytes)   
AreaLevel2;AreaLevel3;StandId;date;Layer;Register;ProdArea;NCArea;CoordEast;CoordNorth;Altitude;SKSManagementClass;BlueTargetClass;MaturityClass;SiteIndexSpecies;SIS;SIH;SI_Management;VegetationType;BottomLayer;Ditch;SoilMoistureCode;SoilDepth;SoilWater;Texture;SoilBearingCapacity;Surface;Slope;SlopeDirectionNorthEast;TerrainTrspDist;H;DGV;MeanAge;G;N;V;CAI;EvenAgedCode;PropPine;PropSpruce;PropBirch;PropAspen;PropOak;PropBeech;PropOtherBroadleaf;PropSouthernBroadleaf;PropContorta;PropLarch;HPine;HSpruce;HBirch;HAspen;HOak;HBeech;HOtherBroadleaf;HSouthernBroadleaf;HContorta;HLarch;DgPine;DgSpruce;DgBirch;DgAspen;DgOak;DgBeech;DgOtherBroadleaf;DGSouthernBroadleaf;DgContorta;DgLarch;UserDefined1;UserDefined2;UserDefined3;UserDefined4;UserDefined5;UserDefined6;UserDefined7;UserDefined8;UserDefined9;UserDefined10;RoadId1;LastThinningYear;LastFertilizationYear;RegenerationMethod;RegenerationSpecies;RegenerationBreeded;Note
22;222;67E2g7454;2025-05-15;1;17;1.1482;0.0000;465435;6727443;305;PG;;;T;20.8266666666667;16;16;;;0;;;;;1;4;2;0;331;16.7741;23.3137;144;16.5042;460.336;131.157;0;;0.951429;0.0291429;0.0188571;0;0;0;0;0;0;0;;;;;;;;;;;;;;;;;;;;;;;;1015;0;2.9;;;;2050;0;1996-11-01;;;1;;SampleGroup: Managed PineFramskriven av skript****G, V, Hgv, Dgv replaced with SGD-valuesNktyp: Altitude missing?:False
B2H_250703_67E2g7454.csv (1,320 bytes)   

jonare

2025-09-02 08:22

administrator   ~0000652

This problem has several underlying issues, which all need to be resolved:
1. The SaplingDamageSimulator output damage varied by period, causing the TPG to sometimes fail to reproduce cached programs.
2. There is a bug where the forest state where the combination of sapling damage and cleaning results in inconsistent forest state (similar to 1.). I have not been able to fix this yet.
3. At least for even aged programs, the TPG will allocate space for alternatives that have their final felling in different periods. Often programs that fit in the first evaluation (say 3 alternatives generated with final felling in period 1, and second FF in period 18, 19, 20) will result in fewer programs over the planning horizon when the first final felling is later (if the first final felling was in period 3 instead, only one program with final felling in period 20 would have been generated). Currently, the TPG will not go back and start evaluating more possible programs, thus ending using less programs than the user setting. In the example here, the TPG has space left since programs fell out, and could go back and perhaps generate a program with no final felling in the planning horizon.
4. The setting "always thinning" seems a little bit inconsistent, since when reproducing the bug 772 what happens is that the program that didn't have thinnings due to the problem in 1. suddenly is removed from the results if max number of programs is increased from 20 to 50.

jonare

2025-09-02 08:41

administrator   ~0000653

revision 22773 fixes 1.

Issue History

Date Modified Username Field Change
2025-08-20 16:51 Peder New Issue
2025-08-21 08:25 Peder Steps to Reproduce Updated
2025-08-21 08:26 Peder Steps to Reproduce Updated
2025-08-21 08:27 Peder Description Updated
2025-08-21 08:34 Peder Note Added: 0000651
2025-08-21 08:34 Peder File Added: B2H_250703_67E2g7454.csv
2025-09-02 08:22 jonare Assigned To => jonare
2025-09-02 08:22 jonare Status new => acknowledged
2025-09-02 08:22 jonare Note Added: 0000652
2025-09-02 08:41 jonare Note Added: 0000653