public class Ibex extends Object
-Djava.library.path=/path/to/ibex/dynlib
Modifier and Type | Field and Description |
---|---|
static int |
BAD_POINT |
static int |
COMPO |
static int |
CONTRACT |
protected int |
contractorCount |
static int |
ENTAILED |
static int |
FAIL |
static int |
FALSE |
static int |
FALSE_OR_TRUE |
static int |
FULL_INFLATE |
static int |
HC4 |
static int |
HC4_NEWTON |
static int |
INFLATE |
static int |
NOT_SIGNIFICANT |
static int |
NOTHING |
static double |
RATIO |
static int |
TRUE |
static int |
UNKNOWN_POINT |
Constructor and Description |
---|
Ibex() |
Modifier and Type | Method and Description |
---|---|
int |
add_contractor(int nb_var,
String syntax,
int option)
Add a new Ibex constraint
Example: add_ctr(2,{0}={1},COMPO) will add the constraint x=y with COMPO contractor
|
int |
contract(int i,
double[] bounds)
Same as contract(int, double bounds[], int reif) with reif=TRUE.
|
int |
contract(int i,
double[] bounds,
int reif)
Call the contractor associated to a constraint or its negation.
|
int |
getContractorCount() |
int |
inflate(int i,
double[] p,
double[] bounds,
boolean in)
Inflate a point to a box with respect to a constraint or its negation.
|
void |
release()
Free IBEX structures from memory
|
public static final double RATIO
public static final int COMPO
public static final int HC4
public static final int HC4_NEWTON
public static final int FAIL
public static final int ENTAILED
public static final int CONTRACT
public static final int NOTHING
public static final int NOT_SIGNIFICANT
public static final int INFLATE
public static final int FULL_INFLATE
public static final int BAD_POINT
public static final int UNKNOWN_POINT
public static final int FALSE
public static final int TRUE
public static final int FALSE_OR_TRUE
protected int contractorCount
public int add_contractor(int nb_var, String syntax, int option)
nb_var
- intsyntax
- Stringoption
- intpublic int contract(int i, double[] bounds, int reif)
i
- - Number of the constraint (in the order of creation)bounds
- - The bounds of domains under the following form:
(x1-,x1+,x2-,x2+,...,xn-,xn+), where xi- (resp. xi+) is the
lower (resp. upper) bound of the domain of x_i.reif
- - Domain of the reification variable b with the following accepted values:
FALSE, TRUE, FALSE_OR_TRUE.public int inflate(int i, double[] p, double[] bounds, boolean in)
i
- - Number of the constraint c (in the order of creation)p
- - The coordinates of the point to inflate: (p1,...pn)bounds
- - The bounds of the enclosing box x under the following form:
(x1-,x1+,x2-,x2+,...,xn-,xn+), where xi- (resp. xi+) is the
lower (resp. upper) bound of the domain of x_i.in
- - TRUE if the box has to be inflated inside c (-> inner region),
FALSE if it has to be inflated outside c (-> forbidden region).public int contract(int i, double[] bounds)
public void release()
public int getContractorCount()
Copyright © 2015. All rights reserved.