This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from casadi import * | |
| import math | |
| import numpy as np | |
| import optuna | |
| class CartPole: | |
| def __init__(self): | |
| self.mc = 2.0 # cart の質量[kg] | |
| self.mp = 0.2 # pole の質量[kg] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| sudo apt autoremove -y | |
| sudo apt install build-essential cmake git libeigen3-dev vim tmux doxygen graphviz ffmpeg libglpk-dev -y | |
| sudo apt install python3-sphinx -y | |
| # install docker | |
| sudo apt install lsb-release -y | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from casadi import * | |
| import numpy as np | |
| # optimization variables | |
| x1 = SX.sym('x1') | |
| x2 = SX.sym('x2') | |
| w = [x1, x2] | |
| w0 = [0, 0] | |
| lbw = [-np.inf, -np.inf] |
OlderNewer