Opened 8 years ago

Closed 8 years ago

#219 closed enhancement (fixed)

PWC 2010 formula

Reported by: freitag Owned by: audune
Priority: major Milestone:
Component: FsComp Version:
Keywords: PWC2010 Cc:

Description

Hello

I'm a pilot from Switzerland, responsible to some extent for all matters technical in our competitions. For our Swiss League and Swiss Cup events, we are forced by our rules to use the current PWC formula. In the past, whenever a new PWC formula came out, Agust or Stein-Tore implemented it pretty quickly in FS for us.

Unfortunately, the 2010 version, and its 2011 additions for stopped tasks are not very well documented. We've tried to use CompCheck?, which has the formulas implemented, but the experience so far was less than encouraging, we would very much like to go back to FS.

I have a pretty good understanding of what needs to be done to get the formula to do the right thing for non-stopped tasks. So the question is whether you guys have the resources to work with me, or whether you can make the code available to me so that I can do it myself. Any help is highly appreciated, we've already flown 4 tasks which are in urgent need of scoring.

You can reach me best by Email: civl_stuff[at]yourstruly[dot]ch

Change History (5)

comment:1 Changed 8 years ago by Øyvind Ellefsen

Owner: changed from Stein Tore Erdal to audune
Priority: criticalmajor

comment:2 Changed 8 years ago by freitag

I sent an Email to Agust last week, not sure if he received it. So just in case, I copy that Email here, in response to both Stein's and Agust's messages to me:

Yes, PWC switched to GAP in 2009, using OZGap2005. In 2010, this changed again. The basis is once again GAP, with the following modifications:

  1. No Arrival Points. This pot is assigned to the Leading Points pot.
  2. Distance calculations for Leading Points is changed to always consider "distance to goal", never "distance from start" (depending on your implementation, this may not even be a change)
  3. To calculate the Leading Points, use (distance to goal)2, instead of (distance to goal). This results in more leading points given for leading out early in the race
  4. For stopped tasks, calculate the altitude difference between the pilot's position at the time the task was stopped, and goal. Advance the pilot's distance by 2*(altitude difference). Compare with position furthest along the course before the task was stopped, and use the further distance of the two. If the additional distance gets him into goal, do NOT give him goal, only the distance points, up to the total task distance.
  5. Stopped Elapsed Time and Clock Start Races are now scored too if the last pilot who started had at least one hour of "racing" time. In Elapsed Time Races, this is the difference between the Stop time and the time when the last pilot crossed the start cylinder. In Clock Start Races, this is the difference between the Stop time and the last start gate.
  6. For all stopped tasks, a "Stop Validity" was introduced, which takes into account the average distance from goal, number of pilots still in the air and the pilots' distribution along the course. Unfortunately, this is all I know, the details were never made public. But in my opinion, in a first release, we can do without this rather esoteric feature.

For 2011, a "Time Normalisation Factor" (TNF) was proposed, to address the problem that the many leading points given out now make it almost impossible to have a fair Clock Start or Elapsed Time Race. But to my knowledge, this has not been approved by the PWC committee and has not yet been implemented, so in fact the 2010 formula is still in use.

For now, if we can get points 1-5 from the list above, we'd already be more than happy.

As mentioned above, I'd be happy to contribute myself and do the coding if this helps. We also have two tasks which we managed to score with CompCheck?. We should be able to use those for testing.

Looking forward to hearing back from you Joerg

comment:3 Changed 8 years ago by freitag

Hello

Did you have time to look into this? I'd be very happy to get some feedback on this topic. The reason we're getting a little anxious here: Next Friday a four-day competition starts, which we're supposed to score with the PWC 2010 formula. And right now we do not have a scoring solution for that. It would be really really really fabulous if you could help us out.

Two things to make things easier for you:

  1. Implementing the first three points in the list would be sufficient for now. We can live without the special treatment of stopped tasks, be it Race to Goal or others.
  1. If giving me access to the code base is a problem, just send me the source files, I'll edit them and send them back to you for building.

Please, is there any way you could help us here?

Thanks a lot Joerg

comment:4 Changed 8 years ago by freitag

Just realized that in my first comment, the list of changes got garbled up. Sorry about that. I do not see a way of editing it, so here's the correct version:

  1. No Arrival Points. This pot is assigned to the Leading Points pot.
  1. Distance calculations for Leading Points is changed to always consider "distance to goal", never "distance from start" (depending on your implementation, this may not even be a change)
  1. To calculate the Leading Points, use (distance to goal)2 instead of (distance to goal). This results in more leading points given for leading out early in the race
  1. For stopped tasks, calculate the altitude difference between the pilot's position at the time the task was stopped, and goal. Advance the pilot's distance by 2*(altitude difference). Compare with position furthest along the course before the task was stopped, and use the further distance of the two. If the additional distance gets him into goal, do NOT give him goal, only the distance points, up to the total task distance.
  1. Stopped Elapsed Time and Clock Start Races are now scored too if the last pilot who started had at least one hour of "racing" time. In Elapsed Time Races, this is the difference between the Stop time and the time when the last pilot crossed the start cylinder. In Clock Start Races, this is the difference between the Stop time and the last start gate.

comment:5 Changed 8 years ago by audune

Resolution: fixed
Status: newclosed

Fixed by Jörg and Stein-Tore! (PWC 2010 and PWC 2011)

Note: See TracTickets for help on using tickets.