- Posts: 73
SAM freezes during PTgen refining
- solarjoe
- Topic Author
Less
More
20 Mar 2013 02:27 #1449
by solarjoe
SAM freezes during PTgen refining was created by solarjoe
Hello,
recently I asked about a possibility to refine the PTgen optimization.
As this was not possible I coded it myself and in general it works fine.
As we are evaluating the LCOE in the range of the first decimal place
is it likely that the default coarse optimizer does not find the global minimum.
So far the results show that if a finer discretization is used
the LCOE converges to a value that is about 0.2 - 0.3 $cents below
the default PTgen results.
Well, there is only one problem:
To find the minimum LCOE hundreds or thousands of SAM calculations are run.
And usually SAM freezes after a few hundred runs. I coded the refiner to
resume previous runs, so this is not big problem.
I have to kill SAM.exe using the task manager and on the next start
it asks to recover from a crash.
The calculations are run within three for-loops with
ClearResults()
ClearCache()
DeleteTempFiles()
ClearSimResults("My project")
before each run.
There is sufficient free space on the hard drive as well as sufficient RAM.
And I tried on two completly different machines, both show the same behaviour.
Do you have an idea what might cause the problem?
Kind regards,
Joe
recently I asked about a possibility to refine the PTgen optimization.
As this was not possible I coded it myself and in general it works fine.
As we are evaluating the LCOE in the range of the first decimal place
is it likely that the default coarse optimizer does not find the global minimum.
So far the results show that if a finer discretization is used
the LCOE converges to a value that is about 0.2 - 0.3 $cents below
the default PTgen results.
Well, there is only one problem:
To find the minimum LCOE hundreds or thousands of SAM calculations are run.
And usually SAM freezes after a few hundred runs. I coded the refiner to
resume previous runs, so this is not big problem.
I have to kill SAM.exe using the task manager and on the next start
it asks to recover from a crash.
The calculations are run within three for-loops with
ClearResults()
ClearCache()
DeleteTempFiles()
ClearSimResults("My project")
before each run.
There is sufficient free space on the hard drive as well as sufficient RAM.
And I tried on two completly different machines, both show the same behaviour.
Do you have an idea what might cause the problem?
Kind regards,
Joe
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
28 Mar 2013 16:02 #1450
by pgilman
Replied by pgilman on topic SAM freezes during PTgen refining
Hi Joe,
You might try using the False parameter with the Simulate() function:
Simulate(false)
That can save significant computer resources by not updating all of the results in the user interface after each simulation.
You should also avoid having more than one case in a file that you use for multiple simulations. SAM's user interface requires a lot of memory, and minimizing the number of cases minimizes the number of user interface objects.
We are aware of these memory management issues and are working to resolve them in a future version of SAM.
Best regards,
Paul.
You might try using the False parameter with the Simulate() function:
Simulate(false)
That can save significant computer resources by not updating all of the results in the user interface after each simulation.
You should also avoid having more than one case in a file that you use for multiple simulations. SAM's user interface requires a lot of memory, and minimizing the number of cases minimizes the number of user interface objects.
We are aware of these memory management issues and are working to resolve them in a future version of SAM.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- solarjoe
- Topic Author
Less
More
- Posts: 73
03 Apr 2013 01:07 #1451
by solarjoe
Replied by solarjoe on topic SAM freezes during PTgen refining
Hello Paul,
thanks for your response, I will give that a try.
Kind regards,
Joe
thanks for your response, I will give that a try.
Kind regards,
Joe
Please Log in or Create an account to join the conversation.
Moderators: pgilman