-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix defect ensemble model (with Code) and genetic algorithm (#2317)
* Closes #2304 * added test * Update tests/framework/Optimizers/GeneticAlgorithms/continuous/unconstrained/test_ensembleModel_withGA_Code_and_Functions.xml * removed trailing * added missing input file * Update tests/framework/Optimizers/GeneticAlgorithms/continuous/unconstrained/metaModelWithCodeAndFunctionsAndGenetic/decayConstantB.py * isinstance * fixed parallel execution * readded heron and baycal? * removed trailing spaces * some cleaning * fixed test name and rook error message * module ensemble doc * Apply suggestions from code review * removed trailing whitespaces * fix for 'cvxpy'...this is not a very maintainable way to handle such exceptions * changed approach
- Loading branch information
Showing
15 changed files
with
348 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ticAlgorithms/continuous/unconstrained/metaModelWithCodeAndFunctionsAndGenetic/ABCDsum.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2017 Battelle Energy Alliance, LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
def run(self, Input): | ||
self.sum = self.A + self.B + self.C + self.D |
5 changes: 5 additions & 0 deletions
5
...rithms/continuous/unconstrained/metaModelWithCodeAndFunctionsAndGenetic/decayConstantB.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright Nucube Energy, Inc. | ||
|
||
def evaluate(self): | ||
return self.decay_A+0.0001 | ||
|
39 changes: 39 additions & 0 deletions
39
...ithms/continuous/unconstrained/metaModelWithCodeAndFunctionsAndGenetic/referenceInput.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" ?> | ||
<AnalyticalBateman> | ||
<totalTime>300</totalTime> | ||
<powerHistory>1 1 1</powerHistory> | ||
<flux>1e14 1e14 1e14</flux> | ||
<stepDays>0 100 200 400</stepDays> | ||
<timeSteps>100 100 100</timeSteps> | ||
<nuclides> | ||
<A> | ||
<equationType>N1</equationType> | ||
<initialMass>1.0</initialMass> | ||
<decayConstant>$RAVEN-decay_A|10$</decayConstant> | ||
<sigma>$RAVEN-sigma-A|10$</sigma> | ||
<ANumber>230</ANumber> | ||
</A> | ||
<B> | ||
<equationType>N2</equationType> | ||
<initialMass>1.0</initialMass> | ||
<decayConstant>$RAVEN-decay_B:0.000000006$</decayConstant> | ||
<sigma>$RAVEN-sigma-B:5$</sigma> | ||
<ANumber>200</ANumber> | ||
</B> | ||
<C> | ||
<equationType>N3</equationType> | ||
<initialMass>1.0</initialMass> | ||
<decayConstant>$RAVEN-decay-C:0.000000008$</decayConstant> | ||
<sigma>$RAVEN-sigma-C:3$</sigma> | ||
<ANumber>150</ANumber> | ||
</C> | ||
<D> | ||
<equationType>N4</equationType> | ||
<initialMass>1.0</initialMass> | ||
<decayConstant>$RAVEN-decay-D:0.000000009$</decayConstant> | ||
<sigma>$RAVEN-sigma-D:1$</sigma> | ||
<ANumber>100</ANumber> | ||
</D> | ||
</nuclides> | ||
</AnalyticalBateman> | ||
|
Oops, something went wrong.