├── .github └── workflows │ └── tests.yml ├── .gitignore ├── .readthedocs.yaml ├── .style.yapf ├── LICENSE ├── README.md ├── docs ├── Makefile ├── docs_requirements.txt ├── make.bat └── source │ ├── api.rst │ ├── conf.py │ ├── index.rst │ ├── installation.rst │ └── usage.rst ├── examples ├── Acary2014 │ ├── irma.py │ ├── irma_integration_order_experiment.py │ └── two_gene.py ├── auto_modeler │ └── auto_model_friction.py ├── car_control_complementarity │ └── car_control_complementarity.py ├── cart_pole_with_friction │ ├── cart_pole_with_friction.py │ ├── main_cartpole.py │ ├── parametric_cart_pole_with_friction.py │ ├── pendulum_utils.py │ └── smoothing.py ├── discs_exercise │ └── disc_switch_places.py ├── elastic_ball_in_box │ └── elastic_ball_in_box.py ├── friction_block │ └── friction_block_example.py ├── hopper_exercise │ └── hopper_ocp_step.py ├── hopper_robot │ ├── hopper_ocp.py │ ├── hopper_ocp_step.py │ ├── ns_experiment.py │ ├── pickle_plotter.py │ └── stage_experiment.py ├── hysteresis_car_control │ ├── general_plot.py │ ├── hysteresis_car_control_time_optimal.py │ ├── hysteresis_car_control_time_optimal_2d.py │ ├── hysteresis_car_control_time_optimal_3d.py │ ├── hysteresis_car_control_time_optimal_3d_best_now_2stage.py │ └── minlp │ │ ├── car_example_dsc.py │ │ └── general_plot.py ├── motor_with_friction │ └── motor_with_friction_ocp.py ├── oscillator │ ├── integration_order_experiment_oscillator.py │ └── oscillator_example.py ├── particle_exercise │ └── particle.py ├── periodic_stick_slip │ └── periodic_stick_slip.py ├── relay │ └── relay_feedback_system.py ├── simple_car_algebraics │ └── simple_car_algebraic.py ├── simplest │ ├── different_switch_cases.py │ ├── parametric_example.py │ └── simplest_example.py ├── sliding_mode_ocp │ └── sliding_mode_ocp.py └── temperature_control │ └── time_freezing_hysteresis_temperature_control.py ├── nosnoc ├── __init__.py ├── auto_model.py ├── dims.py ├── helpers.py ├── model.py ├── nosnoc_opts.py ├── nosnoc_types.py ├── ocp.py ├── plot_utils.py ├── problem.py ├── rk_utils.py ├── solver.py └── utils.py ├── requirements-test.txt ├── setup.py └── test ├── oscillator_test.py ├── simple_sim_test.py ├── test_auto_model.py ├── test_initializing.py ├── test_ocp.py ├── test_ocp_motor.py ├── test_parametric_ocp.py ├── test_problem_dimensions.py ├── test_simple_car_algebraics.py ├── test_sliding_mode.py ├── test_timefreezing.py └── test_validation.py /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/.gitignore -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /.style.yapf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/.style.yapf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/README.md -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/docs_requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/docs_requirements.txt -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/source/api.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/source/api.rst -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/source/conf.py -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/source/index.rst -------------------------------------------------------------------------------- /docs/source/installation.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/source/installation.rst -------------------------------------------------------------------------------- /docs/source/usage.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/docs/source/usage.rst -------------------------------------------------------------------------------- /examples/Acary2014/irma.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/Acary2014/irma.py -------------------------------------------------------------------------------- /examples/Acary2014/irma_integration_order_experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/Acary2014/irma_integration_order_experiment.py -------------------------------------------------------------------------------- /examples/Acary2014/two_gene.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/Acary2014/two_gene.py -------------------------------------------------------------------------------- /examples/auto_modeler/auto_model_friction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/auto_modeler/auto_model_friction.py -------------------------------------------------------------------------------- /examples/car_control_complementarity/car_control_complementarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/car_control_complementarity/car_control_complementarity.py -------------------------------------------------------------------------------- /examples/cart_pole_with_friction/cart_pole_with_friction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/cart_pole_with_friction/cart_pole_with_friction.py -------------------------------------------------------------------------------- /examples/cart_pole_with_friction/main_cartpole.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/cart_pole_with_friction/main_cartpole.py -------------------------------------------------------------------------------- /examples/cart_pole_with_friction/parametric_cart_pole_with_friction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/cart_pole_with_friction/parametric_cart_pole_with_friction.py -------------------------------------------------------------------------------- /examples/cart_pole_with_friction/pendulum_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/cart_pole_with_friction/pendulum_utils.py -------------------------------------------------------------------------------- /examples/cart_pole_with_friction/smoothing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/cart_pole_with_friction/smoothing.py -------------------------------------------------------------------------------- /examples/discs_exercise/disc_switch_places.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/discs_exercise/disc_switch_places.py -------------------------------------------------------------------------------- /examples/elastic_ball_in_box/elastic_ball_in_box.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/elastic_ball_in_box/elastic_ball_in_box.py -------------------------------------------------------------------------------- /examples/friction_block/friction_block_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/friction_block/friction_block_example.py -------------------------------------------------------------------------------- /examples/hopper_exercise/hopper_ocp_step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hopper_exercise/hopper_ocp_step.py -------------------------------------------------------------------------------- /examples/hopper_robot/hopper_ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hopper_robot/hopper_ocp.py -------------------------------------------------------------------------------- /examples/hopper_robot/hopper_ocp_step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hopper_robot/hopper_ocp_step.py -------------------------------------------------------------------------------- /examples/hopper_robot/ns_experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hopper_robot/ns_experiment.py -------------------------------------------------------------------------------- /examples/hopper_robot/pickle_plotter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hopper_robot/pickle_plotter.py -------------------------------------------------------------------------------- /examples/hopper_robot/stage_experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hopper_robot/stage_experiment.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/general_plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/general_plot.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/hysteresis_car_control_time_optimal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/hysteresis_car_control_time_optimal.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/hysteresis_car_control_time_optimal_2d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/hysteresis_car_control_time_optimal_2d.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/hysteresis_car_control_time_optimal_3d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/hysteresis_car_control_time_optimal_3d.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/hysteresis_car_control_time_optimal_3d_best_now_2stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/hysteresis_car_control_time_optimal_3d_best_now_2stage.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/minlp/car_example_dsc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/minlp/car_example_dsc.py -------------------------------------------------------------------------------- /examples/hysteresis_car_control/minlp/general_plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/hysteresis_car_control/minlp/general_plot.py -------------------------------------------------------------------------------- /examples/motor_with_friction/motor_with_friction_ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/motor_with_friction/motor_with_friction_ocp.py -------------------------------------------------------------------------------- /examples/oscillator/integration_order_experiment_oscillator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/oscillator/integration_order_experiment_oscillator.py -------------------------------------------------------------------------------- /examples/oscillator/oscillator_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/oscillator/oscillator_example.py -------------------------------------------------------------------------------- /examples/particle_exercise/particle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/particle_exercise/particle.py -------------------------------------------------------------------------------- /examples/periodic_stick_slip/periodic_stick_slip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/periodic_stick_slip/periodic_stick_slip.py -------------------------------------------------------------------------------- /examples/relay/relay_feedback_system.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/relay/relay_feedback_system.py -------------------------------------------------------------------------------- /examples/simple_car_algebraics/simple_car_algebraic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/simple_car_algebraics/simple_car_algebraic.py -------------------------------------------------------------------------------- /examples/simplest/different_switch_cases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/simplest/different_switch_cases.py -------------------------------------------------------------------------------- /examples/simplest/parametric_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/simplest/parametric_example.py -------------------------------------------------------------------------------- /examples/simplest/simplest_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/simplest/simplest_example.py -------------------------------------------------------------------------------- /examples/sliding_mode_ocp/sliding_mode_ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/sliding_mode_ocp/sliding_mode_ocp.py -------------------------------------------------------------------------------- /examples/temperature_control/time_freezing_hysteresis_temperature_control.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/examples/temperature_control/time_freezing_hysteresis_temperature_control.py -------------------------------------------------------------------------------- /nosnoc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/__init__.py -------------------------------------------------------------------------------- /nosnoc/auto_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/auto_model.py -------------------------------------------------------------------------------- /nosnoc/dims.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/dims.py -------------------------------------------------------------------------------- /nosnoc/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/helpers.py -------------------------------------------------------------------------------- /nosnoc/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/model.py -------------------------------------------------------------------------------- /nosnoc/nosnoc_opts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/nosnoc_opts.py -------------------------------------------------------------------------------- /nosnoc/nosnoc_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/nosnoc_types.py -------------------------------------------------------------------------------- /nosnoc/ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/ocp.py -------------------------------------------------------------------------------- /nosnoc/plot_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/plot_utils.py -------------------------------------------------------------------------------- /nosnoc/problem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/problem.py -------------------------------------------------------------------------------- /nosnoc/rk_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/rk_utils.py -------------------------------------------------------------------------------- /nosnoc/solver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/solver.py -------------------------------------------------------------------------------- /nosnoc/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/nosnoc/utils.py -------------------------------------------------------------------------------- /requirements-test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/requirements-test.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/setup.py -------------------------------------------------------------------------------- /test/oscillator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/oscillator_test.py -------------------------------------------------------------------------------- /test/simple_sim_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/simple_sim_test.py -------------------------------------------------------------------------------- /test/test_auto_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_auto_model.py -------------------------------------------------------------------------------- /test/test_initializing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_initializing.py -------------------------------------------------------------------------------- /test/test_ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_ocp.py -------------------------------------------------------------------------------- /test/test_ocp_motor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_ocp_motor.py -------------------------------------------------------------------------------- /test/test_parametric_ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_parametric_ocp.py -------------------------------------------------------------------------------- /test/test_problem_dimensions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_problem_dimensions.py -------------------------------------------------------------------------------- /test/test_simple_car_algebraics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_simple_car_algebraics.py -------------------------------------------------------------------------------- /test/test_sliding_mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_sliding_mode.py -------------------------------------------------------------------------------- /test/test_timefreezing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_timefreezing.py -------------------------------------------------------------------------------- /test/test_validation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nosnoc/nosnoc_py/HEAD/test/test_validation.py --------------------------------------------------------------------------------