Question

Optimizing code run time
Hi All, I've the following function function fun1() [t,x] = ode15s(@(t,s) fun2(t,x), tspan , x0 ,options); ...

presque 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

fmincon converges to solution using interior-point but not using sqp
Hi All, I am solving an optimization problem using fmincon. The solver converges to a solution using interior-point algorithm...

environ 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

Objective function increases but solver converges --- Why?
Hi All, I am trying to solve a constrained optimization problem in fmincon But I am not sure why the solver converges when...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

How should the value of objective function be returned for fmincon?
Hello, I have an objective function that computes the difference between actual and predicted values. The value, f, computed ...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Why is the optimization problem solved by lsqnonlin but not by fmincon ?
Hi All, Equation 1: Equation 2: Equation 1 represents the exact dynamics of a system and equation 2 is the approximat...

environ 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

Solving an optimization problem in fmincon with nonlinear constraints
Hi All, I have the following dynamical systems. Equation 1: Equation 2: Equation 1 represents the exact dynamic...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Passing extra output arguments from ode
I've the following code to obtain [t,x] after simulating odes . In addition to the solution, I also want to obtain the functiion...

environ 3 ans il y a | 2 réponses | 0

### 2

réponses

Question

How to set up parameter estimation in fmincon
Hi All, I have the following dynamical systems. Equation 1 represents the exact dynamics of a system and equation 2 is the ap...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Automatically generating constraints for fmincon
Hi All, I would like to know if it is possible to automatically generate trapezoidal collocation constraints using OptimTraj ...

environ 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

How can I do this in MATLAB?
In pycharm, if I have a bunch of py files and let's say I have opened 1 file that calls a function defined in the other file. Cl...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Parameter estimation using fmincon - how to set up the problem in MATLAB?
I've an objective function of the form, Note: M,D arematrices. The second equation is the objective function that has to...

environ 3 ans il y a | 1 réponse | 1

### 0

réponse

Question

Sensitivity analysis of odes
Hi All, I'm solving a dynamical system uisng ode15s. The system has a lot of parameters and I'd like to perform sensitivity a...

environ 3 ans il y a | 1 réponse | 1

### 0

réponse

Question

installing CVX in MATLAB
Hi All, Is there any tutorial/documentation on how to install CVX optimization toolbox in MATLAB? Are there any dependencie...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Computing edge weights of a graph from time-series data of nodes
I've the following system of equations for studying information flow in the below graph, dI/dt = - M^TDM* I I is the ...

environ 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

Specifying interpreter type for heatmap
I have the following heatmap and I want to set the title interpreter to none load patients tbl = table(LastName,Age,Gende...

environ 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

Clear persisent variable in for loop
I've the following code function fun(i) persistent ss persistent s s = vercat(s,rand(1,2)) if i== 4 ss(j) = s ; ...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Save a non scalar struct
I've the following function function fun(i) var = true if var ss(i).bv = rand(10,1) if i == 4 pwd ...

environ 3 ans il y a | 2 réponses | 0

### 2

réponses

Question

Save the results of a non scalar struct
I've the following function function fun(i) var = true if var ss(i).bv = rand(10,1) if i == 4 pwd ...

environ 3 ans il y a | 1 réponse | 0

### 0

réponse

Question

ode solver , restart from where the simulation ended
Hi, I am using ode solver to simulate a system of differential equations. tspan = 0:0.0001:1 [t s] = ode15s(@(t,s) fun(t,s)...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Defining a time varying function
I'd like to create a function that will output a value of a (e.g. a = 10) for time < t0 and value equal to b at time > t0. ...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Performing computation using contents stored in a table
Hi, I've the following table t = [1 2 3 4 5 6 7 8 9]'; h = [2 3 4 5 6 7 8 9 10]'; value = [1 2 1 2 1 2 1 2 1]'; tbl = table...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Sort the rows of a table based on row entries in two columns of another table
I am trying to sort the rows in one table (Tright) based on the order in which the rows are present in another table (Tleft) ...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

A répondu
Solving transport equations in MATLAB
I just figured out pdepe can be used. Where the reaction and convection can be defined in the s term

environ 3 ans il y a | 0

| A accepté

Question

Solving transport equations in MATLAB
Hi All, I am looking for a toolbox in MATLAB that can be used for solving convection diffusion reaction equations in 1D. Any...

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

Question

Question on pdepe solver
I'd like to know what's the default absolute and relative tolerance set in pdepe solver.

environ 3 ans il y a | 1 réponse | 0

### 1

réponse

A répondu
figure doesn't appear in new window
I'm using 2019b. I see only Figure2

environ 3 ans il y a | 0

Question

figure doesn't appear in new window
I'm trying to plot two figures for p = 1:2 figure(1) subplot(1,2,p) plt = plot(1:10,rand(10,1),'LineWidth', 1....

environ 3 ans il y a | 2 réponses | 0

### 2

réponses

Question

Change the alignment and font size of edgelabels
Hi, For example, if Ihave the following graph s = [1 1 1 2 2 3 3 4 4 5 6 7]; t = [2 3 4 5 6 5 7 6 7 8 8 8]; G = digraph(s,t)...

environ 3 ans il y a | 2 réponses | 0

### 2

réponses

Question

Multiply a scalar to all column of a table
I've a table, T. I want to mulitply a scalar to all values in the table (similary to scalar multiplication of a matrix e.g. 2*ra...

environ 3 ans il y a | 1 réponse | 1

### 1

réponse

Question

Positioning new nodes in a graph
I've the following graph s = [1 1 1 2 2]; t = [2 3 4 2 5]; G = graph(s,t); % plot h = plot(G); h.XData h.YData New nodes...

environ 3 ans il y a | 1 réponse | 0

réponse