aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-01-28 16:49:54 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-01-28 17:04:08 +0000
commit06c7d4afe44e8ee06d459bfe7144c8494f2494e8 (patch)
tree2368de984d7d3b09a974f52d73b081d83270e8ff
parent397ad33a4cee2358b2849b241df13ba2ca656034 (diff)
math/p5-PDL-Opt-Simplex: Add p5-PDL-Opt-Simplex 2.096
PDL::Opt::Simplex implements the commonly used simplex optimization algorithm. The basic idea of the algorithm is to move a "simplex" of N+1 points in the N-dimensional search space according to certain rules. The main benefit of the algorithm is that you do not need to calculate the derivatives of your function.
-rw-r--r--math/Makefile1
-rw-r--r--math/p5-PDL-Opt-Simplex/Makefile22
-rw-r--r--math/p5-PDL-Opt-Simplex/distinfo3
-rw-r--r--math/p5-PDL-Opt-Simplex/pkg-descr4
-rw-r--r--math/p5-PDL-Opt-Simplex/pkg-plist3
5 files changed, 33 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index b0fbadfd4a08..ddeaf5c867dd 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -831,6 +831,7 @@
SUBDIR += p5-PDL-IO-IDL
SUBDIR += p5-PDL-LinearAlgebra
SUBDIR += p5-PDL-Minuit
+ SUBDIR += p5-PDL-Opt-Simplex
SUBDIR += p5-Parse-Range
SUBDIR += p5-Roman
SUBDIR += p5-Set-IntSpan
diff --git a/math/p5-PDL-Opt-Simplex/Makefile b/math/p5-PDL-Opt-Simplex/Makefile
new file mode 100644
index 000000000000..a5e33943db91
--- /dev/null
+++ b/math/p5-PDL-Opt-Simplex/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= PDL-Opt-Simplex
+PORTVERSION= 2.096
+CATEGORIES= math perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Simplex optimization routines
+WWW= https://metacpan.org/dist/PDL-Opt-Simplex
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+
+BUILD_DEPENDS= ${RUN_DEPENDS}
+RUN_DEPENDS= p5-PDL>=2.094:math/p5-PDL
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/math/p5-PDL-Opt-Simplex/distinfo b/math/p5-PDL-Opt-Simplex/distinfo
new file mode 100644
index 000000000000..218679fab50a
--- /dev/null
+++ b/math/p5-PDL-Opt-Simplex/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1736671157
+SHA256 (PDL-Opt-Simplex-2.096.tar.gz) = f7b859d16de2530e945665c586cadf1e3f6598b2db600625d4d09dc8f1dcddd5
+SIZE (PDL-Opt-Simplex-2.096.tar.gz) = 6899
diff --git a/math/p5-PDL-Opt-Simplex/pkg-descr b/math/p5-PDL-Opt-Simplex/pkg-descr
new file mode 100644
index 000000000000..d3bb47d63943
--- /dev/null
+++ b/math/p5-PDL-Opt-Simplex/pkg-descr
@@ -0,0 +1,4 @@
+PDL::Opt::Simplex implements the commonly used simplex optimization algorithm.
+The basic idea of the algorithm is to move a "simplex" of N+1 points in the
+N-dimensional search space according to certain rules. The main benefit of the
+algorithm is that you do not need to calculate the derivatives of your function.
diff --git a/math/p5-PDL-Opt-Simplex/pkg-plist b/math/p5-PDL-Opt-Simplex/pkg-plist
new file mode 100644
index 000000000000..edf0fdba31ec
--- /dev/null
+++ b/math/p5-PDL-Opt-Simplex/pkg-plist
@@ -0,0 +1,3 @@
+%%SITE_PERL%%/PDL/Demos/Simplex.pm
+%%SITE_PERL%%/PDL/Opt/Simplex.pm
+%%PERL5_MAN3%%/PDL::Opt::Simplex.3.gz