#include <IbexCSP.h>

Public Member Functions | |
| CSP (const char *filename) | |
| CSP (const vector< const Constraint * > &ctrs, Space &space) | |
| CSP (const vector< const Constraint * > &ctrs, SpaceFactory &fac) | |
| CSP (SpaceFactory &fac) | |
| CSP (const CSP &csp) | |
| const Constraint & | ctr (int i) const |
| int | nb_var () const |
| int | nb_ctr () const |
Public Attributes | |
| const Env & | env |
| Space & | space |
| INTERVAL_VECTOR & | box |
A CSP is just a list of constraints and an associated (global) space that represent the domains of the variables.
| ibex::CSP::CSP | ( | const char * | filename | ) |
Load a system from a file.
| filename | a file in the syntax of the QUIMPER language. |
| ibex::CSP::CSP | ( | const vector< const Constraint * > & | ctrs, | |
| Space & | space | |||
| ) |
Create a system of constraints on a given space.
| ibex::CSP::CSP | ( | const vector< const Constraint * > & | ctrs, | |
| SpaceFactory & | fac | |||
| ) |
Create a system of constraints with a specific space factory.
| ibex::CSP::CSP | ( | SpaceFactory & | fac | ) |
Create a system of constraints with a specific space factory. All the constraints of the current environment (i.e., the one fac is built with) are added.
| const Constraint& ibex::CSP::ctr | ( | int | i | ) | const [inline] |
Return a (const) reference to the ith equation.
Reimplemented in ibex::System.
| int ibex::CSP::nb_var | ( | ) | const [inline] |
Returs the number of variables (in the space).
| int ibex::CSP::nb_ctr | ( | ) | const [inline] |
Return the number of constraints.
| const Env& ibex::CSP::env |
The environment where all the constraints are defined.
The space of the system.
A reference to the space vector of variable domains (introduced just for convenience).
1.5.5