modelPeriodicSort

Sorts the values in input vector by value periodically (e.g. sort PBP offer by value every week before auction)

Extends from TransiEnt.Basics.Icons.DiscreteBlock.

Information

1. Purpose of model

Full documentation is not available yet. Please see comments in code or contact author per mail.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

week: Integer Input

samplerate: Integer Input

weekSortedPotentialPBP[param.nSystems]: RealOutput

weekUnsortedPotentialPBP[param.nSystems]: RealOutput

sortedVector[param.nSystems]:RealOutput

unsortedVector[param.nSystems]: RealInput

indexVector[param.nSystems]: Integer Output

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

(no remarks)

9. References

(no remarks)

10. Version History

Model created by Pascal Dubucq (dubucq@tuhh.de) on 01.10.2014

Quality check (Code conventions) by Rebekka Denninger on 01.10.2016

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerInputweek
Modelica.Blocks.Interfaces.IntegerInputsamplerate
Modelica.Blocks.Interfaces.RealOutput[param.nSystems]weekSortedPotentialPBP
Modelica.Blocks.Interfaces.RealOutput[param.nSystems]weekUnsortedPotentialPBP
Modelica.Blocks.Interfaces.RealOutput[param.nSystems]sortedVector
Modelica.Blocks.Interfaces.RealInput[param.nSystems]unsortedVector
Modelica.Blocks.Interfaces.IntegerOutput[param.nSystems]indexVector

Components

TypeNameDefaultDescription
PoolParameterparam
Real[:]algoWeekUnsortedPotentialPBP_temp
Real[:]algoWeekSortedPotentialPBP
Real[:]algoWeekSortedPotentialPBP_temp
Real[:]algoWeekUnsortedPotentialPBP
RealalgoSumPotentialPBP
RealsumPotentialPBP