CellLBFGSState

class torch_sim.optimizers.cell_filters.CellLBFGSState(positions, masses, cell, pbc, atomic_numbers, charge=None, spin=None, system_idx=None, _constraints=<factory>, *, forces, energy, stress, prev_forces, prev_positions, s_history, y_history, step_size, alpha, n_iter, max_atoms, reference_cell, cell_filter, cell_factor=<factory>, pressure=<factory>, hydrostatic_strain=False, constant_volume=False, cell_positions=<factory>, cell_forces=<factory>, cell_masses=<factory>, prev_cell_positions=<factory>, prev_cell_forces=<factory>)[source]

Bases: CellOptimState, LBFGSState

State class for L-BFGS optimization with cell optimization.

Combines L-BFGS position optimization with cell filter for simultaneous optimization of atomic positions and unit cell parameters using a unified extended coordinate space (positions + cell DOFs).

Parameters: