Community Profile

# Viswanath Hariharan

Active since 2017

#### Content Feed

View by

Question

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 ...

bijna 4 jaar ago | 0 answers | 0

### 0

Question

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 ...

bijna 4 jaar ago | 2 answers | 0

### 2

Question

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...

bijna 4 jaar ago | 2 answers | 0

### 2

Question

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...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

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...

bijna 4 jaar ago | 1 answer | 1

### 1

Question

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 ...

ongeveer 4 jaar ago | 0 answers | 0

### 0

Question

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 ...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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...

meer dan 4 jaar ago | 2 answers | 0

### 2

Question

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...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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 ...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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 ...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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)...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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...

meer dan 4 jaar ago | 0 answers | 0

### 0

Question

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...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

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...

meer dan 4 jaar ago | 3 answers | 0