AI-ParticleSwarmOptimization-MCE
view release on metacpan or search on metacpan
d) If distribution of the work is made by offering
access to copy from a designated place, offer
equivalent access to copy the above specified
materials from the same place.
e) Verify that the user has already received a
copy of these materials or that you have
already sent this user a copy.
For an executable, the required form of the "work that uses
the Library" must include any data and utility programs
needed for reproducing the executable from it. However, as a
special exception, the materials to be distributed need not
include anything that is normally distributed (in either source
or binary form) with the major components (compiler, kernel,
and so on) of the operating system on which the executable
runs, unless that component itself accompanies the
executable.
It may happen that this requirement contradicts the license
8. You may not copy, modify, sublicense, link with, or
distribute the Library except as expressly provided under this
License. Any attempt otherwise to copy, modify, sublicense,
link with, or distribute the Library is void, and will
automatically terminate your rights under this License.
However, parties who have received copies, or rights, from
you under this License will not have their licenses terminated
so long as such parties remain in full compliance.
9. You are not required to accept this License, since you
have not signed it. However, nothing else grants you
permission to modify or distribute the Library or its derivative
works. These actions are prohibited by law if you do not
accept this License. Therefore, by modifying or distributing
the Library (or any work based on the Library), you indicate
your acceptance of this License to do so, and all its terms
and conditions for copying, distributing or modifying the
Library or works based on it.
10. Each time you redistribute the Library (or any work
new (%parameters)
Create an optimization object. The following parameters may be used:
-workers: positive number, optional
The number of workers (processes), that will be used during
computations.
-dimensions: positive number, required
The number of dimensions of the hypersurface being searched.
-exitFit: number, optional
If provided -exitFit allows early termination of optimize if the
fitness value becomes equal or less than -exitFit.
-fitFunc: required
-fitFunc is a reference to the fitness function used by the search.
If extra parameters need to be passed to the fitness function an
array ref may be used with the code ref as the first array element
and parameters to be passed into the fitness function as following
elements. User provided parameters are passed as the first
parameters to the fitness function when it is called:
my $pso = AI::ParticleSwarmOptimization::MCE->new(
-fitFunc => [\&calcFit, $context],
lib/AI/ParticleSwarmOptimization/MCE.pm view on Meta::CPAN
=item new (%parameters)
Create an optimization object. The following parameters may be used:
=over 4
=item I<-workers>: positive number, optional
The number of workers (processes), that will be used during computations.
=item I<-dimensions>: positive number, required
The number of dimensions of the hypersurface being searched.
=item I<-exitFit>: number, optional
If provided I<-exitFit> allows early termination of optimize if the
fitness value becomes equal or less than I<-exitFit>.
=item I<-fitFunc>: required
I<-fitFunc> is a reference to the fitness function used by the search. If extra
parameters need to be passed to the fitness function an array ref may be used
with the code ref as the first array element and parameters to be passed into
the fitness function as following elements. User provided parameters are passed
as the first parameters to the fitness function when it is called:
my $pso = AI::ParticleSwarmOptimization::MCE->new(
-fitFunc => [\&calcFit, $context],
-dimensions => 3,
( run in 0.422 second using v1.01-cache-2.11-cpan-0a6323c29d9 )