-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sim3 GA interface #1955
Sim3 GA interface #1955
Conversation
@Nhatkhang @Jimmy-INL Sorry for the late response, it seems there are so many files added to your branch. Could you clean up your branch so that we can review it? The following are my suggestions:
After the clean up, I think GitHub will show your changes and we can review it. Let me know if you need any help, and we can schedule a meeting to discuss it. |
Thank you for your response, I will re-add xml files to that directory and re-run with a smaller sample. |
@wangcj05 @Jimmy-INL Thank you for your time and patience. |
Hm, why is this deleting plugins/SRAW? |
@Nhatkhang did you delete plugins/SRAW? |
No, I did not delete it. The reason probably, I did not sync fork the plugins/STRAW part |
@Nhatkhang @Jimmy-INL Thanks a lot. Here are the additional steps that are needed:
|
Yes I will do it. |
Um, commit 938fcb0 deletes it. (Would you like me to make a clean branch that doesn't delete plugins/SRAW?) |
@joshua-cogliati-inl |
@Nhatkhang Based on your answer to question 2, here are some additional requests: |
I created a rebased version of the patch in: https://github.com/joshua-cogliati-inl/raven/tree/sim3-GA-interface-work
and then use |
…Git1.0 must use git add -A :/ to add all files
…te that Git1.0 must use git add -A :/ to add all files
@wangcj05 I added xml files and removed un-used file in b*_r* as you requested. I am working on the manual for simulate3 interface. |
@Nhatkhang It is going to continue to fail precheck until you fix the deletion of SRAW. |
@joshua-cogliati-inl Sorry for confusing. |
Sorry, I forgot a step. After that the checkout should work. |
@Nhatkhang I added your two new commits to sim3-GA-interface-work (and yes, learning git is a challenge) |
</Steps> | ||
<Functions> | ||
<External file="Simulate_RAVEN-GA/genmap.py" name="gen_pattern"> | ||
<variables> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the path should be relative to the working directory. Please replace Simulate_RAVEN-GA/
by ./
</variables> | ||
</External> | ||
<External file="Simulate_RAVEN-GA/constraints/FuelReloadCaseConstraints.py" name="impConstr1"> | ||
<variables> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
</variables> | ||
</External> | ||
<External file="Simulate_RAVEN-GA/constraints/FuelReloadCaseConstraints.py" name="impConstr2"> | ||
<variables> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
</variables> | ||
</External> | ||
<External file="Simulate_RAVEN-GA/constraints/FuelReloadCaseConstraints.py" name="impConstr3"> | ||
<variables> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
</variables> | ||
</External> | ||
<External file="Simulate_RAVEN-GA/constraints/FuelReloadCaseConstraints.py" name="impConstr4"> | ||
<variables> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
</variables> | ||
</External> | ||
<External file="Simulate_RAVEN-GA/constraints/FuelReloadCaseConstraints.py" name="impConstr5"> | ||
<variables> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And finally here
def findInps(self,inputFiles): | ||
""" | ||
Locates the input files required by Scale Interface | ||
@ In, inputFiles, list, list of Files objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the docstring. For instance, should this be simulate instead of Scale
This method is called by the RAVEN code at the end of each run if the return code is == 0. | ||
This method needs to be implemented by the codes that, if the run fails, return a return code that is 0 | ||
This can happen in those codes that record the failure of the job (e.g. not converged, etc.) as normal termination (returncode == 0) | ||
In the case of SCALE, we look for the expression "terminated due to errors". If it is present, the run is considered to be failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line or update it accordingly
@joshua-cogliati-inl I tried again but I do not see your updated remote branch as follows: @Jimmy-INL I have done the clean up, after resolving with plugins/STRAW deletion, I will push it to remote. |
Run: After you have the branch, you can transfer any new commits you made to it with |
Hi @joshua-cogliati-inl, I run get fetch --all as you suggested but it seems that I do not have the permission to fecth your branch: |
Hm, can you get to it via web: https://github.com/joshua-cogliati-inl/raven/tree/sim3-GA-interface-work
|
self.sequence = ['simulate'] #may be no need | ||
else: | ||
self.sequence = [elm.strip() for elm in sequence.text.split(",")] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nhatkhang and @wangcj05, does this give the user the option if he did not provide a sequence to default to simulate? Do we really want that?
Thank you for your patience, @joshua-cogliati-inl . I successfully fetched your branch. I updated some files in my local dir then I tried to push (first time) by using "git push --set-upstream sim3-GA-interface" (my remote dir that I want to push) but error shown as follow: @Jimmy-INL, personally, I think that function is to ensure if the user do not provide the sequence 'simulate', then it is set to 'simulate' by default. |
The remote name is what should come after --set-upstream. This is probably It will probably create a new branch called sim3-GA-interface-work, and it is probably simplest to create a new pull request with that branch (it is possible to modify your original branch, but that require reseting or rebasing, which are easy to mess up). |
Thank you, I made it to a new branch called sim3-GA-interface-work, thus I will probably close this PR and create a new one for this new branch. |
Note: this has been replaced by #1992 |
This one can be closed. |
Pull Request Description
#1956 Adding Simulate3 - GA interface to RAVEN
Update the CodeInterfaces class for reading in/out of Simulate3 and perform GA on loading pattern optimized problem.
This interface is specifically designed for loading pattern problems only. Therefore, there are still some drawbacks to it. Furthermore, in this current version, due to the fact that GA from raven is applied to the single objective optimized problem, a dummy variable is created in the interface/data in an attempt to convert multi-objective to a single objective problem.
khnguy22-NCSU ARDOR team
This request review is specially assigned to @wangcj05
For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.
<internalParallel>
to True.raven/tests/framework/user_guide
andraven/docs/workshop
) have been changed, the associated documentation must be reviewed and assured the text matches the example.