공간최적화3 [Python] P-Center Problem을 Pysal로 구현하기 출처 https://pysal.org/spopt/notebooks/p-center.html P-Center Problem — spopt v0.5.0 Manual P-Center Problem Authors: Germano Barcelos, James Gaboardi, Levi J. Wolf, Qunshan Zhao Hakimi (1964) introduced the absolute center problem to locate a police station or a hospital such that the maximum distance of the station to a set of communities conne pysal.org 🖥️ IT, 컴퓨터/🚀 최적화 2023. 8. 16. [Cplex] 지역제한 P-median Cplex 코드 입력 지역제한 P-median 구 안에 하나씩 배정하는 문제 ex. 서울이라면 서울의 모든 구 안에 한 개의 시설을 배정하는 문제 mod Customers : 수요지 Weight : 수요지의 수요량 WellfareCenters : 입지후보지 int P = ...; {string} Customers = ...; {int} WellfareCenters = ...; int Weight[Customers] = ...; float Distance[Customers][WellfareCenters] = ...; {Point} Region = ...; 헷갈리지 않도록 Customer은 string으로 두었다. //Variables dvar boolean OpenWellfareCenters[WellfareCenters]; d.. 🖥️ IT, 컴퓨터/🚀 최적화 2023. 3. 16. [Cplex] IBM Cplex, 파이썬 DoCplex 패키지 설치 Install the IBM Cplex, Python DoCplex package 1. Cplex 설치 https://www.ibm.com/academic/topic/data-science 혹은 https://academic.ibm.com/a2mt/email-auth 에서 학교 메일로 가입 후 로그인, 평가판 설치 풀버전은 매우 비싸고 community edition은 변수 1000개, 목적함수 1000개까지 가능 academic initiative는 학생, 학계만 사용 가능 이메일 입력 후 로그인 확인 전 예전에 신청했던게 만료되어서 recertify해야 한다네요 대충 채워 줌 메일 확인해 validate 누르기 https://www.ibm.com/academic/topic/data-science Si.. 🖥️ IT, 컴퓨터/🚀 최적화 2023. 3. 1. 이전 1 다음 반응형