Use of Matlab grey box identification function nlgreyest
Taking the simple pendulum model as an example, the gray box identification is carried out.
1. Simple pendulum model
Figure 1 tangent force diagram of simple pendulum
The tangent force diagram of a simple pendulum is shown in Figure 1, and the picture comes from the network.
The equation of motion in tangent direction can be simply writte ...
Added by aiikcmo on Mon, 07 Mar 2022 08:14:27 +0200
[TSP problem] solve the three-dimensional traveling salesman problem based on genetic algorithm, including Matlab source code
1 Introduction
1.1 TSP introduction
"Traveling salesman problem" (TSP) can be simply described as: a seller starts from one of the n cities, does not repeatedly complete the other n-1 cities and returns to the original starting point, and finds the shortest path among all possible paths.
The route of a traveler can be regarded as a ...
Added by saeed42 on Sat, 05 Mar 2022 07:31:48 +0200
Template meta programming example -- how to design a general geometry Library
Template meta programming example - how to design a general geometry Library
design principle
Suppose you need to use a c + + program to calculate the distance between two points You might do this:
First define a struct:
struct mypoint
{
double x, y;
};
Then define a function containing the calculation algorithm:
double distance(myp ...
Added by Skaara on Sun, 27 Feb 2022 06:25:57 +0200
Comparison between WebGL and WebGPU [4] - Uniform
Python wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python actual combat quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475 Catalogue* 1. WebGL 1.0 Uniform + 1.1. Addressing with WebGLUniformLocation + 1.2. uniformMatrix[234]fv for matrix assignment + 1.3. Scalar a ...
Added by mckinney3 on Sat, 19 Feb 2022 03:55:08 +0200
The shifted vector iteration calculates the nearest eigenvalue and eigenvector (python, numerical integration)
Part 27 shift inversion iteration to find the nearest eigenvalue and eigenvector
Shift inverse iteration
An eigenvalue method to realize vector iterative convergence more directly than the "maximum" eigenvalue method is Shift vector iteration method Rewrite to the following form Where p is a scalar "shift" value, [I] is t ...
Added by ScubaDvr2 on Fri, 18 Feb 2022 06:24:55 +0200
Array and sparse matrix
catalogue
1, Definition of array
1. Definition of one-dimensional array
2. Definition of two-dimensional array
2, Storage structure of array
1. Array storage mode
2. Storage mode of two-dimensional array
(1) Priority storage by row
(2) priority storage mode by column
3, Matrix
1. Definition of matrix
2. Definition of special matrix ...
Added by artyfarty on Fri, 11 Feb 2022 08:37:41 +0200
WGS84 coordinate system to J2000 coordinate system
The transformation from wgs84 coordinate system to J2000 coordinate system mainly involves the mutual transformation of coordinates. Generally, the given WGS coordinates are t and BLH at the given time. The specific conversion is as follows
step1 WGS 84 converts to the protocol earth coordinate system.
function XYZ_m = wgs842ECEF(BLH_deg_m)
...
Added by R0bb0b on Thu, 10 Feb 2022 12:20:53 +0200
Algorithm problem of XOR operation
First give two algorithm questions for the interview.
One number has an odd number and the other number has an even number. It is required to find this number, and the time complexity is O(n) and the space complexity is O(1)The two kinds of numbers appear odd times and the other numbers appear even times. It is required to find this number, an ...
Added by apollyon on Wed, 09 Feb 2022 14:39:42 +0200
Two dimensional array of "100 lectures on zero basis of algorithm"
catalogue
Lesson 3 matrix
1, Knowledge points
2, Title
1. Total assets of richest customers
2. Special position in binary matrix
3. Flip the image
4. Rotate the image
5. Transpose matrix
6. Convert one-dimensional array into two-dimensional array
7. Judge whether the matrix is consistent after rotation
8. Two dimensional network migr ...
Added by Dustin013 on Sun, 06 Feb 2022 08:54:09 +0200
Leetcode-D44-array-48 Rotate image & 54 Spiral matrix (review tomorrow)
1, Review
1,47. Full arrangement II It's not bad. The idea is generally right. It's just a little debugging - when size=0, you can't enter the for loop, so you need to judge when size=1, and then directly append (path), and then return
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
def dsf(size,nu ...
Added by nrg_alpha on Sun, 06 Feb 2022 03:11:03 +0200