G
Gary Wessle
Hi
I have a routine
double myRou ( double x, double y ) { ... };
the way I use it is
vector<double> res;
for(double i = 1; i < 1000; ++i) {
for( double j = 1; j < 1000; ++j) {
res.push_back( myRou( i, j );
}
}
then I go to find the maximum or minimum values in res.
is there some algorithm that can help me find the global min/max?
thanks
I have a routine
double myRou ( double x, double y ) { ... };
the way I use it is
vector<double> res;
for(double i = 1; i < 1000; ++i) {
for( double j = 1; j < 1000; ++j) {
res.push_back( myRou( i, j );
}
}
then I go to find the maximum or minimum values in res.
is there some algorithm that can help me find the global min/max?
thanks