1 Replies - 869 Views - Last Post: 01 May 2009 - 01:28 PMRate Topic:

probably a simple MATLAB solution

Ok, so I'm not a programmer by any means, I'm a geologist - truth be told. I'm working on a melting model of the mantle and don't normally have to get too in depth with my MATLAB scripts.

I've been trying to use this function fmincon to find a minimum value for this function, but its not outputting believable answers. So I've decided to see if its possible to just brute force find a solution.

my input is an array, one by ten x=[x1 x2 x3... x10]

the only possible solutions include the constraint that each progressive element is greater than or equal to the one before it ie x3=>x2=>x1...

so I want to build a matrix with columns being each possible solution. Values for elements can be between 0 and .4 in increments of .01. I cant input zero, so I need to start at .00001.

This set up probably sounds pretty idiotic, but I've given up doing this a reasonable way - if someone could just help me construct the right set up of for loops or whatever, that'd be amazing.