Skip to content

Problem with cumulation for covariance matrix (pc) using B*D*z~N(0,C) #18

@Antoine948398

Description

@Antoine948398

Hello,

I use CMAES and its C implementation to deal with stress inversion.
When my problem is very ill conditionned, I have a floating point exception in cmaes.c at line 893/894

/* cumulation for covariance matrix (pc) using B*D*z~N(0,C) */                                                                                                                                      
 hsig = sqrt(psxps) / sqrt(1. - pow(1.-t->sp.cs, 2*t->gen)) / t->chiN 
  < 1.4 + 2./(N+1); 

its with the "pow" function, t->gen = 752 and 1.-t->sp.cs = 0.62435950746181024, so the result must be really close to 0....

Have you got an idea how to avoid this kind of problens, moreover, it has begin to converge !!

screenshot from 2018-01-24 15-17-55

Cheers,

Antoine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions