To install pyibex enter in a terminal :
$ conda install -c benensta pyibex
Or using pip:
$ python -m pip install pyibex
If you don't have Conda installed, instruction for linux/OSX and windows can be found at conda website
See also Installation manual for more details.
To drawn results, we encourage to use VIBes-viewer which provides a simple and fast gui tools for people working with interval.
$ conda install -c benensta vibes vibes-bin
A quick introduction can be found here.
Copy the code on the right into "example.py" and enter in a terminal:
# launch vibes viewer in background $ Vibes-viewer & $ python ./example.py
You should get this figure which corresponds to set of all (x,y) such as f(x,y) < 0
from pyibex import * from vibes import vibes # define the function (x,y) -> sin(x+y) f = Function('x', 'y', 'x*cos(x-y)+y') # build the Forward / backward separator f(x,y) < 0 sep = SepFwdBwd(f, CmpOp.LEQ) # define the initial domain [-10,10]x[-10,10] X0 = IntervalVector(2, [-10, 10] ) #initialize vibes display vibes.beginDrawing() # run the set inversion algorithm pySIVIA(X0, sep, 0.1) vibes.endDrawing()