27.06.2013 Views

Evolution and Optimum Seeking

Evolution and Optimum Seeking

Evolution and Optimum Seeking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

( , ) <strong>Evolution</strong> Strategies GRUP <strong>and</strong> REKO 379<br />

-----------------------------------------------------<br />

FUNCTION F(N,X)<br />

DIMENSION X(N)<br />

...<br />

...<br />

F=...<br />

RETURN<br />

END<br />

-----------------------------------------------------<br />

N represents the number of parameters, <strong>and</strong> X represents the formal parameter vector.<br />

GRUP supplies the actual values. The function should be written on the basis that GRUP<br />

searches for a minimum if a maximum is to be sought, F must be supplied with a negative<br />

sign.<br />

7.2 Constraints function<br />

To bewrittenby the user in the general style:<br />

-----------------------------------------------------<br />

FUNCTION G(J,N,X)<br />

DIMENSION X(N)<br />

GOTO(1,2,3,...,(M)),J<br />

1 G=...<br />

RETURN<br />

2 G=...<br />

RETURN<br />

...<br />

...<br />

(M) G=...<br />

RETURN<br />

END<br />

-----------------------------------------------------<br />

N <strong>and</strong> X have the meanings described for the objective function, while J (integer) is<br />

the serial number of the constraint. The statements should be written on the basis that<br />

GRUP will accept vector X as feasible if all the G values are larger than or equal to zero.<br />

7.3 Function for monitoring the computation time<br />

This may be de ned by the user or called from the subroutine library in the particular<br />

machine. The following structure is assumed:<br />

REAL FUNCTION T(D)<br />

where D is a dummy parameter. T should be assigned the monitored quantity, e.g.,<br />

the CPU time in seconds limited by TM.Many computers are supplied with ready-made<br />

timing software. If this is given as a function only its name needs to be supplied to GRUP,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!