Go to Post Now I watch students walk through the halls together as Robotics members. - MysterE [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-03-2015, 01:25
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
2015 OPR After Week Three Events

The OPR/CCWM numbers after three weeks of events have been posted, please see

http://www.chiefdelphi.com/media/papers/2174

If you find any error or have any questions, please let me know.

There are a number of points I would like to make:

1) Calculation of Component OPR has been modified. Surrogate team issue has been resolved. DQ team issue still exist. That is the reason why I am still doing scale and shift operations. I will post more explanation later.

2) Calculation of Component OPR for World Teams is not done this week. I have some problem with memory management in my program.

3) The Component OPR has been republished with the improved method for the Week 1 and Week 2 events.

4) I added Foul OPR.
__________________
Please don't call me Mr. Ed, I am not a talking horse.

Last edited by Ed Law : 16-03-2015 at 13:10.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2015, 02:04
JB987 JB987 is offline
Registered User
AKA: Joe Barry
FRC #0987 (HIGH ROLLERS)
Team Role: Coach
 
Join Date: May 2006
Rookie Year: 2002
Location: LAS VEGAS
Posts: 1,176
JB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond repute
Re: 2015 OPR After Week Three Events

After seeing the success of our HP throwing litter in the Dallas playoffs, hindsight and this data certainly tell us we won't be holding back during quals next time out
__________________
"A genius is just a talented person who does his homework" T. Edison
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2015, 02:05
MrRiedemanJACC MrRiedemanJACC is offline
Registered User
FRC #2611 (Jacktown Vectors)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Grass Lake, MI
Posts: 153
MrRiedemanJACC will become famous soon enough
Re: 2015 OPR After Week Three Events

Thanks for putting this together!
Reply With Quote
  #4   Spotlight this post!  
Unread 16-03-2015, 11:06
smurfgirl smurfgirl is offline
Still a New Englander on the inside
AKA: Ellen McIsaac
FRC #5012 (Gryffingear)
Team Role: Mentor
 
Join Date: Oct 2006
Rookie Year: 2005
Location: Palmdale, CA
Posts: 1,725
smurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond reputesmurfgirl has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Thanks for sharing this!
__________________
Ellen McIsaac
Team 1124 ÜberBots 2005-2015
Team 5012 Gryffingear 2015+
Reply With Quote
  #5   Spotlight this post!  
Unread 16-03-2015, 12:00
Coach Norm Coach Norm is offline
Team 2468 Coach/Adviser
AKA: Norman Morgan
FRC #2468 (Team Appreciate)
Team Role: Teacher
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Austin, Texas
Posts: 442
Coach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond reputeCoach Norm has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by JB987 View Post
After seeing the success of our HP throwing litter in the Dallas playoffs, hindsight and this data certainly tell us we won't be holding back during quals next time out
The value is skewed when you have teams who score multiple litter in RCs during the match such as you and many others. Litter on the ground was a factor for delivering stacks and preventing teams from getting to Coopertition at Alamo this past weekend.
Timing of litter throwing was very important for the Noodle Aces, Noodle Jesus's and Noodle Ali's.
__________________
FRC 2468 Team Lead 2008 - Present

Win The Day!
Reply With Quote
  #6   Spotlight this post!  
