Difference between revisions of "Sandbox"

From Heureka Wiki
Sandbox
Jump to navigation Jump to search
 
(252 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:sandbox}}
  
 +
<syntaxhighlight lang="python" line='line'>
 +
def quickSort(arr):
 +
less = []
 +
pivotList = []
 +
more = []
 +
if len(arr) <= 1:
 +
return arr
 +
else:
 +
pass
 +
</syntaxhighlight>
  
Release notes 1.9.8
+
<!--
 +
{{#ask:
 +
[[Category:Variables]]
 +
| ?VariableUnit = Unit
 +
| ?VariableDescription = Description
 +
| mainlabel = Name
 +
}}
 +
-->
  
Version 1.9.x
+
==Bug fixed since version 2.8.0==
{{Languages}}
+
<mantis>
[[Category:Release]]
+
status = resolved, closed
[[Release date::2012-10-12]]
+
fixed_in_version = 2.9.3
==Summary==
+
show = id,category, summary, fixed_in_version, updated, resolution
==New features ==
+
</mantis>
*A report of what settings have been used when running RegWise or PlanWise TPG-simulation can now be obtained. You do this by right-clicking on a simulation result and choosing Show simulation report. 
 
  
*You can now define global conditions for a report, i.e. condition that apply to all variables that are included in the same report. For example, if you want to make a report for treatment units that have a certain site index (or range of site indices), you can add such a condition to the whole report, you do not have to add it to each variable in the report any longer.
+
English [[Image:Feed-icon.png]]
 
+
{{#ask:[[Category:Release]] [[newsdate::+]]
*You can also let the report generator create one report for each forest domain. The only thing you have to do is to mark a check box in the report template.
+
|?newsdate=
[Infoga figur]
+
|sort=newsdate
 
+
|order=desc
==Enhancements ==
+
  |date=newsdate
* In RegWise, treatment units in a given forest domain have been assigned randomly to control categories, If the forest domain has had more than one control category. You can now set a fixed seed for the random generator, to get the same allocation of treatment units to control categories in each simulation. This means that each treatment unit is assigned to the same control category in each run if you use the same seed, and if you use the same forest domain definitions. You can set the seed when you start the simulation, in the same dialog box as where you choose number of planning periods and discount rate. By default, the seed is 0, which means that a random seed will be chosen.  But if you set the seed to value larger than 0, it is considered a fixed seed.  Note: Do not confuse this seed with the seeds that can be set since before, in control category Regional Framework. The latter are used for allocating treatments to treatment units, not for allocating treatment units to control categories.
+
|format=feed
 
+
|type=rss
*Forest domains in PlanWise and RegWise can now be copied (right-click on a domain to access the function).
+
  |searchlabel= RSS
*The forest domain area (i.e. the productive forest areas of the treatment units included in the domain) is now displayed in the properties of a forest domain
+
}}
[Infoga bild].
+
-->
 
 
*Forest domains have an internal number that can be used in optimization models. These have until now been accessed in an optimization model (PlanWise only) by adding the forest domain as an optimization parameter, right-clicking that parameter and choosing View definition. The number is now also displayed in parenthesis in the title bar of a forest domain.  However, the number only refers to the current forest domain definitions. If you add or remove forest domain, the numbers may are not necessarily valid for previous simulations that were based on other forest domains. When running an optimization model that uses forest domain numbers in conditions, always check the check the correct number by checking the forest domain parameter mentioned above for the simulation that the optimization model should be run for.
 
{|
 
|[[Image:ReleaseNotes_1_9_8_domainNumber.png|left|Figur 3]]
 
|}
 
 
*In treatment units with more than one plot (such as when you have imported FMPP data), cleanings can be applied to part of a stand. The criteria for cleaning is now based on the state of each plot, not only the average values for the treatment unit.  For a cleaning to be applied, a certain proportion of the plots must qualify for cleaning. The same parameter as for thinning is used for this, namely Min Prop. Thinnable Plots in control table Treatment Model. It is possible that we add a specific parameter for cleaning, but for the time being we have solved it this way. The plot-level criteria for cleaning, is that there must be enough stems to clean (at least 500 stems/ha should be cleaned). The height range at the each plot level is less restricted than that dictated by parameters Height Range (Min and Max) for cleaning in control table Treatment Model. For the plot the mean height of sapling must be with Height Range Min minus 1 m and Height Range Max plus 2 m. Finally, for the plots that have passed as "candidates" for cleaning, the average mean height of saplings must meet the height range interval criteria in the control table.
 
 
 
*The default values for several control tables parameter have been updated. See [[Updated default values for control table parameters version 1.9.8]]. For example, cost for harvest and forwarder have been increased.
 
 
 
