Skip to content

Unexpected behavior with simple arithmetical constraint (+Java) #435

Closed
@cprudhom

Description

@cprudhom

Dear developers,

I encounter a strange result while calling ibex.contract(...) on the following example (in Java):

Ibex ibex = new Ibex(new double[]{1.e-1});                    
ibex.add_ctr("{0}>=1.");                                      
ibex.build();                              
double[] domains = new double[]{0.15, 85.0};                  
ibex.contract(0, domains);
out.printf("%s\n", Arrays.toString(domains));                 

This prints [1.0, 85.0] when domains = new double[]{0.15, 85.0};
But, when upper bound is greater or equal to 86.0 it prints [0.15, 86.0] (f-ex, domains = new double[]{0.15, 86.0};).

Any ideas how to fix this ?

Best,
CP

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions