본문 바로가기

Linear Programming Linear Programming이란 무엇일까? 이름만 들어선 몬지 감조차 안온다. 이제 이것에 대해서 알아보도록 하자. 이번 포스팅은 다음 문서를 번역한 것에 불과함을 미리 말한다. 1. Introduction Linear Programming(LP) 문제는 linear한 constraint를 갖는 상황에서 linear한 함수를 최대화, 혹은 최소화 하는 문제를 푸는 것을 의미한다. 여기서 constraint는 등호이거나 부등호이다. 다음의 예를 보자. x1과 x2가 있다. 이 때 x1+x2 = y를 최대화하려고 하고 constraint는 다음과 같다. x1 >= 0 x2 >= 0 x1 + 2*x2 =를 갖고, 다른 것은 =를 갖는다. 이를 위해서는 (5) constraint를 -1을 곱해서 얻을 수 .. 더보기
Dropbox 계정 두 개 사용하기 출처: http://opensourcepack.blogspot.kr/2010/05/multiple-dropbox-do-it-yourself.html주의: Dropbox가 이미 설치되 있어야한다. 1. Dropbox를 설치할 폴더를 만든다. 이것은 동기화될 폴더와는 다르다. 2. 해당 폴더에 C:\Users\Human\AppData\Roaming\Dropbox\bin 안에 있는 내용을 복사한다. 이 폴더는 dropbox.exe 실행 파일이 저장된 폴더여야 한다. 3. 아래 글을 notepad에 복사 붙여넣고, drop1.bat으로 저장한다. 여기서 Joni 대신에 다른 이름을 써도 된다. @ECHO OFF::by tumagonx ::not for exploitation! SET OLDNAME=%USERNA.. 더보기
Gaussian Process 논문 정리 1. Gaussian Processes for Signal Strength-Based Location Estimation Abstract- wireless signal strength를 통한 location estimation- key problem: 빌딩 내부에 장애물 등이 있을 때 signal이 propagate하는 것이 불규칙적이다. - 이 논문에서는 GP를 이용해서 signal strength model의 likelihood model를 어떻게 만드는지 설명할 것이다. Introduction- 지난 수 년간 wireless signal strength 정보를 이용한 localization algorithm은 크게 집중을 받아왔다. 하지만 실내에서 unpredictability 때문에 adequat.. 더보기
Using serial comm in Linux environment 1. inclde stuffs, we assume basic headers are already included #include #include #include #include #include #include #include #include 2. define some variables and functions typedef struct {char *name; int flag; } speed_spec; int transfer_byte(int from, int to, int is_control); void print_status(int fd); void print_status(int fd) { int status; unsigned int arg; status = ioctl(fd, TIOCMGET, &arg).. 더보기