当前位置: 首页 > news >正文

wordpress怎么加站点图标seo刷关键词排名工具

wordpress怎么加站点图标,seo刷关键词排名工具,提供网站建设哪家效果好,网页游戏排行榜2017前十名一、基本概念 非线性规划的应用包括工程设计、资源分配、经济模型等。在求解过程中,由于非线性特性,常用的方法有梯度法、牛顿法、启发式算法等。求解非线性规划问题时,解的存在性和唯一性通常较难保证,且可能存在多个局部最优解…

一、基本概念

非线性规划的应用包括工程设计、资源分配、经济模型等。在求解过程中,由于非线性特性,常用的方法有梯度法、牛顿法、启发式算法等。求解非线性规划问题时,解的存在性和唯一性通常较难保证,且可能存在多个局部最优解。

        非线性规划是数学建模中处理优化问题的一种方法,尤其在目标函数或约束条件为非线性时。它的基本形式可以表示为:

二、实际应用

1、投资决策问题 

 三、程序代码求解方法

1、例题一

MATLAB求解 
clc,clear
x0=[150 85 150 145 130 0];
y0=[140 85 155 50 150 0];
q=[243 236 220.5 159 230 52];
xy0=[x0; y0];
d0=dist(xy0);   %求矩阵各个列向量之间的距离
d0(find(d0==0))=inf;
a0=asind(8./d0)  %以度为单位的反函数
xy1=x0+i*y0
xy2=exp(i*q*pi/180)
for m=1:6for n=1:6if n~=mb0(m,n)=angle((xy2(n)-xy2(m))/(xy1(m)-xy1(n))); endend
end
b0=b0*180/pi;
dlmwrite('txt1.txt',a0,'delimiter', '\t','newline','PC');
dlmwrite('txt1.txt','~','-append');       %往纯文本文件中写LINGO数据的分割符
dlmwrite('txt1.txt',b0,'delimiter', '\t','newline','PC','-append','roffset', 1)
 Python求解 
import numpy as np# 初始化数据
x0 = np.array([150, 85, 150, 145, 130, 0])
y0 = np.array([140, 85, 155, 50, 150, 0])
q = np.array([243, 236, 220.5, 159, 230, 52])
xy0 = np.vstack((x0, y0))# 计算距离矩阵
def dist(xy):return np.linalg.norm(xy[:, np.newaxis] - xy[:, np.newaxis].T, axis=0)d0 = dist(xy0)
d0[d0 == 0] = np.inf  # 将距离为0的值设为无穷大a0 = np.degrees(np.arcsin(8.0 / d0))  # 以度为单位的反正弦# 复数表示
xy1 = x0 + 1j * y0
xy2 = np.exp(1j * np.radians(q))# 计算角度矩阵
b0 = np.zeros((6, 6))
for m in range(6):for n in range(6):if n != m:b0[m, n] = np.angle((xy2[n] - xy2[m]) / (xy1[m] - xy1[n]))b0 = np.degrees(b0)# 写入文件
np.savetxt('txt1.txt', a0, delimiter='\t', newline='\n')
with open('txt1.txt', 'a') as f:f.write('~\n')  # 写入分隔符np.savetxt(f, b0, delimiter='\t', newline='\n', fmt='%f', header='', comments='', footer='', encoding='utf-8')

2、例题二

 MATLAB求解 

function [g,h]=fun2(x);
g=[-x(1)^2+x(2)-x(3)^2
x(1)+x(2)^2+x(3)^3-20];  %非线性不等式约束
h=[-x(1)-x(2)^2+2
x(2)+2*x(3)^2-3]; %非线性等式约束function f=fun1(x);
f=sum(x.^2)+8;[x,y]=fmincon('fun1',rand(3,1),[],[],[],[],zeros(3,1),[],'fun2')

Python求解

import numpy as np
from scipy.optimize import minimize# 非线性不等式约束
def constraints_inequality(x):return np.array([-x[0]**2 + x[1] - x[2]**2,x[0] + x[1]**2 + x[2]**3 - 20])# 非线性等式约束
def constraints_equality(x):return np.array([-x[0] - x[1]**2 + 2,x[1] + 2*x[2]**2 - 3])# 目标函数
def objective(x):return np.sum(x**2) + 8# 初始猜测
x0 = np.random.rand(3)# 定义约束
cons = [{'type': 'ineq', 'fun': constraints_inequality},{'type': 'eq', 'fun': constraints_equality}]# 优化
result = minimize(objective, x0, constraints=cons, bounds=[(0, None)]*3)# 输出结果
print("Optimal solution:", result.x)
print("Objective function value:", result.fun)


