Lookingforhelponline
Technical User
Hello again. I made it back after writing a new code by myself, but I need help once again in executing a function. Pretty much I am trying to do something along the lines of:
Where all possible combinations of x,y,z are used from the ranges I provided and all possible values of D are calculated, so that I can have the smallest value as my output from that range of data. My issue is I don't know how to make that happen or actually break the code down further into something else entirely to get the same result.
Thanks in advance for your time and consideration.
Code:
D=x+y+z
DO x=1,20,5
DO y=1,20,5
DO z=1,20,5
ENDDO
ENDDO
ENDDO
MIN(Dall) [if Dall would be all of the values of D calculated]
Where all possible combinations of x,y,z are used from the ranges I provided and all possible values of D are calculated, so that I can have the smallest value as my output from that range of data. My issue is I don't know how to make that happen or actually break the code down further into something else entirely to get the same result.
Thanks in advance for your time and consideration.