Linear Optimization - Plz help - Programmers Heaven

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

#### Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

# Linear Optimization - Plz help

Posts: 1Member
N = 5;
[Node1, Node2, distance] = find(table);
Hello,

I am trying to use the molecule model for placing nodes in a network relatively. There seem to be a problem with the mmole function. Does mmole function work only for larger number of nodes(atoms) i.e 25 or greater or can it be used for even smaller number of nodes(atoms) i.e 10 or lesser

Xstart = [ [.25 .25] ; reshape(xrandom, N-1, 2)];
subplot(1,1,1);
plot(Xstart(:,1),Xstart(:,2), 'b.', 'Markersize', 20);
for i = 1:length(distance)
line([Xstart(Node1(i),1) Xstart(Node2(i),1)],[Xstart(Node1(i),2), Xstart(Node2(i),2)]);
end
title('Initial Locations');
axis square;

[Node1, Node2, distance] = find(table);
spy(table+table');
title('Measured distances');
[val,g,H] = mmole(xrandom,table);
spy(H);
title('Structure of Hessian Matrix');