From 777e86a4a2424d526c5d1abf1803666ea0a8b036 Mon Sep 17 00:00:00 2001 From: Steve Miller Date: Mon, 21 Oct 2019 08:41:50 +0200 Subject: [PATCH] Initial commit R2018a --- Optim/obj_sm_four_bar_optim_match_path.m | 2 +- Optim/sm_four_bar_optim_match_path.m | 2 +- Optim/sm_four_bar_optim_plottraj.m | 2 +- Optim/sm_four_bar_optim_test_cost.m | 2 +- README.txt | 2 +- Scripts_Data/sm_four_bar_optim_center_plot.m | 2 +- Scripts_Data/sm_four_bar_optim_param.m | 2 +- .../sm_four_bar_optim_param_sweep_plot.m | 2 +- .../sm_four_bar_optim_param_sweep_run.m | 2 +- Scripts_Data/sm_four_bar_optim_plot1path.m | 2 +- Scripts_Data/sm_four_bar_optim_vistraj.m | 2 +- html/html/sm_four_bar_optim.html | 32 +++++++++--------- html/html/sm_four_bar_optim.png | Bin 3588 -> 3590 bytes html/html/sm_four_bar_optim_01.png | Bin 70196 -> 72250 bytes html/html/sm_four_bar_optim_02.png | Bin 16611 -> 16874 bytes html/html/sm_four_bar_optim_03.png | Bin 68807 -> 69020 bytes html/html/sm_four_bar_optim_04.png | Bin 44942 -> 45527 bytes html/html/sm_four_bar_optim_05.png | Bin 13870 -> 14445 bytes html/html/sm_four_bar_optim_06.png | Bin 20590 -> 21242 bytes html/sm_four_bar_optim.m | 2 +- sm_four_bar_optim.slx | Bin 45403 -> 46904 bytes startup_sm_four_bar_optim.m | 2 +- 22 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Optim/obj_sm_four_bar_optim_match_path.m b/Optim/obj_sm_four_bar_optim_match_path.m index 6df7165..33c85c4 100644 --- a/Optim/obj_sm_four_bar_optim_match_path.m +++ b/Optim/obj_sm_four_bar_optim_match_path.m @@ -1,6 +1,6 @@ function F = obj_sm_four_bar_optim_match_path(mdl,param_v,x_data_des,y_data_des,map_h) % Objective function to optimize trajectory of four-bar linkage -% Copyright 2017 The MathWorks, Inc. +% Copyright 2017-2018 The MathWorks, Inc. load_system(mdl); diff --git a/Optim/sm_four_bar_optim_match_path.m b/Optim/sm_four_bar_optim_match_path.m index c86c254..a86a3d5 100644 --- a/Optim/sm_four_bar_optim_match_path.m +++ b/Optim/sm_four_bar_optim_match_path.m @@ -1,5 +1,5 @@ % Optimization tune four-bar linkage to follow a desired trajectory -% Copyright 2017 MathWorks, Inc. +% Copyright 2017-2018 MathWorks, Inc. % Set up model mdl = 'sm_four_bar_optim'; diff --git a/Optim/sm_four_bar_optim_plottraj.m b/Optim/sm_four_bar_optim_plottraj.m index baa2dff..c76df6a 100644 --- a/Optim/sm_four_bar_optim_plottraj.m +++ b/Optim/sm_four_bar_optim_plottraj.m @@ -1,6 +1,6 @@ function sm_four_bar_optim_plottraj(ref,orig,final,fig_h) % Plot desired, initial, and final trajectories -% Copyright 2017 MathWorks, Inc. +% Copyright 2017-2018 MathWorks, Inc. figure(fig_h) if(~isempty(ref)) diff --git a/Optim/sm_four_bar_optim_test_cost.m b/Optim/sm_four_bar_optim_test_cost.m index 927d54e..8669387 100644 --- a/Optim/sm_four_bar_optim_test_cost.m +++ b/Optim/sm_four_bar_optim_test_cost.m @@ -1,5 +1,5 @@ % Script for testing cost functions -% Copyright 2017 MathWorks, Inc. +% Copyright 2017-2018 MathWorks, Inc. % Fixed Parameters c = 0.2; % m diff --git a/README.txt b/README.txt index 3d045bf..d9c06a8 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,5 @@ Four-Bar Linkage Optimization -Copyright 2017 The MathWorks, Inc. +Copyright 2017-2018 The MathWorks, Inc. Models a four-bar linkage in Simscape Multibody. The lengths of the links are parameterized using MATLAB variables. Adjusting diff --git a/Scripts_Data/sm_four_bar_optim_center_plot.m b/Scripts_Data/sm_four_bar_optim_center_plot.m index 4078e90..4fdd761 100644 --- a/Scripts_Data/sm_four_bar_optim_center_plot.m +++ b/Scripts_Data/sm_four_bar_optim_center_plot.m @@ -1,5 +1,5 @@ function sm_four_bar_optim_center_plot(ax_h,factor) -% Copyright 2017 MathWorks, Inc. +% Copyright 2017-2018 MathWorks, Inc. % Extend range of axes by (current range*factor) % and leave plot centered diff --git a/Scripts_Data/sm_four_bar_optim_param.m b/Scripts_Data/sm_four_bar_optim_param.m index f9914b8..2c46632 100644 --- a/Scripts_Data/sm_four_bar_optim_param.m +++ b/Scripts_Data/sm_four_bar_optim_param.m @@ -1,5 +1,5 @@ % Parameters for sm_four_bar_optim -% Copyright 2017 The MathWorks, Inc. +% Copyright 2017-2018 The MathWorks, Inc. % Fixed lengths c = 0.2; % m diff --git a/Scripts_Data/sm_four_bar_optim_param_sweep_plot.m b/Scripts_Data/sm_four_bar_optim_param_sweep_plot.m index e8e40d6..6a9bb3f 100644 --- a/Scripts_Data/sm_four_bar_optim_param_sweep_plot.m +++ b/Scripts_Data/sm_four_bar_optim_param_sweep_plot.m @@ -1,7 +1,7 @@ % Script to plot possible trajectories of end effector as % linkage lengths are varied -% Copyright 2017 MathWorks, Inc. +% Copyright 2017-2018 MathWorks, Inc. % Create figure if ~exist('h2_sm_four_bar_optim', 'var') || ... diff --git a/Scripts_Data/sm_four_bar_optim_param_sweep_run.m b/Scripts_Data/sm_four_bar_optim_param_sweep_run.m index 0579f9f..168656f 100644 --- a/Scripts_Data/sm_four_bar_optim_param_sweep_run.m +++ b/Scripts_Data/sm_four_bar_optim_param_sweep_run.m @@ -1,5 +1,5 @@ % Parameter sweep for four-bar linkage to see possible trajectories -% Copyright 2017 MathWorks, Inc. +% Copyright 2017-2018 MathWorks, Inc. % Fixed lengths c = 0.2; % m diff --git a/Scripts_Data/sm_four_bar_optim_plot1path.m b/Scripts_Data/sm_four_bar_optim_plot1path.m index d53f832..6a603ae 100644 --- a/Scripts_Data/sm_four_bar_optim_plot1path.m +++ b/Scripts_Data/sm_four_bar_optim_plot1path.m @@ -5,7 +5,7 @@ % linkage. Varying the lengths of the bars will change the trajectory of % this point. % -% Copyright 2017 The MathWorks, Inc. +% Copyright 2017-2018 The MathWorks, Inc. % Generate simulation results if they don't exist if ~exist('simlog_sm_four_bar_optim', 'var') diff --git a/Scripts_Data/sm_four_bar_optim_vistraj.m b/Scripts_Data/sm_four_bar_optim_vistraj.m index 291c425..bbf16b7 100644 --- a/Scripts_Data/sm_four_bar_optim_vistraj.m +++ b/Scripts_Data/sm_four_bar_optim_vistraj.m @@ -1,6 +1,6 @@ function sm_four_bar_optim_vistraj(model,showhide) % Shows or hides initial trajectory for optimization in sm_four_bar_optim -% Copyright 2017 The MathWorks, Inc. +% Copyright 2017-2018 The MathWorks, Inc. spl_h = find_system(model,'RegExp','on','IncludeCommented','on','LookUnderMasks','all','FollowLinks','on','ReferenceBlock','.*Spline'); diff --git a/html/html/sm_four_bar_optim.html b/html/html/sm_four_bar_optim.html index 2b4738a..81cbdba 100644 --- a/html/html/sm_four_bar_optim.html +++ b/html/html/sm_four_bar_optim.html @@ -6,7 +6,7 @@ Four-Bar Linkage Optimization