Skip to content

Commit 92ad01f

Browse files
sotorrio1ksbeattie
andauthored
Updating documentation so PSUADE is not optional software (#1264)
* moving psuade-lite installation instructions from optional software to required steps when installing FOQUS * fixing typo * trying to match black versions * fixing typo in word 'incriment'. Replacing with 'increment' --------- Co-authored-by: Keith Beattie <ksbeattie@lbl.gov>
1 parent 6a92c48 commit 92ad01f

14 files changed

Lines changed: 37 additions & 36 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.3.0
3+
rev: 24.3.0
44
hooks:
55
- id: black
66
language_version: python3

docs/source/chapt_install/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ FOQUS:
2323
conda create --name ccsi-foqus -c conda-forge python=3.10 pywin32=306
2424
conda activate ccsi-foqus
2525
pip install ccsi-foqus
26+
conda install --yes -c conda-forge -c CCSI-Toolset psuade-lite=1.9 # Install psuade-lite
2627
foqus --make-shortcut # Create Desktop shortcut (Windows only)
27-
28-
-
2928
3029
- In a terminal, to run::
3130
@@ -44,6 +43,7 @@ Contents
4443

4544
install_python
4645
install_foqus
46+
install_psuade
4747
install_examples
4848
run_foqus
4949
install_optional

docs/source/chapt_install/install_optional.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ Windows and is used to interface with Excel, Aspen, and gPROMS software.
1010

1111
Other software listed below will enable additional features of FOQUS if available.
1212

13-
Install PSUADE-Lite (current version: 1.9.0)
14-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15-
16-
PSUADE (Problem Solving environment for Uncertainty Analysis and Design Exploration) is a software
17-
toolkit containing a rich set of tools for performing uncertainty analysis, global sensitivity
18-
analysis, design optimization, model calibration, and more.
19-
20-
`PSUADE-Lite <https://github.com/LLNL/psuade-lite>`_ is now available as a Conda package. To install just follow the steps below::
21-
22-
conda activate ccsi-foqus
23-
conda install --yes -c conda-forge -c CCSI-Toolset psuade-lite=1.9
24-
psuade --help # quickly test that the psuade executable has been installed correctly
25-
26-
The ``psuade`` executable should now be available within the Conda environment's folders, i.e. at the path ``$CONDA_PREFIX/bin/psuade`` (Linux, macOS) or ``%CONDA_PREFIX%\bin\psuade.exe`` (Windows).
27-
Once you set the full path in the corresponding field in the FOQUS GUI "Settings" tab, you should be able to use it normally within FOQUS.
28-
2913
Install Turbine and SimSinter (Windows Only)
3014
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3115
.. note::
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. _install_psuade:
2+
3+
Install PSUADE-Lite (current version: 1.9.0)
4+
--------------------------------------------
5+
6+
PSUADE (Problem Solving environment for Uncertainty Analysis and Design Exploration) is a software
7+
toolkit containing a rich set of tools for performing uncertainty analysis, global sensitivity
8+
analysis, design optimization, model calibration, and more.
9+
10+
`PSUADE-Lite <https://github.com/LLNL/psuade-lite>`_ is now available as a Conda package. To install just follow the steps below::
11+
12+
conda activate ccsi-foqus
13+
conda install --yes -c conda-forge -c CCSI-Toolset psuade-lite=1.9
14+
psuade --help # quickly test that the psuade executable has been installed correctly
15+
16+
The ``psuade`` executable should now be available within the Conda environment's folders, i.e. at the path ``$CONDA_PREFIX/bin/psuade`` (Linux, macOS) or ``%CONDA_PREFIX%\bin\psuade.exe`` (Windows).
17+
Once you set the full path in the corresponding field in the FOQUS GUI "Settings" tab, you should be able to use it normally within FOQUS.

foqus_lib/framework/optimizer/BFGS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def optimize(self):
201201
saveRes = self.options["Save results"].value
202202
setName = self.options["Set Name"].value
203203
if saveRes:
204-
setName = self.dat.flowsheet.results.incrimentSetName(setName)
204+
setName = self.dat.flowsheet.results.incrementSetName(setName)
205205
start = time.time()
206206
self.userInterupt = False
207207
self.bestSoFar = float("inf")

foqus_lib/framework/optimizer/NLopt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def optimize(self):
362362

363363
# The set name to use when saving evaluations in flowsheet results
364364
if saveRes:
365-
setName = self.dat.flowsheet.results.incrimentSetName(setName)
365+
setName = self.dat.flowsheet.results.incrementSetName(setName)
366366
#
367367
# Create optimization object and set options
368368
opt = nlopt.opt(method, n)

foqus_lib/framework/optimizer/OptCMA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def optimize(self):
256256
tolstagnation = self.options["tolstagnation"].value
257257
objRecFile = self.options["Log Objective"].value
258258
# Increment set name it already used
259-
setName = self.dat.flowsheet.results.incrimentSetName(setName)
259+
setName = self.dat.flowsheet.results.incrementSetName(setName)
260260
#
261261
# Some of these options get passed to the CMA-ES solver so set
262262
# up options dict for that

foqus_lib/framework/optimizer/PSUADE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def optimize(self):
124124
tol = self.options["tol"].value
125125
setName = self.options["Results name"].value
126126
# Increment set name if already used
127-
setName = self.dat.flowsheet.results.incrimentSetName(setName)
127+
setName = self.dat.flowsheet.results.incrementSetName(setName)
128128
#
129129
# Options are all read in so now initialize things
130130
#

foqus_lib/framework/optimizer/SLSQP.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def optimize(self):
198198
saveRes = self.options["Save results"].value
199199
setName = self.options["Set Name"].value
200200
if saveRes:
201-
setName = self.dat.flowsheet.results.incrimentSetName(setName)
201+
setName = self.dat.flowsheet.results.incrementSetName(setName)
202202
start = time.time()
203203
self.userInterupt = False
204204
self.bestSoFar = float("inf")

foqus_lib/framework/optimizer/SM_Optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def optimize(self):
318318
# The set name to use when saving evaluations in flowsheet results
319319
# (to get unique set names in flowsheet results section)
320320
if Saveresults:
321-
setName = self.dat.flowsheet.results.incrimentSetName(SetName)
321+
setName = self.dat.flowsheet.results.incrementSetName(SetName)
322322

323323
# The solver is all setup and ready to go
324324
start = time.time() # get start time

0 commit comments

Comments
 (0)