MPSolver 인터페이스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
최적화를 위한 Google의 오픈소스 소프트웨어 제품군인
OR-Tools: MPSolver 래퍼를 제공합니다.
선형 프로그래밍과
혼합 정수 프로그래밍 문제입니다.
순수 정수 프로그래밍 문제를 풀기 위해
CP-SAT 솔버
예
다음 페이지는 MPSolver 사용을 보여주는 예를 제공합니다.
일반적인 작업
다음 섹션은 문제 해결과 관련된 일반적인 작업을 보여줍니다.
LP 및 MIP.
시간 제한
아래 예는 검색 시간 제한을 15밀리초로 설정하는 방법을 보여줍니다.
Glop을 사용하는 방법을 보여주는 예입니다.
Python
solver.set_time_limit(15)
C++
solver->set_time_limit(15);
자바
solver.setTimeLimit(15)
C#
solver.SetTimeLimit(15);
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-29(UTC)
[null,null,["최종 업데이트: 2024-08-29(UTC)"],[],["OR-Tools offers MPSolver for linear and mixed integer programming, and CP-SAT for pure integer programming. It provides examples for solving problems like the Stigler diet, LP and MIP problems, bin packing, and assignment. Common tasks include setting search time limits, demonstrated with `set_time_limit` methods in Python, C++, Java, and C#; the example shows how to set the limit to 15 milliseconds. MPSolver can be used with Glop or SCIP.\n"],null,[]]