当前位置:网站首页>[integer programming]
[integer programming]
2022-07-26 14:34:00 【It's a math kid】
List of articles
- Definition of integer programming
- A method for solving integer linear programming
- Branch and bound —— Computable pure or mixed integer linear programming .
- Cutting plane method —— Computable pure or mixed integer linear programming .
- Implicit enumeration —— solve “0-1” Integer programming
- Hungarian law —— Solve assignment problems (0-1 Planning special situations )
- Monte Carlo method —— Solve various types of programming .
Definition of integer programming
Variables in mathematical programming ( In part or in whole ) When restricted to integers , It's called integer programming . If in the linear programming model , Variables are limited to integers , It is called integer linear programming .
A method for solving integer linear programming
Branch and bound —— Computable pure or mixed integer linear programming .
Cutting plane method —— Computable pure or mixed integer linear programming .
Implicit enumeration —— solve “0-1” Integer programming
- Filter implicit enumeration .
- Branch implicit enumeration .
Hungarian law —— Solve assignment problems (0-1 Planning special situations )
Monte Carlo method —— Solve various types of programming .
Use matlab
clc,clear
x=unifrnd(0,12,[1,10000000]);
y=unifrnd(0,9,[1,10000000]);
pinshu=sum(y<x.^2&x<=3)+sum(y<12-x&x>=3);
area_appr=12*9*pinshu/10^7
function[f,g]=mengte(x);
f=x(1)^2+x(2)^2+3*x(3)^2+4*x(4)^2+2*x(5)^2-8*x(1)-2*x(2)-3*x(3)-x(4)-2*x(5);
g=[sum(x)-400
x(1)+2*x(2)+2*x(3)+x(4)+6*x(5)-800
2*x(1)+x(2)+6*x(3)-200
x(3)+x(4)+5*x(5)-200];
rand('state',sum(clock))% Initialize the random number generator
p0=0;
tic% Timing begins
for i=1:10^6
x=randi([0,99],1,5);
[f,g]=mengte(x);
if all(g<=0)
if p0<f
x0=x;p0=f;% Record the current better solution
end
end
end
x0,p0
toc


Use lingo
Locally optimal solution
The book says that you can directly find the exact global optimal solution , But when I type in the code and run it, the result is a local optimal solution , Also make changes to its rows and columns , Discovery or local optimal solution , Not the global optimal solution .


Global optimal solution
lingo->options->Global Solver
On the hook Use Global Options, application 
边栏推荐
- Learning basic knowledge of Android security
- Transc knowledge representation model
- 『云原生』KubeSphere可插拔组件之DevOps系统
- Basic syntax of MySQL DDL and DML and DQL
- [GYCTF2020]FlaskApp
- Leetcode1170- compare the occurrence frequency of the minimum letter of the string (the corresponding occurrence frequency of each string minimum element in the map set storage array)
- UE4 smart pointer and weak pointer
- Low power multi-channel wfas1431 wireless data acquisition and transmission instrument operation process description
- SP export map to Maya
- C language Snake linked list and pointer practice
猜你喜欢

One stop monitoring of the software and hardware infrastructure of the whole university, and Suzhou University replaces PostgreSQL with time series database

VP video structured framework

sp导出贴图到maya
Network pictures are transferred locally, causing the kernel to exit

【1.2.投资的收益和风险】

As the "first city" in Central China, Changsha's "talent attraction" has changed from competition to leadership

Tdengine helps Siemens' lightweight digital solution simicas simplify data processing process
![[GYCTF2020]FlaskApp](/img/ee/dcb42617af4a0e41657f6cf7095feb.png)
[GYCTF2020]FlaskApp

基于机器学习的技术术语识别研究综述

嵌入式开发:调试嵌入式软件的技巧
随机推荐
C language Snake linked list and pointer practice
Install dexdump on win10 and remove the shell
Lingo软件的使用
全校软硬件基础设施一站式监控 ,苏州大学以时序数据库替换 PostgreSQL
【方差分析】之matlab求解
.net6 encounter with the League of heroes - create a game assistant according to the official LCU API
C # use shift > > and operation and & to judge whether the two binary numbers have changed
GOM login configuration free version generate graphic tutorial
Seata的部署与微服务集成
Uni app from creation to operation to wechat developer tool
中部“第一城”,长沙“人才引力”从争先到领先
OpenCV中图像算术操作与逻辑操作
14. Bridge-Based Active Domain Adaptation for Aspect Term Extraction 阅读笔记
Win11 running virtual machine crashed? Solution to crash of VMware virtual machine running in win11
[paper reading] raw+:a two view graph propagation method with word coupling for readability assessment
uni-app从创建到运行到微信开发者工具
unity透明通道的小技巧
敏捷开发与DevOps的对比
当AI邂逅生命健康,华为云为他们搭建三座桥
什么是Restful风格以及它的四种具体实现形式