API Reference¶
paramita.plugins module¶
ParameterSpace
¶
Manages a collection of parameters, each identified by a unique name.
all_parameters
¶
Get all the valid parameters from this space.
Returns:
| Type | Description |
|---|---|
list[str]
|
The parameters' names. |
Parameter
¶
Base class for all parameter types.
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
CategoricalParameter
¶
Bases: Parameter
Represents a categorical parameter with discrete choices.
Values for the choices are std::string.
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
IntegerParameter
¶
Bases: Parameter
Represents an integer-valued parameter with a range of valid values.
The domain is an inclusive .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
RealParameter
¶
Bases: Parameter
Represents a floating-point parameter with range constraints.
The domain is an inclusive .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
BooleanParameter
¶
Bases: Parameter
Represents a boolean-valued parameter.
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
PluginParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
ClauseContainerParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
NonIncrSatSolverParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
SatSolverParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
WClauseContainerParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
NonIncrMaxSatSolverParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
PbToCnfEncoderParameter
¶
Bases: Parameter
Represents a .
default_value
¶
The default value for this parameter.
Returns:
| Type | Description |
|---|---|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The default value. |
is_valid
¶
Checks that the value is in the domain and has the correct type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str | int | float | bool | SatSolver | NonIncrSatSolver | ClauseContainer | NonIncrMaxSatSolver | WClauseContainer | PbToCnfEncoder | Plugin
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the value is valid. |
UnsupportedMethodException
¶
Bases: Exception
BuildError
¶
Bases: Exception
CMakeBuilder
¶
Builder
module-attribute
¶
build_plugins
¶
build_plugins(url, builder, *, install_dir, work_dir=None, njobs=1, env=None, stdout=None, stderr=None)