# Viswanath Hariharan

Attivo dal 2017

Followers: 0   Following: 0

#### Feeds

Visto da

Domanda

Why is the following code working fine when executed with a for loop but showing an error when it comes to parfor?
The following code shows an "Index exceeds matrix dimensions error when run with parfor but runs okay when executed with just a ...

quasi 6 anni fa | 0 risposte | 0

### 0

risposte

Domanda

How to pass more parameters than the existing ones to output function of fmincon?
<https://www.mathworks.com/help/optim/ug/output-functions.html#brjhnpn Output Functions of Fmincon> The above link is to the ...

quasi 6 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Why does fmincon's constrviolation converge at a specific value?
This is kind of a general doubt. I am performing non linear optimization with a bunch of non linear inequality constraints, line...

quasi 6 anni fa | 2 risposte | 0

### 2

risposte

Domanda

What do the fields in the output structure of fmincon mean?
When we solve an optimization problem and obtain the output structure, it has fields such as funcCount, constrviolation, stepsiz...

quasi 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Why is lambda as an output of fmincon empty?
I am using fmincon to perform convex, non linear programming, constrained optimization. I don't have any non linear equality con...

quasi 6 anni fa | 1 risposta | 1

### 1

risposta

Domanda

How to formulate a non convex equality constraint for fmincon?
I have an equality constraint that needs to be formulated into fmincon. v'*Mp*v - v'*Mn*v - Pf = 0. where Pf is a scalar ...

circa 6 anni fa | 0 risposte | 0

### 0

risposte

Domanda

How to use limited number of MDCS licenses to maximize usage?
Based on a few questions I've asked here, I can use 16 licenses to make 9 nodes consisting of 12 cores each to communicate with ...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to calculate all the square roots of a matrix?
I have a matrix [5/8 3/8; 3/8 5/8] and it has more than one square root. If I perform sqrtm on it, it returns only one square ro...

oltre 6 anni fa | 2 risposte | 0

### 2

risposte

Domanda

Effective but stingy installation of MDCS
If there are 3 nodes and 12 cores each, mdcs has to be installed in all 36 cores right? Now for the nodes to communicate wit...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Basic questions on MDCS
I have a few basic questions about MDCS. I did read the documentation but it didn't answer my doubts. 1. What is the purpose ...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to empty 1 cell of a cell variable which is part of a file?
I used matfile to create a 'writable' object consisting of variables in the file. I tried removing an element in one of the vari...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to save into a particular variable space in .mat file?
Say A = cell(100,1) existing as a variable in the .mat file. I want to add 100 more elements to A from my main program i.e. the ...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to read/extract a part of a cell array from a .mat file?
I was wondering if it's possible to read or extract a part of a cell array from a .mat file. For example : say A = cell(100,1)...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to check for number of vacant workers available in a parallel pool?
I have a branch and bound algorithm that needs to be executed in parallel. The main 'if' condition that I need to implement requ...

oltre 6 anni fa | 0 risposte | 0

### 0

risposte

Domanda

What happens if the number of workers vacant are less than the minimum value in the specified range of SPMD?
spmd (m,n) <statements> end If n workers aren't available, it is mentioned in the document that the statement wou...

oltre 6 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Can a worker/slave be used as a master node?
I am using the parallel computing toolbox. I have a general question though. I am trying to implement a Branch and Bounds algori...

oltre 6 anni fa | 3 risposte | 0

### 3

risposte

Domanda

How to store and retrieve multiple data sent from worker nodes to client node in MATLAB?
q = parallel.pool.DataQueue; parfor i = 1:20 data = ['test - ', num2str(i)]; send(q,data); end Th...

oltre 6 anni fa | 1 risposta | 1

risposta