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: Problem with constraint #110

Closed fsoepyan closed 5 years ago

fsoepyan commented 6 years ago

I tried to run OUU, where I have a constraint.

ouu_02_26_2018
ou3llnl commented 6 years ago

@fsoepyan : Immediately after encountering this error, what are the contents of psuadelog in the working directory?

fsoepyan commented 6 years ago

Below are the contents of psuadelog:


sotorrio1 commented 6 years ago

@fsoepyan Could you send me the file you used?

sotorrio1 commented 6 years ago

@fsoepyan I assume you're using the large PosteriorSample file for "Load existing sample for Z4" and then selecting "Use Response Surface" because the sample size is so big.

Using Response Surface seems to give some problems when using constraints. If you don't select Response Surface, OUU runs without crashing (it will take forever with that sample size though).

ou3llnl commented 6 years ago

It looks like we have an error in the script that runs psuade. I noticed this:

Type for variable 1 ? ERROR: input not within range.
Type for variable 1 ? Type for variable 2 ? 

and this: Select option 1 or 2 : ERROR: input is not an integer. The PSUADE prompt to ask for M2 is missing but our FOQUS code is expecting it, which is probably what's screwing this up. Will ask Charles about this.

fsoepyan commented 6 years ago

Answering Pedro's (@sotorrio1) question, I actually used the "Generate new sample for Z4" option under "UQ Setup".

For the "Sample Scheme", I selected "Latin Hypercube" with 20 samples.

ngbrenda commented 6 years ago

Please follow the instructions in INSTALL.md and download psuade 1.7.10. Try again and let us know if the problem persists.

fsoepyan commented 6 years ago

Here is what I did:

To use the newest version of psuade (version 1.7.10), what should I change the "PSUADE EXE" to?

sotorrio1 commented 6 years ago

I would go to the following link:

https://github.com/LLNL/psuade/releases

and download the "psuade_project-1.7.10-win32.exe" file. Then install psuade and for the new PSUADE EXE you would have 'C:\Program Files (x86)\psuade_project 1.7.10\bin\psuade.exe

fsoepyan commented 6 years ago

Here is what I did:

fsoepyan commented 6 years ago
sotorrio1 commented 6 years ago

Two separate issues here. It's true the new psuade version should be able to handle constraints and it's not. We'll double check with Charles if there is anything wrong with the driver and the commands sent to psuade. The stop button works, but when there is another error the communication with psuade stops and it's not getting any other messages/instructions. That's why it seems the stop button doesn't work

ksbeattie commented 6 years ago

@sotorrio1 will follow up with Charles Tong on this.

sotorrio1 commented 6 years ago

Should be fixed with PR #270 @fsoepyan would you mind checking if it now works for you? Thanks!

fsoepyan commented 6 years ago
sotorrio1 commented 6 years ago

@fsoepyan Are you running the example you sent me a while ago "MEA_Column_02_23_2018.foqus" ? The one with 17 inputs (X1-X4 are Z1 and the rest Z4), surrogate.negCO2 as the objective and C01, C02 and C03 as inequality constraints. I tried running that one and the issue I'm getting is that even if I tell OUU to generate the samples for Z4, it crashes because I didn't provide a sample file...

Do you get the same issue? Please send me the psuadelog.

Thanks!

fsoepyan commented 6 years ago

@sotorrio1: Yes, I did run the OUU tab using the file that you mentioned, with the 17 variables, the negCO2 objective, and the 3 inequality constraints.

Below is the psuadelog:


sotorrio1 commented 6 years ago

@fsoepyan yeah, that's what I got. So basically I fixed the OUU handling constraints issue but now the psuade flow changed and we need to rewrite the script with the psuade commands. I'll keep you posted :)

fsoepyan commented 6 years ago

Thank you!

fsoepyan commented 6 years ago
sotorrio1 commented 6 years ago

@fsoepyan could you show me the psuadelog file? Thanks!

fsoepyan commented 6 years ago

Below is the psuade log file. Thank you!


sotorrio1 commented 6 years ago

@fsoepyan could you clone my fork and try again? Thanks!

fsoepyan commented 6 years ago

Sorry, I ran FOQUS using the wrong version.

The psuade log file from the FOQUS version from PR #270 is in the attached Word file. Thank you!

PSUADE_log_09_06_2018.docx

sotorrio1 commented 6 years ago

Do you get any error message?

fsoepyan commented 6 years ago

Yes, and it says:

OUU: Optimization error. Please consult the FOQUS UQ developers for assistance.

sotorrio1 commented 6 years ago

That's odd... I just ran the problem getting the results below:

screen shot 2018-09-07 at 10 42 46 am
fsoepyan commented 5 years ago