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

2022年互联网创业项目seo标题优化步骤

2022年互联网创业项目,seo标题优化步骤,财务管理专业简历制作,百度地图排名怎么优化一、找到工具箱存放位置 首先我们需要找到工具箱的存放位置,点击这个设置路径可以看到 我们的matlab工具箱的存放位置 C:\Program Files\MATLAB\R2023a\toolbox\matlab 从资源管理器中打开这个位置,可以看到里面各种工具箱 二、放入工具箱 解压我们…

一、找到工具箱存放位置

首先我们需要找到工具箱的存放位置,点击这个设置路径可以看到
image-20230806213305862

image-20230806213305862

我们的matlab工具箱的存放位置

C:\Program Files\MATLAB\R2023a\toolbox\matlab

从资源管理器中打开这个位置,可以看到里面各种工具箱

二、放入工具箱

解压我们的工具箱gpops,可以看到里面有两个文件夹

image-20230806213305862

将这两个文件夹直接放到上面的工具箱存放位置,可以复制也可以剪切。

三、添加文件

这时我们可以添加我们的工具箱了

image-20230806213305862

点击添加并包含子文件,找到之前的那两个文件的位置,也就是

C:\Program Files\MATLAB\R2023a\toolbox\matlab\lib

C:\Program Files\MATLAB\R2023a\toolbox\matlab\nlp

将这两个文件添加并包含子文件。

然后就可以在matlab程序中用这两个工具箱了

四、测试GPOPS

刚刚我们添加的工具箱是GPOPS2的工具箱,现在可以测试一下这个工具箱

clc;clear;close all;
tic;
% 设置时间
t0 = 0;
tf = 2;
% 设置状态量初值
x10 = -2;
x20 = 1;
% 设置状态量边界条件
x1Min = -5;
x1Max = 5;
x2Min = -5;
x2Max = 5;
% 设置控制量边界条件
uMin  = -1.5;
uMax  = 1.5;bounds.phase.initialtime.lower  = t0; 
bounds.phase.initialtime.upper  = t0;
bounds.phase.finaltime.lower    = tf; 
bounds.phase.finaltime.upper    = tf;
bounds.phase.initialstate.lower = [x10 x20]; 
bounds.phase.initialstate.upper = [x10 x20];
bounds.phase.state.lower        = [x1Min x2Min]; 
bounds.phase.state.upper        = [x1Max x2Max];
bounds.phase.finalstate.lower   = [0 0];
bounds.phase.finalstate.upper   = [0 0];
bounds.phase.control.lower      = uMin; 
bounds.phase.control.upper      = uMax;
bounds.phase.integral.lower     = 0; 
bounds.phase.integral.upper     = 10000;guess.phase.time     = [t0; tf]; 
guess.phase.state    = [[x10; 0],[x20; 0]];
guess.phase.control  = [1; uMin];
guess.phase.integral = 100;setup.name = 'Vehicle-Stopping-OCP';
setup.functions.continuous  = @vsopcContinuous;
setup.functions.endpoint   	= @vsopcEndpoint;
setup.bounds                = bounds;
setup.guess                 = guess;
setup.nlp.solver            = 'snopt';
setup.derivatives.supplier  = 'sparseCD';
setup.derivatives.derivativelevel = 'second';
setup.mesh.method           = 'hp1';
setup.mesh.tolerance        = 1e-6;
setup.mesh.maxiteration     = 45;
setup.mesh.colpointsmax     = 4;
setup.mesh.colpointsmin     = 10;
setup.mesh.phase.fraction   = 0.1*ones(1,10);
setup.mesh.phase.colpoints  = 4*ones(1,10);
setup.method = 'RPMintegration';output = gpops2(setup);
solution = output.result.solution;
toc;%% 函数模块部分
% ----------------------------------------------------------------------- %
% ------------------------- BEGIN: vsopcContinuous.m -------------------- %
% ----------------------------------------------------------------------- %
function phaseout = vsopcContinuous(input)
t  = input.phase.time;
% x1  = input.phase.state(:,1);
x2  = input.phase.state(:,2);
u   = input.phase.control(:,1);dx1 = x2;
dx2 = u;phaseout.dynamics = [dx1, dx2];
phaseout.integrand = 0.5*u.^2;
end
% ----------------------------------------------------------------------- %
% -------------------------- END: vsopcContinuous.m --------------------- %
% ----------------------------------------------------------------------- %% ----------------------------------------------------------------------- %
% -------------------------- BEGIN: vsopcEndpoint.m --------------------- %
% ----------------------------------------------------------------------- %
function output = vsopcEndpoint(input)J  = input.phase.integral;
output.objective = J;
end
% ----------------------------------------------------------------------- %
% --------------------------- END: vsopcEndpoint.m ---------------------- %
% ----------------------------------------------------------------------- %

这里我们直接使用了别人的程序来进行测试,测试结果是正确的。

http://www.khdw.cn/news/15478.html

相关文章:

  • 资质做网站需要用到什么淘客推广怎么做
  • 有那个网站可以做食品台账网站管理与维护
  • 手机网站制作哪家好免费的网站推广在线推广
  • 公司网站如何做seo软文广告属于什么营销
  • 做网站用什么语言制作最安全网站整站优化
  • 网站站点是什么?如何创建站点?国际新闻界官网
  • 做商贸网站百度一下你就知道官网网页版
  • 外贸平台哪个网站最好不收费模板网站好还是自助建站好
  • 河南艾特软件 网站建设四川seo哪里有
  • 品牌网站响应式网站有哪些网络推广seo教程
  • 网站建设维护成seo入门视频
  • 做网站空间需要多大seo好找工作吗
  • 软件测试基础知识网络seo优化平台
  • 医疗网站建设及优化搜索引擎优化的英语简称
  • 建筑设计领域seo推广公司教程
  • 邯郸网站改版找谁做郑州最新通告
  • wordpress 自定义文章字段外贸seo推广招聘
  • 专业的外贸行业网站开发网站优化检测工具
  • 安徽省最近出现的病毒seo优化网络公司排名
  • 专业的传媒行业网站开发怎么引流推广
  • 江门手工外发加工网抖音seo代理
  • 环评登记表在哪个网站做深圳seo公司排名
  • 广告联盟赚钱平台深圳优化公司找高粱seo服务
  • 黄村专业网站建设公司公司网络搭建
  • 优秀seo外包平台广州seo托管
  • 那个公司做的网站详情页好看如何发布视频赚钱
  • 为什么有的公司做很多个网站优化大师的三大功能
  • 哪个网站可以做信用社的题搜索历史记录
  • 企业网站建设的类型有哪些如何建立网站服务器
  • 龙象建设集团有限公司网站网络营销课程个人感悟