*The minimum diameter for trees transferred from sapling phase to older phase have been decreased to 2 cm, and the ingrowth function is not triggered until the mean age of a plot is at least 50 years. The mean age at which the ingrowth function is activated can be changed in control table Production Model (parameter Mean Age Invoke Ingrowth Function)
 
{|
 
|[[ReleaseNotes_1_9_8_ingrowthMinMeanAge.png|left|Figur 4]]
 
|}
 
   
 
*Intermediate optimization files are deleted when closing a PlanWise project.
 
 
 
*Result category SiteData are now displayed in the Result details view In RegWise and PlanWise.
 
 
 
==Bug fixes ==
 
*Fertilization was not applied correctly in the tactical treatment program generator. The generator did not consider that period length may not be five years long, so a fertilization may have been applied two years before harvesting instead of ten years, which is the time that should pass before harvesting (in Heureka). This has been fixed.
 
 
 
*Harvest residues were automatically extracted when applying fixed harvest treatment proposals in PlanWise. This led to a growth reduction after thinning, (extraction of harvest residues after thinning affects growth in period after thinning), and additional revenues from the harvest residues, even if no harvest residues should have been extracted. This has been fixed.
 
 
 
*The parameter values in a control table can be reset to their default values by right-clicking on a control table, or on a single parameter item in a control table, and selecting Reset to default. This has not been working correctly for parameters that are set in sub dialogs (i.e. dialogs opened from a control table). This has been fixed.
 
 
 
*(PlanWise, tactical TPG) The time period length have not been set as intended in period following the tactical periods in the tactical TPG. This has not a been a true bug, but if you had say for eacmple one year periods in your tactical horizon, the first five year period following the last tactical period started year 5.5 instead of year 7.5 (example refers to if period midpoint was used).
 
 
 
*In StandWise, you can start an analysis by stepping to the first period mid (year 2.5). However, this has reset period 0 to year 2.5, which is different from RegWise and PlanWise, where period 0 is year 0 and period is year 2.5, when period midpoint is activated. This has been changed so StandWise is working in the same way as RegWise and PlanWise.
 
 
 
*When choosing even-aged management for the first generation, conversion has not been possible to another management system (unmanaged or uneven-aged management). This has been changed so that it is now possible. Note that this does not work the other way around: When choosing Management System = “Unmanaged” for an existing stand it means that no harvesting will ever take place. If you would to simulate a scenario in which no harvesting should take place for a certain time ahead, but after that harvesting is allowed, you can easily accomplish this in at least two other ways. For example, in PlanWise, by setting Max Number of Thinnings = 0, and choosing a proper value for Min Final Felling Period Max). Another way is to import or enter a management proposal None for the treatment unit (or units) and set the treatment year for the last year for when harvesting may not be carried out. However, If you choose Manangement System = “Unevenaged (CCF)”, it applies to an infinite time horizon, and there is not exact way of simulating a scenario where you convert from uneven-aged management (not to confuse with uneven-aged stand!”) to even-aged. Possibly, one could apply an even-aged system with repeated thinnings from above and delay timing of the first felling period allowed.
 
 
 
*In previous versions of the optimization modeling tool in PlanWise, It was not possible to combine multiple subexpressions in the same condition if parenthesis were need to separate them. For example, expressions of the following type were not accepted:
 
..WHEN (a > b) AND (c > d OR e > f)
 
You had to circumvent this problem by defining additional optimization parameters. In this example, you could have defined a parameter g with the following definition:
 
if (c > d OR e > f) then 1 else 0 end ;
 
The you would have replaced “(c > d OR e > f)” with g == 1 to get
 
..WHEN (a > b) and (g == 1)
 
This has been solved so you can mix “and”-, and “or”-expression and separate them with parenthesis directly in a condition.
 

Latest revision as of 14:32, 6 December 2017


1def quickSort(arr):
2	less = []
3	pivotList = []
4	more = []
5	if len(arr) <= 1:
6		return arr
7	else:
8		pass


Bug fixed since version 2.8.0

Id Category Summary Fixed_in_version Updated Resolution
0000160 Map Exception when exporting result map 2.9.3 2017-12-06 fixed
0000155 Report generator Add height class diagram type to StandWise 2.9.3 2017-12-06 fixed
0000159 TPG NC-areas created during rerun of simulation do not get added to the optimization 2.9.3 2017-12-06 fixed
0000158 Map plugins Plugin for creating varying-width bufferzones based on water protection classification gives unexpected results 2.9.3 2017-12-06 fixed
0000162 TPG DeadWoodData initial distribution incorrectly calculated 2.9.3 2017-12-06 fixed
0000156 Report generator Improve design of histograms in StandWise 2.9.3 2017-12-06 fixed
0000163 Other Excel process remains running after program is closed 2.9.3 2017-12-06 fixed


English Feed-icon.png RSS -->