sciencegym.simulations.Simulation_Brachistochrone module

class sciencegym.simulations.Simulation_Brachistochrone.Sim_Brachistochrone(*args: Any, **kwargs: Any)

Bases: SimulationInterface

calculate_brachistochrone(R, y_end, points)
calculate_optimal_time(R, t)

calculates the time it takes to travel until point t via radius R on a brachistochrone

calculate_traversal_time(y, h, g)

y := y-values for all sample-points h := width between sample-points g := gravity constant

get_action_space()

Return a gymnasium.spaces.Space

get_current_state()

Returns an array representing the current status of the simulation.

get_state_space()

Returns a gymnasium.spaces.Space containing the ranges of the state space.

render(pause_time=0.01)
reset()

Reset the environment to a slightly perturbed version of the cycloid for better exploration.

reset2()
step(action)