Math-NLopt

 view release on metacpan or  search on metacpan

lib/Math/NLopt.pm  view on Meta::CPAN

=head2 set_initial_step

  $opt->set_initial_step(\@dx);

Set the initial step. C<@dx> must have length C<$n>, the length
passed to L</new>.

Returns an NLopt result code.

=head2 set_initial_step1

  $opt->set_initial_step1( $dx );

Sets the same initial step C<$dx> for every parameter.

Returns an NLopt result code.

=head2 set_local_optimizer

  $opt->set_local_optimizer( $local_opt );

Sets the local optimizer used by a composite algorithm. C<$local_opt>
must be another C<Math::NLopt> optimizer object.

Returns an NLopt result code.

=head2 set_lower_bound

  $opt->set_lower_bound( $i, $lb );

Set the lower bound for parameter C<$i> (zero based) to C<$lb>.

Returns an NLopt result code.

=head2 set_lower_bounds

  $opt->set_lower_bounds(\@lb);

C<@lb> must have length C<$n>, the length passed to L</new>.

Returns an NLopt result code.

=head2 set_lower_bounds1

  $opt->set_lower_bounds1( $lb );

Sets the same lower bound C<$lb> for every parameter.

Returns an NLopt result code.

=head2 set_max_objective

  $opt->set_max_objective( \&func, ?$data );

See L<Objective Functions>

Returns an NLopt result code.

=head2 set_maxeval

   $opt->set_maxeval( $max_iterations );

Returns an NLopt result code.

=head2 set_maxtime

   $opt->set_maxtime( $time );

Returns an NLopt result code.

=head2 set_min_objective

  $opt->set_min_objective( \&func, ?$data );

See L<Objective Functions>

Returns an NLopt result code.

=head2 set_param

  $opt->set_param( $name, $value );

Returns an NLopt result code.

=head2 set_population

  $opt->set_population( $pop );

Returns an NLopt result code.

=head2 set_precond_max_objective

  $opt->set_precond_max_objective( \&func, \&precond, ?$data);

Returns an NLopt result code.

See L</Preconditioned Objectives>

=head2 set_precond_min_objective

  $opt->set_precond_min_objective( \&func, \&precond, ?$data);

See L</Preconditioned Objectives>

Returns an NLopt result code.

=head2 set_stopval

  $opt->set_stopval( $stopval);

Returns an NLopt result code.

=head2 set_upper_bound

  $opt->set_upper_bound( $i, $ub );

Set the upper bound for parameter C<$i> (zero based) to C<$ub>

Returns an NLopt result code.

=head2 set_upper_bounds



( run in 1.090 second using v1.01-cache-2.11-cpan-4ab04211f4c )