Skip to content

Unrecognized Responses Error : number of levels not evenly divisible by the number of response functions. #170

Answered by thenectarine
CSForSC asked this question in Q&A
Discussion options

You must be logged in to vote

Is this the error?

Error: number of levels not evenly divisible by the number of response functions.

This happens when the length of response_levels is not divisible by response_functions.

Consider the examples below, where the black box function returns 3 response functions, which we assume are labeled r1, r2 and r3. See listing 1 for an actual Dakota input file to test with.

NOT OK - Below response_levels has 7 values, but response_functions is 3. So, 7 is not divisible by 3 and causes the error.

    method
      id_method = 'UQ'
      sampling
        response_levels = 0.1 0.2 0.6 0.1 0.2 0.6 0.1
        
    responses
      response_functions = 3
      no_gradients
      no_hessians

O…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CSForSC
Comment options

Answer selected by CSForSC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants