Main > Programming > Libraries >

Math::Macopt 0.02

Math::Macopt 0.02

Sponsored Links

Math::Macopt 0.02 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.033 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 868
Date added: 2007-06-08
Publisher: Tom Chau

Math::Macopt 0.02 description

Math::Macopt is a Perl wrapper for macopt++, which is a conjugate gradient library.

INSTALLATION

The package can be installed by the standard PERL module installation procedure:

perl Makefile.PL
make
make test
make install

Please noted that the original "macopt++" C++ source code is included in this PERL package. The static linking avoids the possible conflict to any pre-installed version of "macopt++".

SYNOPSIS

use strict;
use Math::Macopt;

&main();

sub main
{
# Some settings
my $N = 10;
my $epsilon = 0.001;

# Initialize the Macopt
my $macopt = new Math::Macopt::Base($N, 0);

# Setup the function and its gradient
my $func = sub {
my $x = shift;

my $size = $macopt->size();
my $sum = 0;
foreach my $i (0..$size-1) {
$sum += ($x->[$i]-$i)**2;
}

return $sum;
};
my $dfunc = sub {
my $x = shift;

my $size = $macopt->size();
my $g = ();
foreach my $i (0..$size-1) {
$g->[$i] = 2*($x->[$i]-$i);
}

return $g;
};
$macopt->setFunc(&$func);
$macopt->setDfunc(&$dfunc);

# Optimizer using macopt
my $x = [(1)x($N)];
$macopt->maccheckgrad($x, $N, $epsilon, 0) ;
$macopt->macoptII($x, $N);

# Display the result
printf "[%s]n", join(,, @$x);
}

Math::Macopt 0.02 Screenshot

Advertisements

Math::Macopt 0.02 Keywords

Bookmark Math::Macopt 0.02

Hyperlink code:
Link for forum:

Math::Macopt 0.02 Copyright

WareSeeker periodically updates pricing and software information of Math::Macopt 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Math::Macopt 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Math::XOR is a package to handle XOR encryption of string buffers. Free Download
Math::ODE Perl module allows you to solve N-th Order Ordinary Differential Equations with as little pain as possible. Free Download
JIMaths is a small application that helps teachers automate the process of creating simple arithmetic problems. Free Download
Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. Free Download
Math::HashSum can sum a list of key-value pairs on a per-key basis. Free Download
StealIt is a service menu to take ownership on selected file/directory. Free Download
Math::Bezier::Convert is a Perl module to convert cubic and quadratic bezier each other. Free Download
Math::MatrixReal::Aug Perl module contains additional methods for Math::MatrixReal. Free Download