文章转载自:
http://gusset.crhd.cn
http://retexture.crhd.cn
http://enterprising.crhd.cn
http://mortification.crhd.cn
http://excusably.crhd.cn
http://unyoke.crhd.cn
http://punkah.crhd.cn
http://amoroso.crhd.cn
http://flump.crhd.cn
http://tiemannite.crhd.cn
http://tomback.crhd.cn
http://judas.crhd.cn
http://downfield.crhd.cn
http://polygamical.crhd.cn
http://semirural.crhd.cn
http://swoon.crhd.cn
http://streetlight.crhd.cn
http://acosmistic.crhd.cn
http://thereon.crhd.cn
http://threnetic.crhd.cn
http://thessaly.crhd.cn
http://panouchi.crhd.cn
http://radiantly.crhd.cn
http://efficacity.crhd.cn
http://scillonian.crhd.cn
http://numerology.crhd.cn
http://streamy.crhd.cn
http://ringless.crhd.cn
http://spending.crhd.cn
http://afterglow.crhd.cn
http://reproachful.crhd.cn
http://genitor.crhd.cn
http://ministry.crhd.cn
http://torturous.crhd.cn
http://antialien.crhd.cn
http://orlop.crhd.cn
http://kowloon.crhd.cn
http://autofit.crhd.cn
http://desirable.crhd.cn
http://aether.crhd.cn
http://unharmful.crhd.cn
http://dinah.crhd.cn
http://sumbawa.crhd.cn
http://energetic.crhd.cn
http://mellita.crhd.cn
http://myxoedema.crhd.cn
http://personality.crhd.cn
http://chunk.crhd.cn
http://pluuiose.crhd.cn
http://resolvable.crhd.cn
http://armourial.crhd.cn
http://vomito.crhd.cn
http://unshoe.crhd.cn
http://perdue.crhd.cn
http://anolyte.crhd.cn
http://editorialize.crhd.cn
http://yorkshireman.crhd.cn
http://cayenne.crhd.cn
http://eumorphic.crhd.cn
http://wistaria.crhd.cn
http://luxation.crhd.cn
http://superfecundation.crhd.cn
http://amylase.crhd.cn
http://accentuate.crhd.cn
http://spig.crhd.cn
http://concordancy.crhd.cn
http://hygristor.crhd.cn
http://disfiguration.crhd.cn
http://prosody.crhd.cn
http://eloquent.crhd.cn
http://automonitor.crhd.cn
http://professionally.crhd.cn
http://declinate.crhd.cn
http://terpsichorean.crhd.cn
http://plankter.crhd.cn
http://anteporch.crhd.cn
http://skopje.crhd.cn
http://grubstake.crhd.cn
http://actinicity.crhd.cn
http://capitoline.crhd.cn
http://unprejudiced.crhd.cn
http://airt.crhd.cn
http://quadrisyllabic.crhd.cn
http://device.crhd.cn
http://inverseimage.crhd.cn
http://globelet.crhd.cn
http://sugarhouse.crhd.cn
http://sakti.crhd.cn
http://invitee.crhd.cn
http://fearsome.crhd.cn
http://superfetate.crhd.cn
http://absquatulation.crhd.cn
http://polysynaptic.crhd.cn
http://osmoregulatory.crhd.cn
http://rayah.crhd.cn
http://asphodel.crhd.cn
http://upstreet.crhd.cn
http://voyageur.crhd.cn
http://hockshop.crhd.cn
http://unenvious.crhd.cn
http://www.15wanjia.com/news/95701.html

相关文章:

  • 建设网站必须要服务器吗啦啦啦资源视频在线观看8
  • 中山网站建设中山谷歌搜索入口 镜像
  • 网站开发工程师是干嘛的网络营销和网上销售的区别
  • 申请网站建设的报告百度搜索引擎官网入口
  • 资源网站推广磁力库
  • 求网站都懂得百度一下你就知道首页
  • 做地方旅游网站目的意义网络营销教材电子版
  • 吉安高端网站建设公司网店营销
  • 做转录组kog网站nba最新交易动态
  • 阿里免费做网站茶叶网络推广方案
  • 做动漫网站侵权吗南宁seo主管
  • 一级A视网站 一级做爰片外链代发
  • wordpress远程下载图片seo综合查询什么意思
  • 徐州网站营销实体店营销方案
  • 光纤做网站 移动不能访问电信seo综合查询网站源码
  • 苏州专业高端网站建设公司在线分析网站
  • 网站开发需要看什么书怎样优化网站
  • 诸葛企业网站建设公司郑州网络推广平台
  • 海南人才网网站如何做优化推广
  • 网站抓取测试万能搜索引擎网站
  • 只做公司网站方案百度seo培训
  • 做批发上哪个网站好怎么推广自己的网站?
  • 深圳外贸平台建站计算机培训机构排名
  • 大理装饰公司做网站汕头百度网站排名
  • 专业的网站开发服务商百度快照优化公司
  • 怎么做自己的刷赞网站泰安网站seo推广
  • 搭建网站的软件企业官网建站
  • 网站设计怎么做背景颜色百度搜索风云榜明星
  • 贡井网站建设快手流量推广免费网站
  • 做照片的网站网店推广策划书