CCSI-Toolset / FOQUS

FOQUS: Framework for Optimization and Quantification of Uncertainty and Surrogates
https://foqus.readthedocs.io
Other
46 stars 54 forks source link

OUU: Value of objective function #131

Closed fsoepyan closed 5 years ago

fsoepyan commented 6 years ago

I did 3 example problems using the OUU tab in FOQUS, including the example problem for Issue #24, which uses a JSON file from SimSinter and a simulation from Aspen Custom Modeler (ACM).

For all 3 example problems:

sotorrio1 commented 6 years ago

Hi @fsoepyan

In your example #2 you said you declared X01-X04 Z1 and the rest of your variables Z4. If you want to use 'PosteriorSampleNew' you need 13 variables but if you use your full flowsheet you have more than that (X05-X14 and Y01-Y07). What am I missing?

fsoepyan commented 6 years ago

For Example 2 (the one with BFB in the file name and node name):

sotorrio1 commented 6 years ago

Got it. Thanks!

ou3llnl commented 6 years ago

@fsoepyan : What value do you get when you run in flowsheet? Is it very different? Also, some models have some inherent randomness. Is that true in this case?

fsoepyan commented 6 years ago
fsoepyan commented 6 years ago
ksbeattie commented 6 years ago

@sotorrio1 is working with a new version of psuade, will keep us posted.

fsoepyan commented 6 years ago

Objective Value: -5556.319 d1 = 0.999657 d2 = 0.944902 d3 = 0.944902 d4 = 0.562676

fsoepyan commented 6 years ago

Objective value = -5556.319 x1 = 3843.996 x2 = 1124.004 x3 = 0.163578 x4 = 0.2516

ngbrenda commented 6 years ago

OUU returns x and f(x). When the user enters x* into the flowsheet (which evaluates f), a different answer was returned. Need to check this out.

ksbeattie commented 6 years ago

@sotorrio1 will follow up on this one

fsoepyan commented 6 years ago

Iteration = 1700 Objective value = -1041.183 Decision variable 1 = 0.95 Decision variable 2 = 301.09 Decision variable 3 = 199.29

fsoepyan commented 6 years ago

Objective value = -5556.32 d1 = 0.9997 d2 = 0.9449 d3 = 0.9449 d4 = 0.5627

Objective value = -0.8298

Objective value = -1041.18 d1 = 1.0288 d2 = 1.4572 d3 = 0.9937 d4 = 1.4612

Objective value = 11.32552

ksbeattie commented 6 years ago

@sotorrio1 says he is blocked on this by #147

sotorrio1 commented 5 years ago

@fsoepyan I can't exactly run the problems you're mentioning (because of issue #148) but I've done some testing with toy problem Rosenbrock No Vectors (foqus_lib/examples/UQ). If you run OUU using x1, x2, x3 as Z1 and x4, x5, x6 as Z4; loading a 20 samples file for Z4 making sure the value for each variable is the same across the 20 samples (something that doesn't happen when you ask psuade to randomly generate the samples for you). Then if you use those values for your input variables in the flowsheet, you will get the same objective value. My point is that running OUU vs running flowsheet doesn't mean you will get the same results since you're doing single runs in the flowsheet and using samples in OUU.

fsoepyan commented 5 years ago

Iteration: 60 Objective Value: -111111 conv: 0.6 H2_flow: 293.1874 TOL_flow: 294.6004

Objective Value: -1724.61 conv: 0.95 H2_flow: 295.55 TOL_flow: 249.86

sotorrio1 commented 5 years ago

@fsoepyan So this problem doesn't require turbine? I might be able to reproduce your error if you send me the necessary files to run it. Thanks!

fsoepyan commented 5 years ago

Actually, this problem requires turbine

sotorrio1 commented 5 years ago

I can't mimic this problem, but for this issue I want to reference my last comment (Oct 15, 2018, 5:31 PM PDT) on issue #269

ksbeattie commented 5 years ago

@sotorrio1 is waiting for @fsoepyan to reproduce this.

fsoepyan commented 5 years ago

I will close this issue. Please see my comments from 11/7/18 on Issue #269.