RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Optimization Error Expand / Collapse
Message
Posted 2/17/2011 07:59:35 Post #12913
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
When I run an optimization I get the following error:

An exception of type System.ArgumentOutOfRangeException was thrown.
Value of '146' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
at System.Windows.Forms.ProgressBar.set_Value(Int32 value)
at RightEdge.Shared.OptimizationProgressDialog.UpdateProgress(String overallText, Double overallProgress, String currentRunText, Double currentRunProgress)
at RightEdge.Shared.OptimizationRunner.<>c__DisplayClassd.b__c()

I use the optimization plug in that comes with RE.

Any ideas?


Posted 2/28/2011 02:50:59 Post #12944
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Any thoughts? I cannot use it at the moment.


Posted 2/28/2011 09:52:40 Post #12946
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
What is the low value, high value, and number of steps for all your optimization parameters?

Thanks,
Daniel
Posted 2/28/2011 21:07:10 Post #12950
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
it does not matter. I tried one parm that was 90 to 220 step 10 and one that was 2 to 5 step 0.5


Posted 2/28/2011 22:28:49 Post #12951
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
Well it looks like the optimization plugin is saying it's 146% done, which is causing the error. I wasn't able to reproduce the issue and I don't see a math error in it.

Could you use the source code of the optimization plugin to modify it so that before calling UpdateProgress() it prints out the overall progress and current progress that it passes to UpdateProgress()? That should help find the issue.

Thanks,
Daniel
Posted 3/24/2011 01:28:56 Post #12995
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
I just commented out the line UpdateProgress(null, overallProgress + (currentRunProgress / totalRuns), currentRunProgressText, currentRunProgress);

And it works fine but no display text. That will do me for now.

I tired it on a blank system and got the error as well so not sure what is going on.


« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 5:06pm

2005-2007 © RightEdge Systems