pytwinnet.optimization.placement

Classes

PlacementGridOptimizer(grid_x, grid_y[, ...])

Grid search over positions for a set of nodes (e.g., gNBs).

PlacementRandomSearchOptimizer(bounds[, ...])

Randomly sample positions within bounds for given nodes.

class pytwinnet.optimization.placement.PlacementGridOptimizer(grid_x, grid_y, fixed_z=10.0, copy_twin=True)[source]

Bases: object

Grid search over positions for a set of nodes (e.g., gNBs). Beware combinatorics: keep grids small or optimize one node at a time.

Parameters:
copy_twin: bool = True
fixed_z: float = 10.0
grid_x: Iterable[float]
grid_y: Iterable[float]
optimize(twin, objective, node_ids)[source]
Return type:

Dict[str, Any]

Parameters:
class pytwinnet.optimization.placement.PlacementRandomSearchOptimizer(bounds, samples=200, fixed_z=10.0, seed=0, copy_twin=True)[source]

Bases: object

Randomly sample positions within bounds for given nodes.

Parameters:
bounds: Tuple[Tuple[float, float], Tuple[float, float]]
copy_twin: bool = True
fixed_z: float = 10.0
optimize(twin, objective, node_ids)[source]
Return type:

Dict[str, Any]

Parameters:
samples: int = 200
seed: int = 0