Unread 16-03-2015, 14:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by Ed Law View Post
2) Calculation of Component OPR for World Teams is not done this week. I have some problem with memory management in my program.
To take some of the heat off Ed while everyone is waiting, I posted component OPRs for weeks 1thru3 combined data (albeit without Ed's special handling of surrogates etc). Caveat utilitor: I just wrote the scripts and ran them. Did a manual sanity check of a few data points.


Reply With Quote
  #7   Spotlight this post!  
Unread 16-03-2015, 17:14
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: 2015 OPR After Week Three Events

I changed how the component OPRs are calculated. I am going to give credit to others who first proposed it. What I decided to do is based on

http://www.chiefdelphi.com/forums/sh...65&postcount=3

except I only make that adjustment for surrogate teams only and not DQ'd teams (more on that later). Then I do what Ether suggested in this post

http://www.chiefdelphi.com/forums/sh...08&postcount=5

in order to make it a symmetric positive definite matrix.

I calculated the fouls based on

Foul points = Qualification Average * Number of matches played - Coopertition points - Auto points - Container points - Tote points - Litter points

Based on my testing, if there is no DQ for that event, the sum of all component OPRs is very close to the total OPR, so this is an improvement from before. This is possible now because I can identify easily which are the surrogate teams (negative numbers). However I still cannot identify which teams are DQ'd in which match from the FIRST website. Even if we can, I am still not convinced we can ignore them.

Keep in mind that a new method needs to work for all years and not just for a particular year. Just knowing a team got DQ'd does not mean that team did not contribute to the score unless the whole team got DQ'd and they got 0 points. If just one team got DQ'd. It could mean they were not even on the field or they could have scored most of the points but got a red card. I propose we handle this the same way as before, by adjusting based on scale and shift as described in the following post.

http://www.chiefdelphi.com/forums/sh...97&postcount=5
__________________
Please don't call me Mr. Ed, I am not a talking horse.

Last edited by Ed Law : 16-03-2015 at 21:39.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-03-2015, 12:41
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Thank you for being patient. The World OPR now has the components published. The memory problem I had was due to the A(T) * A operation. With 40-60 teams, that is not a big deal. But when I calculate the World Component OPR, after 3 weeks, we have about 1800 teams. That is a 1800 X 1800 matrix and a total of over 6 billion multiplications and 6 billion additions.

I finally have to swap the rows and columns of the matrix to reduce the amount of memory paging in and out. It still took over 10 minutes on my i5 computer with 4 GB of memory. It is done. I am not looking forward to when there are 2900 teams after 6 weeks of competition. It will take over 40 minutes just to calculate that A(T) * A.

I need a faster computer to do this! May be I will borrow our team's CAD workstation to run this. It has an i7 and tons of memory.
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-03-2015, 12:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by Ed Law View Post
I need a faster computer to do this!

Ed, see the email I just sent you. You can generate the [N] matrix directly (with surrogates omitted) from the raw match results data, bypassing the [A']*[A] operation. [N] will still be symmetric positive definite if you do it right. Let me know if you need more info.

FWIW:

Tools like Octave support sparse matrices. Perhaps the most recent versions of VBA also do?

Using sparse matrix technology, Octave takes only 16 milliseconds to compute [N]=[A']*[A], and another 16 milliseconds to compute [x]=[N]\[d], for 1812 teams and 7292 alliance scores (3646 matches).



PS: This might be a quick fix: Does your version of VBA support integer multiplication of integer matrices? Both [A] and [N] are integer. Set the integer size to the native word size of your machine (probably 64-bit).

PPS: I attached the [A] and [N] matrices if anyone is curious.


Attached Files
File Type: doc OctaveLog2.doc (20.0 KB, 7 views)
File Type: txt A.txt (261.0 KB, 8 views)
File Type: txt N.txt (513.5 KB, 2 views)

Last edited by Ether : 17-03-2015 at 13:52. Reason: added integer PS
Reply With Quote
  #10   Spotlight this post!  
Unread 17-03-2015, 16:06
Citrus Dad's Avatar
Citrus Dad Citrus Dad is offline
Business and Scouting Mentor
AKA: Richard McCann
FRC #1678 (Citrus Circuits)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2012
Location: Davis
Posts: 991
Citrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by Ed Law View Post
Thank you for being patient. The World OPR now has the components published. The memory problem I had was due to the A(T) * A operation. With 40-60 teams, that is not a big deal. But when I calculate the World Component OPR, after 3 weeks, we have about 1800 teams. That is a 1800 X 1800 matrix and a total of over 6 billion multiplications and 6 billion additions.

I finally have to swap the rows and columns of the matrix to reduce the amount of memory paging in and out. It still took over 10 minutes on my i5 computer with 4 GB of memory. It is done. I am not looking forward to when there are 2900 teams after 6 weeks of competition. It will take over 40 minutes just to calculate that A(T) * A.

I need a faster computer to do this! May be I will borrow our team's CAD workstation to run this. It has an i7 and tons of memory.
It may be that you have to move to a statistical / econometric package like STATA which can handle larger data sets? Or have you tried R?
Reply With Quote
  #11   Spotlight this post!  
Unread 17-03-2015, 16:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by Citrus Dad View Post
Or have you tried R?
Are you an R power user?

Perhaps you could answer this question for me.

Note: The question is specifically how to do the LAD computation using R. I have already successfully used AMPL & GAMS (MINOS, Gurobi, MOSEK, OOQP), Python (CVXOPT), and Octave (GLPK); I'd like to compare R's performance.


Reply With Quote
  #12   Spotlight this post!  
Unread 17-03-2015, 17:15
Citrus Dad's Avatar
Citrus Dad Citrus Dad is offline
Business and Scouting Mentor
AKA: Richard McCann
FRC #1678 (Citrus Circuits)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2012
Location: Davis
Posts: 991
Citrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond reputeCitrus Dad has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by Ether View Post
Are you an R power user?

Perhaps you could answer this question for me.

Note: The question is specifically how to do the LAD computation using R. I have already successfully used AMPL & GAMS (MINOS, Gurobi, MOSEK, OOQP), Python (CVXOPT), and Octave (GLPK); I'd like to compare R's performance.


Unfortunately, my partner is the R power user. He extols its virtues and I'm passing them along. I have used STATA and I think it could easily handle the matrix and exceptions that Ed is facing.
Reply With Quote
  #13   Spotlight this post!  
Unread 17-03-2015, 19:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 2015 OPR After Week Three Events

Quote:
Originally Posted by Citrus Dad View Post
I have used STATA and I think it could easily handle the matrix and exceptions that Ed is facing.
Is there a STATA plugin for Excel? If not, I am almost certain Ed has no interest in starting all over with a new tool. What he's seeking is a way to make the memory requirements and computation time reasonable with what he already has.

That is why I did not suggest that he switch to Octave, which is free, and easy to use, and very fast (see my previous post).

I made three suggestions:

1) Find out if VBA now supports sparse matrices. If so, that is arguably the best solution.

2) Make the A an N matrices integers and do integer matrix multiply (if VBA supports it) to create N=A'*A . If that works, it would be a fairly simple fix.

3) Generate the N matrix directly from the raw match results data, without incrementing the appropriate 4 matrix elements (2 for each alliance partner) for each surrogate team. This involves more coding, but it would avoid the A'*A computation that is presently taking so much time in the spreadsheet.


Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi