nitin jain
自 2017 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
I am using simulated annealing optimization toolbox. I have input a vector x and i want to save vector x at each iteration but it will display x value only at final iteration. How to save value of x at each iteration and display at the output.
x=[1 3 4 5 6 7 2 9] save x at each iteration and display x at all iteration.
7 years 前 | 1 个回答 | 0
1
个回答提问
I have a vector x=[2 3 4 5] and value of x change at each iteration.I want to compare value of x at current iteration with value of x at previous iteration.So how can i store value of x at previous iteration.
eg- for i=1:10 x=[2 3 4 5] x_new=[5 3 2 4]%after some calculation value of x at next iteration compare x with x_new
7 years 前 | 1 个回答 | 0
1
个回答提问
I have a request set of size [ 1 2 3 4 5 6 7 8 9 10] these request demand some bit rate of size [6 5 6 4 7 3 5 5 4 7] .I want to sort these request according to request that demand most bit rate.
In this example sorted request vector be like [5 10 1 3 2 7 8 4 9 6].
7 years 前 | 3 个回答 | 0
3
个回答提问
I have row vector r=[1 2 3 4 5 6 7 8 9 10] and from this i generate another row vector of size 4 that is z=randperm(10,4) now i want to randomly select a single element from remaining element of r.
r=[1 2 3 4 5 6 7 8 9 10]; z=randperm(10,4);
7 years 前 | 2 个回答 | 0
2
个回答提问
I have a row vector x which is random permutation of r where r=1:15 .I want to make a program in which whenever value of r is equal to x increase the counter else counter contain previous value.
first check the which element of array is equal to r and the if is equal then increment the count by one.
7 years 前 | 0 个回答 | 0
0
个回答提问
i am using simulated annealing optimization toolbox matlab and i want to display current function value,best function value and best iteration so far at each iteration of my program.
I want all these parameter to display on command window.
7 years 前 | 1 个回答 | 0
1
个回答提问
how to select two number randomly from an array and perform swapping between these two number?
for example in array A=[1 2 3 5 6 9 10] two number selected randomly are 3 and 6 so after swapping array be like A=[1 2 6 5 3 9...
7 years 前 | 1 个回答 | 0