I hereby claim:
- I am ompugao on github.
- I am ompugao (https://keybase.io/ompugao) on keybase.
- I have a public key ASCvgIzHlvaBMqkp3j15ycXkQMor2b9-F_X4Vdjc6cyNbwo
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import json | |
import pprint | |
import csv | |
if __name__ == '__main__': | |
with open('./bulk.csv', 'w') as csvf: | |
writer = csv.writer(csvf, lineterminator='\n', quoting=csv.QUOTE_ALL) | |
with open('./bulk.json', 'r') as f: |
//// | |
// D* Lite implementation in C++ | |
// @tokoro10g | |
// Reference: http://idm-lab.org/bib/abstracts/papers/aaai02b.pdf | |
//// | |
#include <bits/stdc++.h> | |
using namespace std; | |
using Cost = float; |
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt -y update && apt -y upgrade && apt -y install git cmake build-essential lsb-release sudo && rm -rf /var/lib/apt/lists | |
WORKDIR /workdir | |
RUN apt -y update && \ | |
apt install -y --no-install-recommends build-essential cmake doxygen \ | |
g++ git octave python-dev python-setuptools wget mlocate \ |
I hereby claim:
To claim this, I am signing this object:
curl https://gist.githubusercontent.com/ompugao/d98780de08f3e71caffbfc0cd8522e6e/raw/fcf708f6ef9d98ed924c4a4c8485c84c12aae7b3/setup.sh | /bin/bash |
# settings for when connected to a power source | |
[charger] | |
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | |
# preferred governor. | |
governor = performance | |
# minimum cpu frequency (in kHz) | |
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000 | |
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html | |
# to use this feature, uncomment the following line and set the value accordingly |
template< class T, class M > | |
static inline constexpr ptrdiff_t offset_of( const M T::*member ) { | |
return reinterpret_cast< ptrdiff_t >( &( reinterpret_cast< T* >( 0 )->*member ) ); | |
} | |
template< class T, class M > | |
static inline constexpr T* owner_of( M *ptr, const M T::*member ) { | |
return reinterpret_cast< T* >( reinterpret_cast< intptr_t >( ptr ) - offset_of( member ) ); | |
} |
from casadi import * | |
import math | |
import numpy as np | |
class MPC: | |
def __init__(self): | |
# 問題設定 | |
T = 1.0 # ホライゾン長さ (MPCなので短め) | |
N = 20 # ホライゾン離散化グリッド数 (MPCなので荒め) |