diff --git a/COPYING b/COPYING
index 94a9ed024d3859793618152ea559a168bbcbb5e2..f288702d2fa16d3cdf0035b15a9fcbc552cd88e7 100644
--- a/COPYING
+++ b/COPYING
@@ -1,7 +1,7 @@
                     GNU GENERAL PUBLIC LICENSE
                        Version 3, 29 June 2007
 
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+    along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 Also add information on how to contact you by electronic and paper mail.
 
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
   You should also get your employer (if you work as a programmer) or school,
 if any, to sign a "copyright disclaimer" for the program, if necessary.
 For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
+<https://www.gnu.org/licenses/>.
 
   The GNU General Public License does not permit incorporating your program
 into proprietary programs.  If your program is a subroutine library, you
 may consider it more useful to permit linking proprietary applications with
 the library.  If this is what you want to do, use the GNU Lesser General
 Public License instead of this License.  But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/configure.ac b/configure.ac
index 85c674df0a927e5bfff788e346905a9992c0c44b..0dbae033b8398f17ff0f61ef3d75d4e1d4d50ff7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
 AC_INIT([dynare], [4.7-unstable])
diff --git a/doc/bvar-a-la-sims.tex b/doc/bvar-a-la-sims.tex
index 0c40599c3417adb772193a2d2863b4190b9da951..7e16de2d3fce0647e577dadef8877c594137daf5 100644
--- a/doc/bvar-a-la-sims.tex
+++ b/doc/bvar-a-la-sims.tex
@@ -18,7 +18,7 @@
     License, Version 1.3 or any later version published by the Free
     Software Foundation; with no Invariant Sections, no Front-Cover
     Texts, and no Back-Cover Texts. A copy of the license can be found
-    at: \url{http://www.gnu.org/licenses/fdl.txt}
+    at: \url{https://www.gnu.org/licenses/fdl.txt}
     \newline
     \indent Many thanks to Christopher Sims for providing his BVAR
     MATLAB\textregistered~routines, to St\'ephane Adjemian and Michel Juillard
diff --git a/doc/dr.tex b/doc/dr.tex
index d00ea90eb0d035d2f3b1ea4d7d2aacbe593b57ad..1659d94564dd6303fa75044f624787ba16049740 100644
--- a/doc/dr.tex
+++ b/doc/dr.tex
@@ -21,7 +21,7 @@
     License, Version 1.3 or any later version published by the Free
     Software Foundation; with no Invariant Sections, no Front-Cover
     Texts, and no Back-Cover Texts. A copy of the license can be found
-    at: \url{http://www.gnu.org/licenses/fdl.txt}
+    at: \url{https://www.gnu.org/licenses/fdl.txt}
     \newline
     The author acknowledges funding through the Seventh Framework Programme
     for Research (FP7) of the European Commission's Socio-economic Sciences and
diff --git a/doc/gsa/gsa.tex b/doc/gsa/gsa.tex
index 5950e9619ee3e2adbbaa42f94c750fc4ae8c1ec2..91b9e999c19ee4e4c8d8034ace53980732d11e89 100644
--- a/doc/gsa/gsa.tex
+++ b/doc/gsa/gsa.tex
@@ -28,7 +28,7 @@
     License, Version 1.3 or any later version published by the Free
     Software Foundation; with no Invariant Sections, no Front-Cover
     Texts, and no Back-Cover Texts. A copy of the license can be found
-    at: \url{http://www.gnu.org/licenses/fdl.txt}}}
+    at: \url{https://www.gnu.org/licenses/fdl.txt}}}
 
 \author{Marco Ratto\\
 European Commission, Joint Research Centre \\
diff --git a/doc/internals/internals.texi b/doc/internals/internals.texi
index bb9914dca77c12247a8fe1704c67462b3499eb58..5c4cf77334d5020c9ec5e5282162c07251f1b959 100644
--- a/doc/internals/internals.texi
+++ b/doc/internals/internals.texi
@@ -60,7 +60,7 @@ under the terms of the GNU Free Documentation License, Version 1.3 or
 any later version published by the Free Software Foundation; with no
 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 
-A copy of the license can be found at @uref{http://www.gnu.org/licenses/fdl.txt}.
+A copy of the license can be found at @uref{https://www.gnu.org/licenses/fdl.txt}.
 @end quotation
 @end copying
 
diff --git a/doc/manual/source/conf.py b/doc/manual/source/conf.py
index 308bc58ba2be05fe792c1b832578c89a28b0e30a..34fd237201cb13e15cb5f3bddac57a8f4a92e09b 100644
--- a/doc/manual/source/conf.py
+++ b/doc/manual/source/conf.py
@@ -15,7 +15,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 import os
 import sys
diff --git a/doc/manual/source/index.rst b/doc/manual/source/index.rst
index 2e5e2f09bb4d3a4b8016e4cad6ba927a3760d007..584a4d84c16227dcab0a43b736af8cdf9ff7863c 100644
--- a/doc/manual/source/index.rst
+++ b/doc/manual/source/index.rst
@@ -29,7 +29,7 @@ Copyright © 1996-2021, Dynare Team.
 
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 
-A copy of the license can be found at `http://www.gnu.org/licenses/fdl.txt <http://www.gnu.org/licenses/fdl.txt>`__.
+A copy of the license can be found at `https://www.gnu.org/licenses/fdl.txt <https://www.gnu.org/licenses/fdl.txt>`__.
 
 .. toctree::
    :numbered:
diff --git a/doc/manual/utils/dynare_dom.py b/doc/manual/utils/dynare_dom.py
index d286601e18c79120992f7d7d4dc410ce7f3836ec..d1ecee435f3180c31f132d20ca4578a990345c23 100644
--- a/doc/manual/utils/dynare_dom.py
+++ b/doc/manual/utils/dynare_dom.py
@@ -15,7 +15,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 """
     sphinx.domains.dynare
diff --git a/doc/manual/utils/dynare_lex.py b/doc/manual/utils/dynare_lex.py
index 4ba1fcafc04fb24f324754e797a570b6531e2b39..b02fcb58c7e8e08bbb3cdb7aafafd6660f41a8eb 100644
--- a/doc/manual/utils/dynare_lex.py
+++ b/doc/manual/utils/dynare_lex.py
@@ -13,7 +13,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 import re
 
diff --git a/dynare++/integ/cc/precalc_quadrature.hh b/dynare++/integ/cc/precalc_quadrature.hh
index 1aa3f04bd50a7603ffe93f4ca54e7844f618c1c8..fca4d80e36946e3408e39b9d84aeaaf66d4b71bb 100644
--- a/dynare++/integ/cc/precalc_quadrature.hh
+++ b/dynare++/integ/cc/precalc_quadrature.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // The file contains one dimensional quadrature points and weights for a few
diff --git a/dynare++/integ/cc/product.cc b/dynare++/integ/cc/product.cc
index d3515455087cf07895c16458863b1fea30fa1e96..ad9f7296dceb9b801fe7946ddbcde1b67061f48d 100644
--- a/dynare++/integ/cc/product.cc
+++ b/dynare++/integ/cc/product.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "product.hh"
diff --git a/dynare++/integ/cc/product.hh b/dynare++/integ/cc/product.hh
index 894cc7add400a153e66ebc9c8bc5bca594f3345d..840bf7045a2aa60d2eee2984f085af908fa195df 100644
--- a/dynare++/integ/cc/product.hh
+++ b/dynare++/integ/cc/product.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Product quadrature.
diff --git a/dynare++/integ/cc/quadrature.cc b/dynare++/integ/cc/quadrature.cc
index 296db020bf4a8833323b38fc0a173c0863f513ce..9053240e4d8c1ad71768de1a7b3ad18505f9d84d 100644
--- a/dynare++/integ/cc/quadrature.cc
+++ b/dynare++/integ/cc/quadrature.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "quadrature.hh"
diff --git a/dynare++/integ/cc/quadrature.hh b/dynare++/integ/cc/quadrature.hh
index 501713cfc49447b57de4cea1b3d51c8b13c0e032..5f1bff9fc38d10e041d2e4fc40de766b26406a38 100644
--- a/dynare++/integ/cc/quadrature.hh
+++ b/dynare++/integ/cc/quadrature.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Quadrature.
diff --git a/dynare++/integ/cc/quasi_mcarlo.cc b/dynare++/integ/cc/quasi_mcarlo.cc
index 80c5740f63fdfea0af004eb4a6f82e215bdfa747..4cdde2ce904486420b5c52c65e10b98b216eb299 100644
--- a/dynare++/integ/cc/quasi_mcarlo.cc
+++ b/dynare++/integ/cc/quasi_mcarlo.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "quasi_mcarlo.hh"
diff --git a/dynare++/integ/cc/quasi_mcarlo.hh b/dynare++/integ/cc/quasi_mcarlo.hh
index 8df3e63fa550ad13b6d9b60c344f3777fa924d78..018da240ebbd7fecfecc8d8e81e5b6e5d843330e 100644
--- a/dynare++/integ/cc/quasi_mcarlo.hh
+++ b/dynare++/integ/cc/quasi_mcarlo.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Quasi Monte Carlo quadrature.
diff --git a/dynare++/integ/cc/smolyak.cc b/dynare++/integ/cc/smolyak.cc
index 0a41f0645c177996b1a17fb402e1c290749fc850..df123785cddcdc35388afc7123f18ccbde3da45f 100644
--- a/dynare++/integ/cc/smolyak.cc
+++ b/dynare++/integ/cc/smolyak.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "smolyak.hh"
diff --git a/dynare++/integ/cc/smolyak.hh b/dynare++/integ/cc/smolyak.hh
index a51a98bb75c7b869ca9cc3076a55bf0717008da1..5614335935e9e49f983465a5f807a77fe081fa2a 100644
--- a/dynare++/integ/cc/smolyak.hh
+++ b/dynare++/integ/cc/smolyak.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Smolyak quadrature.
diff --git a/dynare++/integ/cc/vector_function.cc b/dynare++/integ/cc/vector_function.cc
index c541ba0f245cfed7b0a7d5c7f9332c8d81ce4191..b639a6a42469b834f0daf06bd1dca78d2df83c39 100644
--- a/dynare++/integ/cc/vector_function.cc
+++ b/dynare++/integ/cc/vector_function.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "vector_function.hh"
diff --git a/dynare++/integ/cc/vector_function.hh b/dynare++/integ/cc/vector_function.hh
index 6a0f7dec6ce920de0d876a04743298cc9dc604f4..8beee94dca85edd56b014b269d95865701f029a4 100644
--- a/dynare++/integ/cc/vector_function.hh
+++ b/dynare++/integ/cc/vector_function.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Vector function.
diff --git a/dynare++/integ/src/quadrature-points.cc b/dynare++/integ/src/quadrature-points.cc
index 2973a222f4aee61af31b93b8f92665ca4b9156f8..b4ed5206b578f9f40e4ffa2adc38b3b851461c8b 100644
--- a/dynare++/integ/src/quadrature-points.cc
+++ b/dynare++/integ/src/quadrature-points.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "parser/cc/matrix_parser.hh"
diff --git a/dynare++/integ/testing/tests.cc b/dynare++/integ/testing/tests.cc
index 9143ddac10d4c8f095512ddc7477f80d89b55e32..a3f7788852e0c94606b1f3775409af272e6d33a5 100644
--- a/dynare++/integ/testing/tests.cc
+++ b/dynare++/integ/testing/tests.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "GeneralMatrix.hh"
diff --git a/dynare++/kord/approximation.cc b/dynare++/kord/approximation.cc
index 045753d2dafa176a411fd0fc1ee20b811df54b91..0d082edb367406e17976669a88dc656fe0d0329c 100644
--- a/dynare++/kord/approximation.cc
+++ b/dynare++/kord/approximation.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <utility>
diff --git a/dynare++/kord/approximation.hh b/dynare++/kord/approximation.hh
index c9e84584209540cc2b73fb3f5f5659d7a5278d2c..fdf0bd5fa0883568ac410491e5d094bc9566248b 100644
--- a/dynare++/kord/approximation.hh
+++ b/dynare++/kord/approximation.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Approximating model solution
diff --git a/dynare++/kord/decision_rule.cc b/dynare++/kord/decision_rule.cc
index 5d0a624f47e898e1e0b0c7d2053d47cf53d4e396..9330a73aa119267339e173d438dd69fa52acdf2a 100644
--- a/dynare++/kord/decision_rule.cc
+++ b/dynare++/kord/decision_rule.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "kord_exception.hh"
diff --git a/dynare++/kord/decision_rule.hh b/dynare++/kord/decision_rule.hh
index 6bf3e9834d92beaa7ab53ed503fe139407f36465..23b4636589aabb278333f26bfa50be72a57d0749 100644
--- a/dynare++/kord/decision_rule.hh
+++ b/dynare++/kord/decision_rule.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Decision rule and simulation
diff --git a/dynare++/kord/dynamic_model.cc b/dynare++/kord/dynamic_model.cc
index 698dfccf67d84b1938001fd37071fd363c112bab..99b5d525cf00944eb9fa3cfc660947d42d57babf 100644
--- a/dynare++/kord/dynamic_model.cc
+++ b/dynare++/kord/dynamic_model.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "dynamic_model.hh"
diff --git a/dynare++/kord/dynamic_model.hh b/dynare++/kord/dynamic_model.hh
index cd129ccddf6b536c8238a1dc2cc9bad37adab5da..9ceb02cac037296ce98c159ffc13a8075cc68e60 100644
--- a/dynare++/kord/dynamic_model.hh
+++ b/dynare++/kord/dynamic_model.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Dynamic model abstraction
diff --git a/dynare++/kord/faa_di_bruno.cc b/dynare++/kord/faa_di_bruno.cc
index fa575c907e4de8ca08ee93ea509ef1fdc48bef7b..d0d623c0e3c74bd95295d5533d13641510c2ff2e 100644
--- a/dynare++/kord/faa_di_bruno.cc
+++ b/dynare++/kord/faa_di_bruno.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "faa_di_bruno.hh"
diff --git a/dynare++/kord/faa_di_bruno.hh b/dynare++/kord/faa_di_bruno.hh
index 8ccbaf4bcf2da735f0f1bc4911624a968f8ff81f..45c6f75919facb8b395403655998ed841bded530 100644
--- a/dynare++/kord/faa_di_bruno.hh
+++ b/dynare++/kord/faa_di_bruno.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Faà Di Bruno evaluator
diff --git a/dynare++/kord/first_order.cc b/dynare++/kord/first_order.cc
index 96508183cf9697a25519bb94f6b9f503cc24ea11..1086cd42131dbf4417ba9e890368962860e11dbb 100644
--- a/dynare++/kord/first_order.cc
+++ b/dynare++/kord/first_order.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "kord_exception.hh"
diff --git a/dynare++/kord/first_order.hh b/dynare++/kord/first_order.hh
index 6d3c35b01de87a07cea5c04bfcb3e6909a10db7c..d68d0b2311648fa8e54c03b82160c4748bee8ee5 100644
--- a/dynare++/kord/first_order.hh
+++ b/dynare++/kord/first_order.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // First order at deterministic steady state
diff --git a/dynare++/kord/global_check.cc b/dynare++/kord/global_check.cc
index c1037d49ac4c8a26d22c22937ee50dd82ef94bbc..0992c8ad16a75eb8ff41984913af781f563fce59 100644
--- a/dynare++/kord/global_check.cc
+++ b/dynare++/kord/global_check.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SymSchurDecomp.hh"
diff --git a/dynare++/kord/global_check.hh b/dynare++/kord/global_check.hh
index 8e7b35714c21efd32800db94e7432636a3d39ab2..e5dae5057303b975030d20e7ceaf5921c5076fcc 100644
--- a/dynare++/kord/global_check.hh
+++ b/dynare++/kord/global_check.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Global check
diff --git a/dynare++/kord/journal.cc b/dynare++/kord/journal.cc
index 3ddfcef1ce66ce520b7e92753d8a843043b1f5ea..c29098e245ac15c82a73a8f654e7c8da9b74ebff 100644
--- a/dynare++/kord/journal.cc
+++ b/dynare++/kord/journal.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "journal.hh"
diff --git a/dynare++/kord/journal.hh b/dynare++/kord/journal.hh
index 58ce81772e627be1ea6377832fba466a68ca2b10..a6bfb095fcc78f70692133fdce49e67fb7dfb451 100644
--- a/dynare++/kord/journal.hh
+++ b/dynare++/kord/journal.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Resource usage journal
diff --git a/dynare++/kord/kord_exception.hh b/dynare++/kord/kord_exception.hh
index f5777241e919f2b99db899a001f83495e49bd0a1..1e357e8b01542fe14458739491664b943fa8bc4e 100644
--- a/dynare++/kord/kord_exception.hh
+++ b/dynare++/kord/kord_exception.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Exception
diff --git a/dynare++/kord/korder.cc b/dynare++/kord/korder.cc
index 3ba9425b597fe71b8018dbe7b3c34cadb16b4ebf..e06db1f060107b7003751332e9d6d1daa6063682 100644
--- a/dynare++/kord/korder.cc
+++ b/dynare++/kord/korder.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "kord_exception.hh"
diff --git a/dynare++/kord/korder.hh b/dynare++/kord/korder.hh
index 1eb67130c822faf952a234f02a44d3d12e03d8de..54a098b0795578e4813e9fdfa397a66b88513f18 100644
--- a/dynare++/kord/korder.hh
+++ b/dynare++/kord/korder.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Higher order at deterministic steady
diff --git a/dynare++/kord/korder_stoch.cc b/dynare++/kord/korder_stoch.cc
index 397dac59a75c0edfdd6b8e7ed4f42d926ee11534..def68885a3452535cf4acfb68454f6fee605339d 100644
--- a/dynare++/kord/korder_stoch.cc
+++ b/dynare++/kord/korder_stoch.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "korder_stoch.hh"
diff --git a/dynare++/kord/korder_stoch.hh b/dynare++/kord/korder_stoch.hh
index a450f2bda9ab3ed8fd7896a9b79c27e47fc9534a..cbf55b1224b63d074b9c14d328f60a153634b0e8 100644
--- a/dynare++/kord/korder_stoch.hh
+++ b/dynare++/kord/korder_stoch.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Higher order at stochastic steady
diff --git a/dynare++/kord/normal_conjugate.cc b/dynare++/kord/normal_conjugate.cc
index 45b46752888130df7bbdc8b0b49a85263c4e230e..3c5fd8b138ebeb1668776a2be772b2e1a41d2b35 100644
--- a/dynare++/kord/normal_conjugate.cc
+++ b/dynare++/kord/normal_conjugate.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "normal_conjugate.hh"
diff --git a/dynare++/kord/normal_conjugate.hh b/dynare++/kord/normal_conjugate.hh
index 95e5a79019df0099f4de1963ce0031b6791c06cc..2f6268087da2b218e6ac700d40eafc66f371ceff 100644
--- a/dynare++/kord/normal_conjugate.hh
+++ b/dynare++/kord/normal_conjugate.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Conjugate family for normal distribution
diff --git a/dynare++/kord/seed_generator.cc b/dynare++/kord/seed_generator.cc
index edd6f295e27327c3bb1d8e98d56a5c2c71849ff7..ccc138c516958309f4bf04bea1872afd4a0dfad7 100644
--- a/dynare++/kord/seed_generator.cc
+++ b/dynare++/kord/seed_generator.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "seed_generator.hh"
diff --git a/dynare++/kord/seed_generator.hh b/dynare++/kord/seed_generator.hh
index 50320e427c707c710adce6fffdf9579ad0b4f119..5679ad2a9fd97726211c7f9228bf7d4bf88bc621 100644
--- a/dynare++/kord/seed_generator.hh
+++ b/dynare++/kord/seed_generator.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef RANDOM_H
diff --git a/dynare++/kord/tests.cc b/dynare++/kord/tests.cc
index 9827eba95767fca1469337a9b58fa9fb64b3049c..15ce932a3f5ad021ea4a80e554d0db339096a1f4 100644
--- a/dynare++/kord/tests.cc
+++ b/dynare++/kord/tests.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <chrono>
diff --git a/dynare++/parser/cc/assign.ll b/dynare++/parser/cc/assign.ll
index 5fe338fc5ebd5d2f6067618eeb5c2db8e9b85dcf..64d756ffef3727743ec66733c7a251741b919b7e 100644
--- a/dynare++/parser/cc/assign.ll
+++ b/dynare++/parser/cc/assign.ll
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 %{
 #include "location.hh"
diff --git a/dynare++/parser/cc/assign.yy b/dynare++/parser/cc/assign.yy
index a9de698b5a1a9b715739b5d8757402729c09b932..167063c609804d358bfa28783644e56b194f4027 100644
--- a/dynare++/parser/cc/assign.yy
+++ b/dynare++/parser/cc/assign.yy
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 %code requires
diff --git a/dynare++/parser/cc/atom_assignings.cc b/dynare++/parser/cc/atom_assignings.cc
index e49839b49d61c8e1af03b8de8ff68bbd93fd1af4..a3dc17a618f209f700a23f8ff8bb2190b3d2b366 100644
--- a/dynare++/parser/cc/atom_assignings.cc
+++ b/dynare++/parser/cc/atom_assignings.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "atom_assignings.hh"
diff --git a/dynare++/parser/cc/atom_assignings.hh b/dynare++/parser/cc/atom_assignings.hh
index ace2b58302cc3414e7855e93db0daaa812c67454..e5a12413544167e298e4ad59546dfd4fd9345692 100644
--- a/dynare++/parser/cc/atom_assignings.hh
+++ b/dynare++/parser/cc/atom_assignings.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_ATOM_ASSIGNINGS_H
diff --git a/dynare++/parser/cc/atom_substitutions.cc b/dynare++/parser/cc/atom_substitutions.cc
index 840c240f6b9bb9ca376cf83af8dd12c74b625b6d..9bbe6070e48fce775f4fb58effb578c60ff1ee28 100644
--- a/dynare++/parser/cc/atom_substitutions.cc
+++ b/dynare++/parser/cc/atom_substitutions.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "atom_substitutions.hh"
diff --git a/dynare++/parser/cc/atom_substitutions.hh b/dynare++/parser/cc/atom_substitutions.hh
index 3f50e2266096d0f260efe33bf6a7fb1e032991ca..3fbf3e80a40a3951b41cadf7f3542b6e0c3f9c6c 100644
--- a/dynare++/parser/cc/atom_substitutions.hh
+++ b/dynare++/parser/cc/atom_substitutions.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_ATOM_SUBSTITUTIONS_H
diff --git a/dynare++/parser/cc/dynamic_atoms.cc b/dynare++/parser/cc/dynamic_atoms.cc
index d1773fe1c1623163ca2e176acfdccd3066a40f88..d1dafaa7313ad15774cbf99e7f4cce1c78aa908c 100644
--- a/dynare++/parser/cc/dynamic_atoms.cc
+++ b/dynare++/parser/cc/dynamic_atoms.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "utils/cc/exception.hh"
diff --git a/dynare++/parser/cc/dynamic_atoms.hh b/dynare++/parser/cc/dynamic_atoms.hh
index 2efab37810eb4fa6a88303d5d83dab33ad76eb8d..f0f1bfaefe4d7ca714c71126bc9059f5dffdeb39 100644
--- a/dynare++/parser/cc/dynamic_atoms.hh
+++ b/dynare++/parser/cc/dynamic_atoms.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_DYNAMIC_ATOMS_H
diff --git a/dynare++/parser/cc/fine_atoms.cc b/dynare++/parser/cc/fine_atoms.cc
index 2c5a28d6b6bf4a62bf13abb6258c162be36e2b0d..3b782fbe10df10e13d65186ed7af4ef723fda6c9 100644
--- a/dynare++/parser/cc/fine_atoms.cc
+++ b/dynare++/parser/cc/fine_atoms.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "utils/cc/exception.hh"
diff --git a/dynare++/parser/cc/fine_atoms.hh b/dynare++/parser/cc/fine_atoms.hh
index 61e4fd1d75e9000d90c3134cef267ebde1e01e8c..c463c7c7c3b2a6b34d7365d63263967480604104 100644
--- a/dynare++/parser/cc/fine_atoms.hh
+++ b/dynare++/parser/cc/fine_atoms.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_FINE_ATOMS_H
diff --git a/dynare++/parser/cc/formula.ll b/dynare++/parser/cc/formula.ll
index 69e1909c4c139395accf1d18b957dab4354ddbe9..4b5b2aeb2c5bdb9dab3025b4a2341a8b936e25d8 100644
--- a/dynare++/parser/cc/formula.ll
+++ b/dynare++/parser/cc/formula.ll
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 %{
 #include "location.hh"
diff --git a/dynare++/parser/cc/formula.yy b/dynare++/parser/cc/formula.yy
index a25205305f5c26f6e48cc4a405dad784b9af9677..4fc7f934d9c288cd16205c883aed18d289e92927 100644
--- a/dynare++/parser/cc/formula.yy
+++ b/dynare++/parser/cc/formula.yy
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 %code requires
diff --git a/dynare++/parser/cc/formula_parser.cc b/dynare++/parser/cc/formula_parser.cc
index 1c37b3618ff5068a747dfa68e183d500ede53120..e23ca3a0d2e4941612f1ec75bacdcf1ac2bad02f 100644
--- a/dynare++/parser/cc/formula_parser.cc
+++ b/dynare++/parser/cc/formula_parser.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "utils/cc/pascal_triangle.hh"
diff --git a/dynare++/parser/cc/formula_parser.hh b/dynare++/parser/cc/formula_parser.hh
index fde8eff81a8ff50c10090b647821b770b760d0fd..09a9e37d64672c30f360e7ddd501ef0e49090e3a 100644
--- a/dynare++/parser/cc/formula_parser.hh
+++ b/dynare++/parser/cc/formula_parser.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_FORMULA_PARSER_H
diff --git a/dynare++/parser/cc/matrix.ll b/dynare++/parser/cc/matrix.ll
index d65b3b5e8f7d8cf5fb1969c3513c219f5b0b8b3d..d1277f3f11c51622e74f37a7b9c55cc54316686e 100644
--- a/dynare++/parser/cc/matrix.ll
+++ b/dynare++/parser/cc/matrix.ll
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 %{
diff --git a/dynare++/parser/cc/matrix.yy b/dynare++/parser/cc/matrix.yy
index 361d678e2eac7b4d423b113d44fcab7b4184b23b..b80f3aef7126e2df43a13293b14b116b7a4918ff 100644
--- a/dynare++/parser/cc/matrix.yy
+++ b/dynare++/parser/cc/matrix.yy
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 %code requires
diff --git a/dynare++/parser/cc/matrix_parser.cc b/dynare++/parser/cc/matrix_parser.cc
index 46e64ff6e75f570a7b0321a8a2b41a77315cb88c..91d90a01f5193c7382106789f778fba9beadce78 100644
--- a/dynare++/parser/cc/matrix_parser.cc
+++ b/dynare++/parser/cc/matrix_parser.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "parser_exception.hh"
diff --git a/dynare++/parser/cc/matrix_parser.hh b/dynare++/parser/cc/matrix_parser.hh
index b2028429bcaace34a8bfe589e29bd4cfbc3d8695..3a7c9c2962b11cdf24fab1996c7a5b366e7d8d16 100644
--- a/dynare++/parser/cc/matrix_parser.hh
+++ b/dynare++/parser/cc/matrix_parser.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_MATRIX_PARSER
diff --git a/dynare++/parser/cc/parser_exception.cc b/dynare++/parser/cc/parser_exception.cc
index f0bb91b4934fac328c50a0cd79a11013451422fe..8659c33363a81276b839de4d7f27be893b5ca930 100644
--- a/dynare++/parser/cc/parser_exception.cc
+++ b/dynare++/parser/cc/parser_exception.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "parser_exception.hh"
diff --git a/dynare++/parser/cc/parser_exception.hh b/dynare++/parser/cc/parser_exception.hh
index 8844e2bc7d2f54731a1319d338544164d9377458..d8b69fe1f945f1931689aaa83027504f3aa93061 100644
--- a/dynare++/parser/cc/parser_exception.hh
+++ b/dynare++/parser/cc/parser_exception.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OG_FORMULA_PARSER_H
diff --git a/dynare++/parser/cc/static_atoms.cc b/dynare++/parser/cc/static_atoms.cc
index 56659841499a177648b52b46ee58189139789064..c3771ecba8a5c953a012272552b12d80ad0d28e8 100644
--- a/dynare++/parser/cc/static_atoms.cc
+++ b/dynare++/parser/cc/static_atoms.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "static_atoms.hh"
diff --git a/dynare++/parser/cc/static_atoms.hh b/dynare++/parser/cc/static_atoms.hh
index 19ef6cf888c53f07c169424f4e702a1fa2f81676..bb2d954fe6001e0e075bff71f69db9c68846cdf2 100644
--- a/dynare++/parser/cc/static_atoms.hh
+++ b/dynare++/parser/cc/static_atoms.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_STATIC_ATOMS
diff --git a/dynare++/parser/cc/static_fine_atoms.cc b/dynare++/parser/cc/static_fine_atoms.cc
index ea34f137350fd4d908983adf2f32720db7be1b01..872882c1ac453631e4edf6c5d956fdb26e63d074 100644
--- a/dynare++/parser/cc/static_fine_atoms.cc
+++ b/dynare++/parser/cc/static_fine_atoms.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "utils/cc/exception.hh"
diff --git a/dynare++/parser/cc/static_fine_atoms.hh b/dynare++/parser/cc/static_fine_atoms.hh
index 1751370528cf5f78cd46e76c24483a502606a37a..482d5e33d21460612f5228a600892f3fc1c72187 100644
--- a/dynare++/parser/cc/static_fine_atoms.hh
+++ b/dynare++/parser/cc/static_fine_atoms.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_STATIC_FINE_ATOMS_H
diff --git a/dynare++/parser/cc/tree.cc b/dynare++/parser/cc/tree.cc
index bc8d7b7802ab056f9da2d799a3cfbf98d3448ca5..8bb6704c1dc2f0e3cef2e707e98e74c4623198b6 100644
--- a/dynare++/parser/cc/tree.cc
+++ b/dynare++/parser/cc/tree.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "utils/cc/exception.hh"
diff --git a/dynare++/parser/cc/tree.hh b/dynare++/parser/cc/tree.hh
index b5041cca53195d7cee4047ac1330477007408fde..a125f8be850bffceccd1fc7ce848708adfe6037c 100644
--- a/dynare++/parser/cc/tree.hh
+++ b/dynare++/parser/cc/tree.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGP_TREE_H
diff --git a/dynare++/src/dynare3.cc b/dynare++/src/dynare3.cc
index 3b220cfbcf93d5963e1e00b95288ad610e5ed008..43709d173ce22d32ced553a2a41430a41f10f9eb 100644
--- a/dynare++/src/dynare3.cc
+++ b/dynare++/src/dynare3.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <sstream>
diff --git a/dynare++/src/dynare3.hh b/dynare++/src/dynare3.hh
index f31946f1162684cc127694416b85784bb4e056e4..d0c2098725a93d4fe6389ad759d943874136ecfe 100644
--- a/dynare++/src/dynare3.hh
+++ b/dynare++/src/dynare3.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef DYNARE3_H
diff --git a/dynare++/src/dynare_atoms.cc b/dynare++/src/dynare_atoms.cc
index 3360fc4e3a98442a42cf78dd814f65c73abc710b..ea998b068b713a77e936f15dd09960df0d5cc982 100644
--- a/dynare++/src/dynare_atoms.cc
+++ b/dynare++/src/dynare_atoms.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "parser/cc/parser_exception.hh"
diff --git a/dynare++/src/dynare_atoms.hh b/dynare++/src/dynare_atoms.hh
index 54a34c4269f5c53f5a4f0eb9aeaae8d84b0fba96..60d8244910c9e52946b46d0585acee4a3dee1494 100644
--- a/dynare++/src/dynare_atoms.hh
+++ b/dynare++/src/dynare_atoms.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGDYN_DYNARE_ATOMS_H
diff --git a/dynare++/src/dynare_exception.hh b/dynare++/src/dynare_exception.hh
index 1112a37c6094833f8ecc4a4ed9baa15519cd229a..d86466b484fa081d74b2461b08b6adff28dce9d3 100644
--- a/dynare++/src/dynare_exception.hh
+++ b/dynare++/src/dynare_exception.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef DYNARE_EXCEPTION_H
diff --git a/dynare++/src/dynare_model.cc b/dynare++/src/dynare_model.cc
index 683e7f8a4992027d98a90db97d1a62d9c799e326..f7e155cd3d666ce03993a71811a63b207e477fd6 100644
--- a/dynare++/src/dynare_model.cc
+++ b/dynare++/src/dynare_model.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "parser/cc/parser_exception.hh"
diff --git a/dynare++/src/dynare_model.hh b/dynare++/src/dynare_model.hh
index 6c9a2f231595970b0771acd28b91d8dcc59912b0..a4498d9dea8dd735280bc5589fe0ba4a46ea633d 100644
--- a/dynare++/src/dynare_model.hh
+++ b/dynare++/src/dynare_model.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGDYN_DYNARE_MODEL
diff --git a/dynare++/src/dynare_params.cc b/dynare++/src/dynare_params.cc
index 81b8064a425b868f6ebd4f951a0d2ce1c0638a7b..d8d67bf587e366db8af8076f42d487514d3ce797 100644
--- a/dynare++/src/dynare_params.cc
+++ b/dynare++/src/dynare_params.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "dynare_params.hh"
diff --git a/dynare++/src/dynare_params.hh b/dynare++/src/dynare_params.hh
index 3139bf8e9c6f2d924823bf697a52656c2040ffdb..91363356ec5c5eb7eda786b230f813ae3074c8b0 100644
--- a/dynare++/src/dynare_params.hh
+++ b/dynare++/src/dynare_params.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 /*
diff --git a/dynare++/src/dynglob.ll b/dynare++/src/dynglob.ll
index f9a561173a4a4689095346e5679e3333b294eeee..cbb0341b9f56ebb82c2e1b3b051961908551e0ea 100644
--- a/dynare++/src/dynglob.ll
+++ b/dynare++/src/dynglob.ll
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 %{
 #include "parser/cc/location.hh"
diff --git a/dynare++/src/dynglob.yy b/dynare++/src/dynglob.yy
index 97a9c6b233b64fe6808a80d529e40861476f2b5b..dac74dc8c980af795ec3d7805109b545300a6acb 100644
--- a/dynare++/src/dynglob.yy
+++ b/dynare++/src/dynglob.yy
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 %code requires
diff --git a/dynare++/src/forw_subst_builder.cc b/dynare++/src/forw_subst_builder.cc
index fc713e1f4aba5cc9fc703c5cc656a2df41d0ee1b..08ebd8a1e921c155141747e347882ce17de27dff 100644
--- a/dynare++/src/forw_subst_builder.cc
+++ b/dynare++/src/forw_subst_builder.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "forw_subst_builder.hh"
diff --git a/dynare++/src/forw_subst_builder.hh b/dynare++/src/forw_subst_builder.hh
index 49f635b3cb66421d523d9a801b35b1a9f961ecc5..7bf12f1e7673ba301f9fe4461150b00b308e8142 100644
--- a/dynare++/src/forw_subst_builder.hh
+++ b/dynare++/src/forw_subst_builder.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef FORW_SUBST_BUILDER_H
diff --git a/dynare++/src/main.cc b/dynare++/src/main.cc
index f29e06ebf8ea6fc3fadcc34d3962e4726334a4ac..d569b3110802b763e2dfae689ec2b1d6fa761953 100644
--- a/dynare++/src/main.cc
+++ b/dynare++/src/main.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "dynare3.hh"
diff --git a/dynare++/src/nlsolve.cc b/dynare++/src/nlsolve.cc
index 566a9ad1c82d691969429a029464a00e7b260300..4c48fb8c4b6277dd9b20b3ca019a447530e3ee10 100644
--- a/dynare++/src/nlsolve.cc
+++ b/dynare++/src/nlsolve.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "nlsolve.hh"
diff --git a/dynare++/src/nlsolve.hh b/dynare++/src/nlsolve.hh
index b45ace078b7dd62a5f305c456678db6317e3b768..b1e1bc21f9205ca4cebd5eb3ef4b10080b00ab9b 100644
--- a/dynare++/src/nlsolve.hh
+++ b/dynare++/src/nlsolve.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGU_NLSOLVE_H
diff --git a/dynare++/src/planner_builder.cc b/dynare++/src/planner_builder.cc
index 0fb3202e0dc14d049d0e53f2f46e6ca1fa9ad572..41bb6f91da2ae31a8c6d9da1c3316181415820a7 100644
--- a/dynare++/src/planner_builder.cc
+++ b/dynare++/src/planner_builder.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "planner_builder.hh"
diff --git a/dynare++/src/planner_builder.hh b/dynare++/src/planner_builder.hh
index a2fe7dd1b014a82a6751d9973b5b1acfe6e58917..206df7da767dd53cd1274ad40a3a536db48c6be4 100644
--- a/dynare++/src/planner_builder.hh
+++ b/dynare++/src/planner_builder.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef PLANNER_BUILDER_H
diff --git a/dynare++/sylv/cc/BlockDiagonal.cc b/dynare++/sylv/cc/BlockDiagonal.cc
index aec1a6a2b67447394d54c51874a43dcdcfe643fa..89483290fcbab7002301c8fda1ba658fe7af88ab 100644
--- a/dynare++/sylv/cc/BlockDiagonal.cc
+++ b/dynare++/sylv/cc/BlockDiagonal.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "BlockDiagonal.hh"
diff --git a/dynare++/sylv/cc/BlockDiagonal.hh b/dynare++/sylv/cc/BlockDiagonal.hh
index 404c9fb2eedd3f390c9f0d10e7a606001dd0d8f4..e5e333366f7baacde1f454e96885df58ce502fa3 100644
--- a/dynare++/sylv/cc/BlockDiagonal.hh
+++ b/dynare++/sylv/cc/BlockDiagonal.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef BLOCK_DIAGONAL_H
diff --git a/dynare++/sylv/cc/GeneralMatrix.cc b/dynare++/sylv/cc/GeneralMatrix.cc
index e4d1a4eaacfcd078cec765e0da5c39232c0d91c4..9e8a91b792cb0e8f1df22b75e003c47c18a8e706 100644
--- a/dynare++/sylv/cc/GeneralMatrix.cc
+++ b/dynare++/sylv/cc/GeneralMatrix.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SylvException.hh"
diff --git a/dynare++/sylv/cc/GeneralMatrix.hh b/dynare++/sylv/cc/GeneralMatrix.hh
index e49e221c38f8864ba0edaba7685d1acf766f3f65..61dbeec2610455682017ec59b4d69c2c8b366b29 100644
--- a/dynare++/sylv/cc/GeneralMatrix.hh
+++ b/dynare++/sylv/cc/GeneralMatrix.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef GENERAL_MATRIX_H
diff --git a/dynare++/sylv/cc/GeneralSylvester.cc b/dynare++/sylv/cc/GeneralSylvester.cc
index fd12e21d51ce6ccd9f63c7d0e656ba57ac66da38..89994de685e8ff519e9ea5310d103716e85d704b 100644
--- a/dynare++/sylv/cc/GeneralSylvester.cc
+++ b/dynare++/sylv/cc/GeneralSylvester.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "GeneralSylvester.hh"
diff --git a/dynare++/sylv/cc/GeneralSylvester.hh b/dynare++/sylv/cc/GeneralSylvester.hh
index d3b98aee02f0ac48bf34152fac5d25f3e1c15b2e..83d439cf9dd1859f9e163249a1638d534b53773f 100644
--- a/dynare++/sylv/cc/GeneralSylvester.hh
+++ b/dynare++/sylv/cc/GeneralSylvester.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef GENERAL_SYLVESTER_H
diff --git a/dynare++/sylv/cc/IterativeSylvester.cc b/dynare++/sylv/cc/IterativeSylvester.cc
index bca1d058f06844982c8336384077b174e8bcc289..86a3e74bcad22e9a6485d26ed407812ec9fcf4ba 100644
--- a/dynare++/sylv/cc/IterativeSylvester.cc
+++ b/dynare++/sylv/cc/IterativeSylvester.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "IterativeSylvester.hh"
diff --git a/dynare++/sylv/cc/IterativeSylvester.hh b/dynare++/sylv/cc/IterativeSylvester.hh
index 11a81d05f8afe008fba7282a049de948b7769e28..5d40146f629f29303724d2a31297b38d1041da81 100644
--- a/dynare++/sylv/cc/IterativeSylvester.hh
+++ b/dynare++/sylv/cc/IterativeSylvester.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef ITERATIVE_SYLVESTER_H
diff --git a/dynare++/sylv/cc/KronUtils.cc b/dynare++/sylv/cc/KronUtils.cc
index 92abea68e0e75b50fd57de5dbb61a6e07ef0dab3..d8b60dfbc2e532f28d628e8fb4081468167ba9f0 100644
--- a/dynare++/sylv/cc/KronUtils.cc
+++ b/dynare++/sylv/cc/KronUtils.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "KronUtils.hh"
diff --git a/dynare++/sylv/cc/KronUtils.hh b/dynare++/sylv/cc/KronUtils.hh
index 38a0cf34adc480ab63ae2f711310db491603041c..d0ae80c547b9e6ce41d1e6c6eb273d7456e4545b 100644
--- a/dynare++/sylv/cc/KronUtils.hh
+++ b/dynare++/sylv/cc/KronUtils.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef KRON_UTILS_H
diff --git a/dynare++/sylv/cc/KronVector.cc b/dynare++/sylv/cc/KronVector.cc
index 330e150bd18569557e1c6c6ece5215a63bd678aa..60bc5de184ac2167f8d9cfb198ed9cdef45e7121 100644
--- a/dynare++/sylv/cc/KronVector.cc
+++ b/dynare++/sylv/cc/KronVector.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "KronVector.hh"
diff --git a/dynare++/sylv/cc/KronVector.hh b/dynare++/sylv/cc/KronVector.hh
index 5ab01f47edc31305bd87fd4a7914b04c19b131d8..9c2a8d70052a9f59856efbdd3f5b91bc87c9ab4d 100644
--- a/dynare++/sylv/cc/KronVector.hh
+++ b/dynare++/sylv/cc/KronVector.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef KRON_VECTOR_H
diff --git a/dynare++/sylv/cc/QuasiTriangular.cc b/dynare++/sylv/cc/QuasiTriangular.cc
index cdf3ea1eb6fa6859ce5849476a4223d011762970..faa81384c72adcc44370279273f6abcb7e5e8036 100644
--- a/dynare++/sylv/cc/QuasiTriangular.cc
+++ b/dynare++/sylv/cc/QuasiTriangular.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "QuasiTriangular.hh"
diff --git a/dynare++/sylv/cc/QuasiTriangular.hh b/dynare++/sylv/cc/QuasiTriangular.hh
index ed1fab7e489f86ba9446d67de7cf80d49ce41e35..b5a32737499fbc4a36c8e842c658bdd63c867d50 100644
--- a/dynare++/sylv/cc/QuasiTriangular.hh
+++ b/dynare++/sylv/cc/QuasiTriangular.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef QUASI_TRIANGULAR_H
diff --git a/dynare++/sylv/cc/QuasiTriangularZero.cc b/dynare++/sylv/cc/QuasiTriangularZero.cc
index 210e1d8a0961fee2a898df1b6197bdc7f515336c..294459fb9372d8d59760a1351f0576c5da09727a 100644
--- a/dynare++/sylv/cc/QuasiTriangularZero.cc
+++ b/dynare++/sylv/cc/QuasiTriangularZero.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "QuasiTriangularZero.hh"
diff --git a/dynare++/sylv/cc/QuasiTriangularZero.hh b/dynare++/sylv/cc/QuasiTriangularZero.hh
index ef896d4aef108cf2c470d4ec7be3e8ea68a2d44b..831c6c5e47074ada0dafa1e19d7308597b3e0d9e 100644
--- a/dynare++/sylv/cc/QuasiTriangularZero.hh
+++ b/dynare++/sylv/cc/QuasiTriangularZero.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef QUASI_TRIANGULAR_ZERO_H
diff --git a/dynare++/sylv/cc/SchurDecomp.cc b/dynare++/sylv/cc/SchurDecomp.cc
index 01c1460114ab05fe85f6b61f497b1dcd1844ad51..6ce30157913b0386a8d75cebe84306bde1eec6cd 100644
--- a/dynare++/sylv/cc/SchurDecomp.cc
+++ b/dynare++/sylv/cc/SchurDecomp.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SchurDecomp.hh"
diff --git a/dynare++/sylv/cc/SchurDecomp.hh b/dynare++/sylv/cc/SchurDecomp.hh
index 69d9d02a3e271a7ed687e9d64c0df15824297ad1..d7a076240e815dcfd861c1448351e020f994450a 100644
--- a/dynare++/sylv/cc/SchurDecomp.hh
+++ b/dynare++/sylv/cc/SchurDecomp.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SCHUR_DECOMP_H
diff --git a/dynare++/sylv/cc/SchurDecompEig.cc b/dynare++/sylv/cc/SchurDecompEig.cc
index babab598d95dbf729acfcaca7f4436324f12d10d..97bcd57defa428081f4651991b5ceb73482be170 100644
--- a/dynare++/sylv/cc/SchurDecompEig.cc
+++ b/dynare++/sylv/cc/SchurDecompEig.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SchurDecompEig.hh"
diff --git a/dynare++/sylv/cc/SchurDecompEig.hh b/dynare++/sylv/cc/SchurDecompEig.hh
index 62ba7ccd17d4d4f2f32af110eccd0654ec518a70..57e8f1ba3a9ca4fa5af79989a89b16cfc1d3bfe2 100644
--- a/dynare++/sylv/cc/SchurDecompEig.hh
+++ b/dynare++/sylv/cc/SchurDecompEig.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // contains algorithms for eigenvalue reordering
diff --git a/dynare++/sylv/cc/SimilarityDecomp.cc b/dynare++/sylv/cc/SimilarityDecomp.cc
index 773c5623bbeb6de2557a6b119b694d4c541de2bd..62bec28f12609fbb4915cf6d2cce4d768a6c310a 100644
--- a/dynare++/sylv/cc/SimilarityDecomp.cc
+++ b/dynare++/sylv/cc/SimilarityDecomp.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SimilarityDecomp.hh"
diff --git a/dynare++/sylv/cc/SimilarityDecomp.hh b/dynare++/sylv/cc/SimilarityDecomp.hh
index 960ddd51be7ce93915fd0b783c1b5c39f4b7fc2a..8cf21ee32e557609839c3b32938079b1ec63e6fc 100644
--- a/dynare++/sylv/cc/SimilarityDecomp.hh
+++ b/dynare++/sylv/cc/SimilarityDecomp.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SIMILARITY_DECOMP_H
diff --git a/dynare++/sylv/cc/SylvException.cc b/dynare++/sylv/cc/SylvException.cc
index c168d3be00ca417f48fa0a04a9f502d5c74a7f08..70ecbc24b104451bf496f7fd0d8d06a644bf4748 100644
--- a/dynare++/sylv/cc/SylvException.cc
+++ b/dynare++/sylv/cc/SylvException.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SylvException.hh"
diff --git a/dynare++/sylv/cc/SylvException.hh b/dynare++/sylv/cc/SylvException.hh
index eba7fdc532c1524326efc7b5c80446f81396f121..3fc1a16a4eaf9902494e9c6c2b4d74165cf84c1e 100644
--- a/dynare++/sylv/cc/SylvException.hh
+++ b/dynare++/sylv/cc/SylvException.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SYLV_EXCEPTION_H
diff --git a/dynare++/sylv/cc/SylvMatrix.cc b/dynare++/sylv/cc/SylvMatrix.cc
index dff00ecdced831d6894d96ed3567c6aecde2850d..cb4d8ba499bcaf993da6a4294aff25adfee04f01 100644
--- a/dynare++/sylv/cc/SylvMatrix.cc
+++ b/dynare++/sylv/cc/SylvMatrix.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SylvException.hh"
diff --git a/dynare++/sylv/cc/SylvMatrix.hh b/dynare++/sylv/cc/SylvMatrix.hh
index bfd8a0fda6cd61073adbce8f40ecbe742e9f0d56..d1b0b947d4cac2ad44ab270d29233c8b81567520 100644
--- a/dynare++/sylv/cc/SylvMatrix.hh
+++ b/dynare++/sylv/cc/SylvMatrix.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SYLV_MATRIX_H
diff --git a/dynare++/sylv/cc/SylvParams.cc b/dynare++/sylv/cc/SylvParams.cc
index cae41ad404e2646f6a13e9531f382298170556c2..96d9dfb399a056b810fc4e6c135783483b94ce9e 100644
--- a/dynare++/sylv/cc/SylvParams.cc
+++ b/dynare++/sylv/cc/SylvParams.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SylvParams.hh"
diff --git a/dynare++/sylv/cc/SylvParams.hh b/dynare++/sylv/cc/SylvParams.hh
index a068ecacd7ce3c9b1e95c69e26e260d21e1decca..099ab453cf82989900d952df0ca20a9130f4b835 100644
--- a/dynare++/sylv/cc/SylvParams.hh
+++ b/dynare++/sylv/cc/SylvParams.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SYLV_PARAMS_H
diff --git a/dynare++/sylv/cc/SylvesterSolver.hh b/dynare++/sylv/cc/SylvesterSolver.hh
index 3178a107b393ab6da8a8674437ea6bf59f2f9991..a77f45cd4aa2daa15199d38e79906e186cb7b108 100644
--- a/dynare++/sylv/cc/SylvesterSolver.hh
+++ b/dynare++/sylv/cc/SylvesterSolver.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SYLVESTER_SOLVER_H
diff --git a/dynare++/sylv/cc/SymSchurDecomp.cc b/dynare++/sylv/cc/SymSchurDecomp.cc
index d6aa8351aa90df80f98ed730d2b8a14ffa929495..70e28e1e874dc76b7e79a98557994be5f8ebef7b 100644
--- a/dynare++/sylv/cc/SymSchurDecomp.cc
+++ b/dynare++/sylv/cc/SymSchurDecomp.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SymSchurDecomp.hh"
diff --git a/dynare++/sylv/cc/SymSchurDecomp.hh b/dynare++/sylv/cc/SymSchurDecomp.hh
index 1d0e268e6fd67074d578212f4ea065c252834cc3..c16fd1e93141fdb2f10af66eb07f051b658bd648 100644
--- a/dynare++/sylv/cc/SymSchurDecomp.hh
+++ b/dynare++/sylv/cc/SymSchurDecomp.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SYM_SCHUR_DECOMP_H
diff --git a/dynare++/sylv/cc/TriangularSylvester.cc b/dynare++/sylv/cc/TriangularSylvester.cc
index fb8e2640400269e68307a30094689be87834f2d3..b690712efaa84cd66091af2127c39cc6317dd121 100644
--- a/dynare++/sylv/cc/TriangularSylvester.cc
+++ b/dynare++/sylv/cc/TriangularSylvester.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "TriangularSylvester.hh"
diff --git a/dynare++/sylv/cc/TriangularSylvester.hh b/dynare++/sylv/cc/TriangularSylvester.hh
index ecfa87d076fe9fd63ed2ff0b604346ee91563926..2b9121229fcc3f72506f5c988581f3357ec8c94f 100644
--- a/dynare++/sylv/cc/TriangularSylvester.hh
+++ b/dynare++/sylv/cc/TriangularSylvester.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef TRIANGULAR_SYLVESTER_H
diff --git a/dynare++/sylv/cc/Vector.cc b/dynare++/sylv/cc/Vector.cc
index a61046d80b2ac122caedabc0152a05793a680d1f..03d381318ce7ef1d49f58ddc5dfb4e287b2c4a8f 100644
--- a/dynare++/sylv/cc/Vector.cc
+++ b/dynare++/sylv/cc/Vector.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "Vector.hh"
diff --git a/dynare++/sylv/cc/Vector.hh b/dynare++/sylv/cc/Vector.hh
index 3d4be9c055bedc149634d7d74b150c77171fa1a8..be00f59c8864093e3ad9d76ff41a6c3bd4ace707 100644
--- a/dynare++/sylv/cc/Vector.hh
+++ b/dynare++/sylv/cc/Vector.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef VECTOR_H
diff --git a/dynare++/sylv/testing/MMMatrix.cc b/dynare++/sylv/testing/MMMatrix.cc
index e9ee8e5c001daec458be8379bce6b384e4631006..e3c8f8a7fc908c035ab1931d856389a1509d0f30 100644
--- a/dynare++/sylv/testing/MMMatrix.cc
+++ b/dynare++/sylv/testing/MMMatrix.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "MMMatrix.hh"
diff --git a/dynare++/sylv/testing/MMMatrix.hh b/dynare++/sylv/testing/MMMatrix.hh
index cba6bce54de003ffac4d5a37c18368576d37e41a..e3d34f615e84a1bddffedb899a3e7ee2c80e5e22 100644
--- a/dynare++/sylv/testing/MMMatrix.hh
+++ b/dynare++/sylv/testing/MMMatrix.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef MM_MATRIX_H
diff --git a/dynare++/sylv/testing/tests.cc b/dynare++/sylv/testing/tests.cc
index 1bcfa70dcfa3e4bb02f482569ac9024e1536c346..f91835fcbbeadad5a902218b075dbce6665484a7 100644
--- a/dynare++/sylv/testing/tests.cc
+++ b/dynare++/sylv/testing/tests.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SylvException.hh"
diff --git a/dynare++/tl/cc/equivalence.cc b/dynare++/tl/cc/equivalence.cc
index dfc041445c882dceec28c8d999d23585a095bd60..ced34597518ac899e4f0e3c7c18727a3d0703481 100644
--- a/dynare++/tl/cc/equivalence.cc
+++ b/dynare++/tl/cc/equivalence.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "equivalence.hh"
diff --git a/dynare++/tl/cc/equivalence.hh b/dynare++/tl/cc/equivalence.hh
index d5edf96ba43b8d7ad4f3ed5a6203be4c7ef7365a..b77c5400965ee859ff04ed5a68a2d85679b4ee3e 100644
--- a/dynare++/tl/cc/equivalence.hh
+++ b/dynare++/tl/cc/equivalence.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Equivalences.
diff --git a/dynare++/tl/cc/fine_container.cc b/dynare++/tl/cc/fine_container.cc
index b1114493f453e3734a2733fdbdb21ab9be3cf2b8..c0e394dfd30869204c8d8fc23de81a00b59d6e51 100644
--- a/dynare++/tl/cc/fine_container.cc
+++ b/dynare++/tl/cc/fine_container.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "fine_container.hh"
diff --git a/dynare++/tl/cc/fine_container.hh b/dynare++/tl/cc/fine_container.hh
index 38bec75d759cb0fd3f5544551ace5d3206539332..6996160f8ef0bfb09283adb91164156534ab7d08 100644
--- a/dynare++/tl/cc/fine_container.hh
+++ b/dynare++/tl/cc/fine_container.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Refined stack of containers.
diff --git a/dynare++/tl/cc/fs_tensor.cc b/dynare++/tl/cc/fs_tensor.cc
index 9330044a0d74b705d72f08c00b2941e4a405223b..6b78f81d1fe3fbbf355abb90286ab295cb8d66b3 100644
--- a/dynare++/tl/cc/fs_tensor.cc
+++ b/dynare++/tl/cc/fs_tensor.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "fs_tensor.hh"
diff --git a/dynare++/tl/cc/fs_tensor.hh b/dynare++/tl/cc/fs_tensor.hh
index 9e84a2e5c222dd1ee342522915a29a5c62640c87..25c70793c04d80715dda2fe5de2bf1853d21da93 100644
--- a/dynare++/tl/cc/fs_tensor.hh
+++ b/dynare++/tl/cc/fs_tensor.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Full symmetry tensor.
diff --git a/dynare++/tl/cc/gs_tensor.cc b/dynare++/tl/cc/gs_tensor.cc
index 188bca1381fd5dbafb7132baa098808502282e0a..b5e9adfc1cde09af0ed0f09cf10565355946a1df 100644
--- a/dynare++/tl/cc/gs_tensor.cc
+++ b/dynare++/tl/cc/gs_tensor.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "gs_tensor.hh"
diff --git a/dynare++/tl/cc/gs_tensor.hh b/dynare++/tl/cc/gs_tensor.hh
index a16fe1f1b8a6ac940cc43ba9b41cff8bf06173f6..d198d45489e34313b695e561f23354685a33cfbd 100644
--- a/dynare++/tl/cc/gs_tensor.hh
+++ b/dynare++/tl/cc/gs_tensor.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // General symmetry tensor.
diff --git a/dynare++/tl/cc/int_sequence.cc b/dynare++/tl/cc/int_sequence.cc
index f5a50a77587165fa6b269f81f34cd67981bffc2b..cc1abae578abfb916ed99e092b86cd69331d1d06 100644
--- a/dynare++/tl/cc/int_sequence.cc
+++ b/dynare++/tl/cc/int_sequence.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "int_sequence.hh"
diff --git a/dynare++/tl/cc/int_sequence.hh b/dynare++/tl/cc/int_sequence.hh
index 135a0b64f137aef77406b9f0ea94cd9d6a30ac98..e87e5300164e94e4965c5a4e79d6a4c4d90c67c4 100644
--- a/dynare++/tl/cc/int_sequence.hh
+++ b/dynare++/tl/cc/int_sequence.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Integer sequence.
diff --git a/dynare++/tl/cc/kron_prod.cc b/dynare++/tl/cc/kron_prod.cc
index b37e490f8febf904981b790dddeecdd581aca27d..b13cb2f2cfa969cfafff83e1774d044e31f90e74 100644
--- a/dynare++/tl/cc/kron_prod.cc
+++ b/dynare++/tl/cc/kron_prod.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "kron_prod.hh"
diff --git a/dynare++/tl/cc/kron_prod.hh b/dynare++/tl/cc/kron_prod.hh
index 5a59ca8f00df55d635a5fb960340a9305dd8860b..eee195770d4830bfb55f78bfdd8b8d99da56ff77 100644
--- a/dynare++/tl/cc/kron_prod.hh
+++ b/dynare++/tl/cc/kron_prod.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Kronecker product.
diff --git a/dynare++/tl/cc/normal_moments.cc b/dynare++/tl/cc/normal_moments.cc
index ff8468b731538691a4fa89fdd486ce52dac28129..43014bbc33821842fb5268139848e459151226e5 100644
--- a/dynare++/tl/cc/normal_moments.cc
+++ b/dynare++/tl/cc/normal_moments.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <memory>
diff --git a/dynare++/tl/cc/normal_moments.hh b/dynare++/tl/cc/normal_moments.hh
index da77067bddd167353750c11668f9d12473018e68..c12a3ba53102e88039caf73a88fa87c72b1afc11 100644
--- a/dynare++/tl/cc/normal_moments.hh
+++ b/dynare++/tl/cc/normal_moments.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Moments of normal distribution.
diff --git a/dynare++/tl/cc/permutation.cc b/dynare++/tl/cc/permutation.cc
index 5c9d48ca3a85c5caee2ba1ca7b62d9b468393e11..3cbd75df37121a1f8c24e662a233a71fb4a7dd4b 100644
--- a/dynare++/tl/cc/permutation.cc
+++ b/dynare++/tl/cc/permutation.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "permutation.hh"
diff --git a/dynare++/tl/cc/permutation.hh b/dynare++/tl/cc/permutation.hh
index 1986c0c33bdecaa8faeb3a4c85e79bf5accc34b8..fb5c2d5a73ac7feedb2972bdfeeb11318658f4d5 100644
--- a/dynare++/tl/cc/permutation.hh
+++ b/dynare++/tl/cc/permutation.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Permutations.
diff --git a/dynare++/tl/cc/ps_tensor.cc b/dynare++/tl/cc/ps_tensor.cc
index a5c51c81bb1279121227ee3e5c80b4fa7488e841..061b7e9c27924c2b6e3b7439c6197ede0e4d9f0b 100644
--- a/dynare++/tl/cc/ps_tensor.cc
+++ b/dynare++/tl/cc/ps_tensor.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "ps_tensor.hh"
diff --git a/dynare++/tl/cc/ps_tensor.hh b/dynare++/tl/cc/ps_tensor.hh
index a5b3f0654ab6fd55cef70e7f6121fa18221e3b16..5018549c786eef13b808963ab8117c28dcdb09db 100644
--- a/dynare++/tl/cc/ps_tensor.hh
+++ b/dynare++/tl/cc/ps_tensor.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Even more general symmetry tensor.
diff --git a/dynare++/tl/cc/pyramid_prod.cc b/dynare++/tl/cc/pyramid_prod.cc
index 8e2a4cfefed20f37029921b81a240ff845a3dde4..d15403e8167849db806daeb3bac1adaec5d954e2 100644
--- a/dynare++/tl/cc/pyramid_prod.cc
+++ b/dynare++/tl/cc/pyramid_prod.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "pyramid_prod.hh"
diff --git a/dynare++/tl/cc/pyramid_prod.hh b/dynare++/tl/cc/pyramid_prod.hh
index 01312cd02766f28f7077876b1d167e51c80da441..d6d29fae1c53d5dfea418704b9b54d11dd4ed138 100644
--- a/dynare++/tl/cc/pyramid_prod.hh
+++ b/dynare++/tl/cc/pyramid_prod.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Multiplying tensor columns.
diff --git a/dynare++/tl/cc/pyramid_prod2.cc b/dynare++/tl/cc/pyramid_prod2.cc
index a129257e40d09ac82032348950566f5decbb7ca8..9ffdab74dfe9902f42ba51bae710b1cda03e4594 100644
--- a/dynare++/tl/cc/pyramid_prod2.cc
+++ b/dynare++/tl/cc/pyramid_prod2.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "pyramid_prod2.hh"
diff --git a/dynare++/tl/cc/pyramid_prod2.hh b/dynare++/tl/cc/pyramid_prod2.hh
index 0e80a67f89ea2dfa01e148a3c9ab2f1585a7c05d..f316e304b75030ca68df963b19ee046057d9fcb1 100644
--- a/dynare++/tl/cc/pyramid_prod2.hh
+++ b/dynare++/tl/cc/pyramid_prod2.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Multiplying stacked tensor columns.
diff --git a/dynare++/tl/cc/rfs_tensor.cc b/dynare++/tl/cc/rfs_tensor.cc
index aaf0e4f7a6fecab5117af8e8a6e079899355e525..a22efe85ff871cd82232265c7bf82e086710e497 100644
--- a/dynare++/tl/cc/rfs_tensor.cc
+++ b/dynare++/tl/cc/rfs_tensor.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "rfs_tensor.hh"
diff --git a/dynare++/tl/cc/rfs_tensor.hh b/dynare++/tl/cc/rfs_tensor.hh
index bbf6997f92f57fe2eb7c165e084aaf5132a715a2..5c7bbc2c2d1704cbc7771ee93e83e86f0f76eaaa 100644
--- a/dynare++/tl/cc/rfs_tensor.hh
+++ b/dynare++/tl/cc/rfs_tensor.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Row-wise full symmetry tensor.
diff --git a/dynare++/tl/cc/sparse_tensor.cc b/dynare++/tl/cc/sparse_tensor.cc
index 81cfeea69af3e9af8f936a1c8077cd627a00eb8c..10d5d469d99b48c59a712582fb85464b38bbe45b 100644
--- a/dynare++/tl/cc/sparse_tensor.cc
+++ b/dynare++/tl/cc/sparse_tensor.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "sparse_tensor.hh"
diff --git a/dynare++/tl/cc/sparse_tensor.hh b/dynare++/tl/cc/sparse_tensor.hh
index 89d3414a1d2f8daaee417ad402236d13302424eb..68547eb565a8f5594e6de6dccf9c6342466a0301 100644
--- a/dynare++/tl/cc/sparse_tensor.hh
+++ b/dynare++/tl/cc/sparse_tensor.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Sparse tensor.
diff --git a/dynare++/tl/cc/stack_container.cc b/dynare++/tl/cc/stack_container.cc
index 71144fe88ff6a9a14ac21c41dd4c6b7a5ef115c4..f49c71e26a9dc230250f4f39caafd5ca2d5bb6f8 100644
--- a/dynare++/tl/cc/stack_container.cc
+++ b/dynare++/tl/cc/stack_container.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "stack_container.hh"
diff --git a/dynare++/tl/cc/stack_container.hh b/dynare++/tl/cc/stack_container.hh
index e1a3e79be5f3b1b6ebf2233732c371a3f22970c1..68a61dbdb79857206f00314d20994177bd28202d 100644
--- a/dynare++/tl/cc/stack_container.hh
+++ b/dynare++/tl/cc/stack_container.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Stack of containers.
diff --git a/dynare++/tl/cc/symmetry.cc b/dynare++/tl/cc/symmetry.cc
index 72f896bed3e25ded954b11a2d0331fb163a0e024..46bc527bd696a6d15d632ef65f7022f48f34348a 100644
--- a/dynare++/tl/cc/symmetry.cc
+++ b/dynare++/tl/cc/symmetry.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "symmetry.hh"
diff --git a/dynare++/tl/cc/symmetry.hh b/dynare++/tl/cc/symmetry.hh
index 9431c23da6113037cdf47de83ed7fcf0896548bb..671c5410076195f4b4b410c68872708469c45f99 100644
--- a/dynare++/tl/cc/symmetry.hh
+++ b/dynare++/tl/cc/symmetry.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Symmetry.
diff --git a/dynare++/tl/cc/t_container.cc b/dynare++/tl/cc/t_container.cc
index c40920153d95639b57a7026444d88fab0bebf72b..d5090bd79ebdf796c59c734fcb8d71f2a352629e 100644
--- a/dynare++/tl/cc/t_container.cc
+++ b/dynare++/tl/cc/t_container.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "t_container.hh"
diff --git a/dynare++/tl/cc/t_container.hh b/dynare++/tl/cc/t_container.hh
index 4f097e5d62e928db8b8b0ee71fbd99cad6c5692c..884131eb8f86c539899cf81e3e975b93efded395 100644
--- a/dynare++/tl/cc/t_container.hh
+++ b/dynare++/tl/cc/t_container.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Tensor containers.
diff --git a/dynare++/tl/cc/t_polynomial.cc b/dynare++/tl/cc/t_polynomial.cc
index 8de62a00831b65371aa4ebe05f0aa42f96309eff..85ba58e9395a6ce3f38b684a24d57eff8d94d21b 100644
--- a/dynare++/tl/cc/t_polynomial.cc
+++ b/dynare++/tl/cc/t_polynomial.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "t_polynomial.hh"
diff --git a/dynare++/tl/cc/t_polynomial.hh b/dynare++/tl/cc/t_polynomial.hh
index 1b2905310903e0a451ef529604c25fa6c7dbd9f8..e8f0f3ed0792760cd21252165a4b09ce2d1cb691 100644
--- a/dynare++/tl/cc/t_polynomial.hh
+++ b/dynare++/tl/cc/t_polynomial.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Tensor polynomial evaluation.
diff --git a/dynare++/tl/cc/tensor.cc b/dynare++/tl/cc/tensor.cc
index 875876d7d835f4ed1d962c43fe2a4424da41bfcf..425d3932dff83b4707fc354562ecf0daf1c6d705 100644
--- a/dynare++/tl/cc/tensor.cc
+++ b/dynare++/tl/cc/tensor.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "tensor.hh"
diff --git a/dynare++/tl/cc/tensor.hh b/dynare++/tl/cc/tensor.hh
index cbeced9bb4c6fd65f7556441088974a0ec3a557b..76396e83a336c7acd191edaad09ddaf118a6659c 100644
--- a/dynare++/tl/cc/tensor.hh
+++ b/dynare++/tl/cc/tensor.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Tensor concept.
diff --git a/dynare++/tl/cc/tl_exception.hh b/dynare++/tl/cc/tl_exception.hh
index 201f4320c3c60e08c151e15036b06798ad47cc33..e4c2d03c5345abdf6dc56c5c85c8e9cd91209f29 100644
--- a/dynare++/tl/cc/tl_exception.hh
+++ b/dynare++/tl/cc/tl_exception.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Exception.
diff --git a/dynare++/tl/cc/tl_static.cc b/dynare++/tl/cc/tl_static.cc
index 9804086e89cfd36e621d4109142de2693fac9e44..b1603a722f2edfcccdc4d5bb96a2e351a29fae64 100644
--- a/dynare++/tl/cc/tl_static.cc
+++ b/dynare++/tl/cc/tl_static.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "tl_static.hh"
diff --git a/dynare++/tl/cc/tl_static.hh b/dynare++/tl/cc/tl_static.hh
index 2318f629517b3d404e37ddb8914dd42a5ca132a8..19511c34b069bc1398643488882ccff081a44ad7 100644
--- a/dynare++/tl/cc/tl_static.hh
+++ b/dynare++/tl/cc/tl_static.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Tensor library static data.
diff --git a/dynare++/tl/cc/twod_matrix.cc b/dynare++/tl/cc/twod_matrix.cc
index 31445b3e92164af09875461d6bab19cb5512728b..327445eafd745d5ff8c03072b9ff7ea0e05bbb43 100644
--- a/dynare++/tl/cc/twod_matrix.cc
+++ b/dynare++/tl/cc/twod_matrix.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "twod_matrix.hh"
diff --git a/dynare++/tl/cc/twod_matrix.hh b/dynare++/tl/cc/twod_matrix.hh
index bd45083d3fa56a31e0f855c3f55b95815aa65132..1099c031fb772f96a9f922194a563bb25e89a8e0 100644
--- a/dynare++/tl/cc/twod_matrix.hh
+++ b/dynare++/tl/cc/twod_matrix.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Matrix interface.
diff --git a/dynare++/tl/testing/factory.cc b/dynare++/tl/testing/factory.cc
index 724eecd1c603dcad8f32c971ac0de15439d8b040..589c3824a4617a80c4fcf9d1dad013bca96c54a9 100644
--- a/dynare++/tl/testing/factory.cc
+++ b/dynare++/tl/testing/factory.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "factory.hh"
diff --git a/dynare++/tl/testing/factory.hh b/dynare++/tl/testing/factory.hh
index 0dbd3ef26a9680e7ebac329aa7d87de64b9a50e7..bedefb71b59ff1ff52c033180d07aea1509fdba6 100644
--- a/dynare++/tl/testing/factory.hh
+++ b/dynare++/tl/testing/factory.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef FACTORY_H
diff --git a/dynare++/tl/testing/monoms.cc b/dynare++/tl/testing/monoms.cc
index e0690018c4c081f7d394d4de40a84733a6140d43..4623c319e91f4c2096d7c705d50f9316bd07bfa5 100644
--- a/dynare++/tl/testing/monoms.cc
+++ b/dynare++/tl/testing/monoms.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "monoms.hh"
diff --git a/dynare++/tl/testing/monoms.hh b/dynare++/tl/testing/monoms.hh
index 96db16501fe66a72053bbe75a57ddc1564192aa2..23bd2ef85b06318dcb562d3d93a6ce8e92ec7194 100644
--- a/dynare++/tl/testing/monoms.hh
+++ b/dynare++/tl/testing/monoms.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef MONOMS_H
diff --git a/dynare++/tl/testing/tests.cc b/dynare++/tl/testing/tests.cc
index 559bafd6f5d7ebd503227fc639c1d6545930cff4..384c02d0d76be66556a0d271b2a47ef196ba0a65 100644
--- a/dynare++/tl/testing/tests.cc
+++ b/dynare++/tl/testing/tests.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "SylvException.hh"
diff --git a/dynare++/utils/cc/exception.hh b/dynare++/utils/cc/exception.hh
index a7c74c26520a55b8ad4b6e16163ce9b04a8244fd..c0b33338e9eb5618e3aeda30dab700fa680a15ac 100644
--- a/dynare++/utils/cc/exception.hh
+++ b/dynare++/utils/cc/exception.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef OGU_EXCEPTION_H
diff --git a/dynare++/utils/cc/int_power.cc b/dynare++/utils/cc/int_power.cc
index f2169880c92074370794706a86ac27a435d2fe10..d0189bc770800a6119d66a77daa1f77576ac4489 100644
--- a/dynare++/utils/cc/int_power.cc
+++ b/dynare++/utils/cc/int_power.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 int
diff --git a/dynare++/utils/cc/int_power.hh b/dynare++/utils/cc/int_power.hh
index 8d6ee86fa307e2bf3d96d1055896e89985bdfc8d..4c647c832c27b6f4f3693b9a3ab74caa7b6eaa8b 100644
--- a/dynare++/utils/cc/int_power.hh
+++ b/dynare++/utils/cc/int_power.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Integer exponentiation (by squaring)
diff --git a/dynare++/utils/cc/pascal_triangle.cc b/dynare++/utils/cc/pascal_triangle.cc
index 8b8a63d26c78aa56631902056010e944b179e0d0..e8e0cc6df601b7d711ded0f2c47fe6ab87d66d7e 100644
--- a/dynare++/utils/cc/pascal_triangle.cc
+++ b/dynare++/utils/cc/pascal_triangle.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "pascal_triangle.hh"
diff --git a/dynare++/utils/cc/pascal_triangle.hh b/dynare++/utils/cc/pascal_triangle.hh
index e69dd815dee61923249a5009a0155c2c699e99dd..cfd81d314dd41b9b4f73220a504b113b9a5bfbf7 100644
--- a/dynare++/utils/cc/pascal_triangle.hh
+++ b/dynare++/utils/cc/pascal_triangle.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef PASCAL_TRIANGLE_H
diff --git a/dynare++/utils/cc/sthread.cc b/dynare++/utils/cc/sthread.cc
index 212f33572ac3b4782b60b9df803769e17a05c742..65294d679f170dd855b18e405ab18372a522e69e 100644
--- a/dynare++/utils/cc/sthread.cc
+++ b/dynare++/utils/cc/sthread.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <algorithm>
diff --git a/dynare++/utils/cc/sthread.hh b/dynare++/utils/cc/sthread.hh
index fe52e3d9c6b1be3f891cf1b39fd7efa1512c54eb..41315e88d1efb263579dbf92c125199016e415ca 100644
--- a/dynare++/utils/cc/sthread.hh
+++ b/dynare++/utils/cc/sthread.hh
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // Simple threads.
diff --git a/examples/NK_baseline.mod b/examples/NK_baseline.mod
index ad035e1b370a461bfb77a0b2ba56f475c81ae334..f2ba5442376d08a0929c9d4305ffed866ec8a820 100644
--- a/examples/NK_baseline.mod
+++ b/examples/NK_baseline.mod
@@ -47,7 +47,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var d       (long_name='preference shock')
diff --git a/examples/NK_baseline_steadystate.m b/examples/NK_baseline_steadystate.m
index bcf0b8a67e968e38be26cb022f6c383450ddd335..53b07fe0700342e30bef4053939d1e3d1618c604 100644
--- a/examples/NK_baseline_steadystate.m
+++ b/examples/NK_baseline_steadystate.m
@@ -30,7 +30,7 @@ function [ys,params,check] = NK_baseline_steadystate(ys,exo,M_,options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % read out parameters to access them with their name
 NumberOfParameters = M_.param_nbr;
diff --git a/examples/Ramsey_Example.mod b/examples/Ramsey_Example.mod
index 61e0df3cb5c1350be43531824f73d0ad5716e363..48c47ad60e87794aa7feae093f9fae99bfc6f292 100644
--- a/examples/Ramsey_Example.mod
+++ b/examples/Ramsey_Example.mod
@@ -61,7 +61,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 //**********Define which monetary policy setup to use *********** 
diff --git a/examples/Ramsey_steady_file.mod b/examples/Ramsey_steady_file.mod
index 1d8db31a84c172ed9b0449a16b4028cd330e6192..cc9583d41cc016f981fab881042f51214fbd6223 100644
--- a/examples/Ramsey_steady_file.mod
+++ b/examples/Ramsey_steady_file.mod
@@ -35,7 +35,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/examples/Ramsey_steady_file_steadystate.m b/examples/Ramsey_steady_file_steadystate.m
index c5b48448797ba5dec71e80fb6dbc0921239683e7..b3705324e10c82e332eeece94a9586d8f4239d01 100644
--- a/examples/Ramsey_steady_file_steadystate.m
+++ b/examples/Ramsey_steady_file_steadystate.m
@@ -31,7 +31,7 @@ function [ys,params,check] = Ramsey_steady_file_steadystate(ys,exo,M_,options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % read out parameters to access them with their name
 beta=NaN; %make parameter known to Matlab function, prevents crashes due to Matlab function with same name;
diff --git a/examples/agtrend.mod b/examples/agtrend.mod
index dd5ef1e8618bac13a39a09b3373ab05efa514c3d..b918183b6d868a2032189a028e0e7b2c46ae9006 100644
--- a/examples/agtrend.mod
+++ b/examples/agtrend.mod
@@ -36,7 +36,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/examples/bkk.mod b/examples/bkk.mod
index aca08ebfde7a5d8830a57c97b78763aa922698e2..d7e63b5142646f6aa545ada807e5f955775d90c0 100644
--- a/examples/bkk.mod
+++ b/examples/bkk.mod
@@ -42,7 +42,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#define countries = [ "H", "F" ]
diff --git a/examples/example1.mod b/examples/example1.mod
index 8fb9df1e8ec60eafd35a0c51094892a360a1f8d5..1c1f96b11c0841cbfe6386674a9328947cf1919a 100644
--- a/examples/example1.mod
+++ b/examples/example1.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/examples/example1_reporting.mod b/examples/example1_reporting.mod
index a39c98da9d0d06c51cefd0ff71f8523f5d57210c..6340d5e56b6d9bc5fb43053820bf6cbb0fd59ceb 100644
--- a/examples/example1_reporting.mod
+++ b/examples/example1_reporting.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/examples/example2.mod b/examples/example2.mod
index 09d505828ed393b57d918e0c5668b86624bb23e2..c83aefa869fbd1890bd0ab65d1e7ea64ef271e0c 100644
--- a/examples/example2.mod
+++ b/examples/example2.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/examples/example3.mod b/examples/example3.mod
index f10f73219f09c29b40b95db741a2ccb3892759e3..e391b18e2db3b0c0238eb75a7f4f6b2a9b22c0ed 100644
--- a/examples/example3.mod
+++ b/examples/example3.mod
@@ -31,7 +31,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/examples/fs2000.mod b/examples/fs2000.mod
index 3359370230c7a3f18cb3855393b0bc372520eb6d..b9c3edf5e32a46df417fe9cd930f6d862b8febda 100644
--- a/examples/fs2000.mod
+++ b/examples/fs2000.mod
@@ -40,7 +40,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/examples/fs2000_nonstationary.mod b/examples/fs2000_nonstationary.mod
index 53c1cf7f0d7b61086e3be1a0a09311306b25095c..727d17cd97bf8ce1dd288109ae6a43a3229995fd 100644
--- a/examples/fs2000_nonstationary.mod
+++ b/examples/fs2000_nonstationary.mod
@@ -23,7 +23,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var gM gA;
diff --git a/examples/ramst.mod b/examples/ramst.mod
index 90654a4ef7fb512490534d743a38d1225d0c1c4c..b5378f60bc29b28aaed29c1f6f2fe8d05e074558 100644
--- a/examples/ramst.mod
+++ b/examples/ramst.mod
@@ -30,7 +30,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/license.txt b/license.txt
index c45679977adeedf6d9db90138f1fbf3bb1c99750..73b1f5e2aa05554fd6a6a2047f65e2773dbe0623 100644
--- a/license.txt
+++ b/license.txt
@@ -473,7 +473,7 @@ License: GFDL-NIV-1.3+
  any later version published by the Free Software Foundation; with no
  Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  .
- A copy of the license can be found at <http://www.gnu.org/licenses/fdl.txt>
+ A copy of the license can be found at <https://www.gnu.org/licenses/fdl.txt>
 
 License: GPL-2+ with Autoconf exception
  This program is free software; you can redistribute it and/or
@@ -487,7 +487,7 @@ License: GPL-2+ with Autoconf exception
  GNU General Public License for more details.
  .
  You should have received a copy of the GNU General Public License along
- with this program. If not, see <http://www.gnu.org/licenses/>.
+ with this program. If not, see <https://www.gnu.org/licenses/>.
  .
  As a special exception to the GNU General Public License, if
  you distribute this file as part of a program that contains a
@@ -507,7 +507,7 @@ License: GPL-3+
  GNU General Public License for more details.
  .
  You should have received a copy of the GNU General Public License
- along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 License: GPL-3+ with Autoconf exception
  This program is free software: you can redistribute it and/or modify it
@@ -521,7 +521,7 @@ License: GPL-3+ with Autoconf exception
  Public License for more details.
  .
  You should have received a copy of the GNU General Public License along
- with this program. If not, see <http://www.gnu.org/licenses/>.
+ with this program. If not, see <https://www.gnu.org/licenses/>.
  .
  As a special exception, the respective Autoconf Macro's copyright owner
  gives unlimited permission to copy, distribute and modify the configure
@@ -548,7 +548,7 @@ License: LGPL-2.1+
  General Public License for more details.
  .
  You should have received a copy of the GNU Lesser General Public License
- along with this library. If not, see <http://www.gnu.org/licenses/>.
+ along with this library. If not, see <https://www.gnu.org/licenses/>.
 
 License: LGPL-3+
  This program is free software: you can redistribute it and/or modify
@@ -562,7 +562,7 @@ License: LGPL-3+
  GNU Lesser General Public License for more details.
  .
  You should have received a copy of the GNU Lesser General Public License
- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 License: CC-BY-SA-4.0
  Attribution-ShareAlike 4.0 International
diff --git a/m4/ax_cxx11_thread.m4 b/m4/ax_cxx11_thread.m4
index 65d557b63e8bfb30dabee344c63786304e99eb59..6907521541bd1389c2eb2b28506ce77f78f3a4dd 100644
--- a/m4/ax_cxx11_thread.m4
+++ b/m4/ax_cxx11_thread.m4
@@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_CXX11_THREAD],
 [
diff --git a/m4/ax_gsl.m4 b/m4/ax_gsl.m4
index 38c533dcc5ee04bfb9e9186b39b2a380e897df2b..1bbd2be9d3c1043194dee52bb49abfddc8f423e0 100644
--- a/m4/ax_gsl.m4
+++ b/m4/ax_gsl.m4
@@ -17,7 +17,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_GSL],
 [
diff --git a/m4/ax_latex_class.m4 b/m4/ax_latex_class.m4
index 0f4c881f21f34bef8e68bfefc41c3a3e02df7f8b..6b560614ebc1f77c8db9823ab2952c29ed3f5e34 100644
--- a/m4/ax_latex_class.m4
+++ b/m4/ax_latex_class.m4
@@ -34,7 +34,7 @@
 #   General Public License for more details.
 #
 #   You should have received a copy of the GNU Lesser General Public License
-#   along with this library. If not, see <http://www.gnu.org/licenses/>.
+#   along with this library. If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_LATEX_CLASS],[
 AC_CACHE_CHECK([for usability of class $1],[ac_cv_latex_class_]translit($1,[-],[_]),[
diff --git a/m4/ax_latex_test.m4 b/m4/ax_latex_test.m4
index 5a3d012fc1d38c1b5ae43a6a5f84c91f28751488..7e5b8d5e5449ab8bb54449ac1f4d46c604c03136 100644
--- a/m4/ax_latex_test.m4
+++ b/m4/ax_latex_test.m4
@@ -36,7 +36,7 @@
 #   General Public License for more details.
 #
 #   You should have received a copy of the GNU Lesser General Public License
-#   along with this library. If not, see <http://www.gnu.org/licenses/>.
+#   along with this library. If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_LATEX_TEST],[
 rm -rf conftest.dir/.acltx
diff --git a/m4/ax_matio.m4 b/m4/ax_matio.m4
index 8fc3299947f5abc4e6af4fe42bafc6612fdb7a28..00cef25aa64569a0ea81787b7e18d30f56d81149 100644
--- a/m4/ax_matio.m4
+++ b/m4/ax_matio.m4
@@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_MATIO],
 [
diff --git a/m4/ax_matlab.m4 b/m4/ax_matlab.m4
index 32938c50858dd6dbfd8a50efe752e5b9f5983598..16330420b31aa347569282ff32aa147d030efa22 100644
--- a/m4/ax_matlab.m4
+++ b/m4/ax_matlab.m4
@@ -14,7 +14,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License along
-dnl with this program. If not, see <http://www.gnu.org/licenses/>.
+dnl with this program. If not, see <https://www.gnu.org/licenses/>.
 dnl
 dnl As a special exception to the GNU General Public License, if
 dnl you distribute this file as part of a program that contains a
diff --git a/m4/ax_matlab_arch.m4 b/m4/ax_matlab_arch.m4
index 43f23f7a4351e7af00fe5d31fb464e0c1ab07010..e37bd522880f92389ece091e1fc718137f6c7c82 100644
--- a/m4/ax_matlab_arch.m4
+++ b/m4/ax_matlab_arch.m4
@@ -14,7 +14,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License along
-dnl with this program. If not, see <http://www.gnu.org/licenses/>.
+dnl with this program. If not, see <https://www.gnu.org/licenses/>.
 dnl
 dnl As a special exception to the GNU General Public License, if
 dnl you distribute this file as part of a program that contains a
diff --git a/m4/ax_matlab_batch_options.m4 b/m4/ax_matlab_batch_options.m4
index 32f02d5cb3df1b76c29479340553c6643eb49bc4..96f186ebabdcd004a0e53cc0f4f8bff725150b53 100644
--- a/m4/ax_matlab_batch_options.m4
+++ b/m4/ax_matlab_batch_options.m4
@@ -13,7 +13,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_MATLAB_BATCH_OPTIONS],
 [dnl
diff --git a/m4/ax_matlab_version.m4 b/m4/ax_matlab_version.m4
index 113aa728869578eef1cd8fddaecfe33ea33952c4..834589f0f5617e11a0e361b14f15b5dd02306cb8 100644
--- a/m4/ax_matlab_version.m4
+++ b/m4/ax_matlab_version.m4
@@ -13,7 +13,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_MATLAB_VERSION],
 [dnl
diff --git a/m4/ax_mexext.m4 b/m4/ax_mexext.m4
index 0eb9d27c3e9aac3a1e6d0bf36995c922d2172dda..bb4e175d65f9f81fa1d50ce02c7b9100bcee1112 100644
--- a/m4/ax_mexext.m4
+++ b/m4/ax_mexext.m4
@@ -14,7 +14,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License along
-dnl with this program. If not, see <http://www.gnu.org/licenses/>.
+dnl with this program. If not, see <https://www.gnu.org/licenses/>.
 dnl
 dnl As a special exception to the GNU General Public License, if
 dnl you distribute this file as part of a program that contains a
diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4
index 3ecd9268f28a0d13c26d028ce7d943cfba50c5c1..8847d48b2ab7cb8763eea5da726881e88ee6737d 100644
--- a/m4/ax_mexopts.m4
+++ b/m4/ax_mexopts.m4
@@ -13,7 +13,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_MEXOPTS],
 [dnl
diff --git a/m4/ax_octave.m4 b/m4/ax_octave.m4
index b25df2d102f3922a04185686fbbeab69d29d8ab8..3708c999b1c680d142d323675735f00bf8e9442d 100644
--- a/m4/ax_octave.m4
+++ b/m4/ax_octave.m4
@@ -13,7 +13,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License along
-dnl with this program. If not, see <http://www.gnu.org/licenses/>.
+dnl with this program. If not, see <https://www.gnu.org/licenses/>.
 dnl
 dnl As a special exception to the GNU General Public License, if
 dnl you distribute this file as part of a program that contains a
diff --git a/m4/ax_prog_ln_s.m4 b/m4/ax_prog_ln_s.m4
index 5857da9c10a878a35ac9c61bab3dc6c462f4de5e..64916c41fb9a4cf887009603b1908d64b7e7411e 100644
--- a/m4/ax_prog_ln_s.m4
+++ b/m4/ax_prog_ln_s.m4
@@ -13,7 +13,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_PROG_LN_S],
 [
diff --git a/m4/ax_slicot.m4 b/m4/ax_slicot.m4
index c3bc018e883014c45ca0827106ef8a3d19cc92c1..b53e64480ccdace61067c52feaba554707897578 100644
--- a/m4/ax_slicot.m4
+++ b/m4/ax_slicot.m4
@@ -20,7 +20,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_DEFUN([AX_SLICOT],
 [
diff --git a/macOS/Makefile b/macOS/Makefile
index e1275d2ba2f09d71d9b64e357b8ff604da5e72b5..f7c4fb3cf1bab41feee75d413041df5d9c369a49 100644
--- a/macOS/Makefile
+++ b/macOS/Makefile
@@ -13,7 +13,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 .PHONY: all deps clean-deps clean clean-all build
 
diff --git a/macOS/build.sh b/macOS/build.sh
index b188675dcdda146b3654784b8792f5ac54c9d3d9..b9296d47be702fb65588f705f0636d3bbbd3d7ab 100755
--- a/macOS/build.sh
+++ b/macOS/build.sh
@@ -15,7 +15,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 set -ex
 
diff --git a/macOS/deps/Makefile b/macOS/deps/Makefile
index ba6b2c6e2ba521159f8683b065a4e89ee8c6bd18..c51c744954faaf34535e7339d52cf3060304397d 100644
--- a/macOS/deps/Makefile
+++ b/macOS/deps/Makefile
@@ -13,7 +13,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 include versions.mk
 
diff --git a/macOS/scripts/postinstall b/macOS/scripts/postinstall
index 0c6e3e5923c936a08c68c5b772d62cc80be1ba2b..3ac0d0f45643da6470c39c17e963c7a562d466ce 100755
--- a/macOS/scripts/postinstall
+++ b/macOS/scripts/postinstall
@@ -15,7 +15,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 set -ex
 
diff --git a/matlab/+bgp/write.m b/matlab/+bgp/write.m
index 00476624096cbe63376d2f4032819ae259d4976c..5156adb2df42ba3600b7adce005eee9219e5f611 100644
--- a/matlab/+bgp/write.m
+++ b/matlab/+bgp/write.m
@@ -30,7 +30,7 @@ function write(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if DynareModel.maximum_lag  && ~DynareModel.maximum_lead
     i0 = transpose(DynareModel.lead_lag_incidence(1,:)); % Indices of the lagged variables.
diff --git a/matlab/+equation/evaluate.m b/matlab/+equation/evaluate.m
index ca42c84b23e6ded5cd0eeabd2ba9580d69595932..15d91007439ecb9949efb1ce79b0de0465de9c1b 100644
--- a/matlab/+equation/evaluate.m
+++ b/matlab/+equation/evaluate.m
@@ -15,7 +15,7 @@ function [ds, json] = evaluate(ds, eqtags, firstperiod, lastperiod, json)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+gui/+perfect_foresight/run.m b/matlab/+gui/+perfect_foresight/run.m
index 52c7298f2dea4d1538b0be44226c0aa914803589..b48f4f85acaa64349039eefa13bb0d5f6bdb81f5 100644
--- a/matlab/+gui/+perfect_foresight/run.m
+++ b/matlab/+gui/+perfect_foresight/run.m
@@ -28,7 +28,7 @@ function run(json)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ ys0_ ex0_
 
diff --git a/matlab/+gui/+stochastic-simulation/read.m b/matlab/+gui/+stochastic-simulation/read.m
index 65099482c89c4e34d37170ed6a0afae5d463139c..2070cb8847bb0d18384bb389a5dc7a27cbf18f75 100644
--- a/matlab/+gui/+stochastic-simulation/read.m
+++ b/matlab/+gui/+stochastic-simulation/read.m
@@ -28,7 +28,7 @@ function read(json)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/+pac/+bgp/get.m b/matlab/+pac/+bgp/get.m
index 06dc69210acd8379c2d62174b4ead1e1710fc35e..d2342e61e4a89d60b3a1e61f6d7ffa51c62d0ab9 100644
--- a/matlab/+pac/+bgp/get.m
+++ b/matlab/+pac/+bgp/get.m
@@ -15,7 +15,7 @@ function dummy = get(pacmodel, paceq, kind, id)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+pac/+bgp/set.m b/matlab/+pac/+bgp/set.m
index bdfb4ad7bdf13ba2cfa8cf7f9e3826a2647252e8..146c8e75f16879b5c1b6757f986b7e8f9d52512d 100644
--- a/matlab/+pac/+bgp/set.m
+++ b/matlab/+pac/+bgp/set.m
@@ -15,7 +15,7 @@ function dummy = set(pacmodel, paceq, parameter, isnonzeromean)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+pac/+estimate/init.m b/matlab/+pac/+estimate/init.m
index 9b2dbb6721c0738850d0a82473cbc47cfaef0ae5..0dbdf70b8a1a4a94a7c89ea6dca385df4027a07a 100644
--- a/matlab/+pac/+estimate/init.m
+++ b/matlab/+pac/+estimate/init.m
@@ -16,7 +16,7 @@ function [pacmodl, lhs, rhs, pnames, enames, xnames, rname, pid, eid, xid, pname
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get the original equation to be estimated
 [LHS, RHS] = get_lhs_and_rhs(eqname, M_, true);
diff --git a/matlab/+pac/+estimate/iterative_ols.m b/matlab/+pac/+estimate/iterative_ols.m
index 2e7c456b840757dbee2ee96644a075ccd17d3d55..8c710c54344da8a2214e7e18c6db76da2e6fb2f2 100644
--- a/matlab/+pac/+estimate/iterative_ols.m
+++ b/matlab/+pac/+estimate/iterative_ols.m
@@ -37,7 +37,7 @@ function iterative_ols(eqname, params, data, range)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/+pac/+estimate/nls.m b/matlab/+pac/+estimate/nls.m
index afd9f136614a69557c8e435b3fc09a9c9b4cb37c..cb384cdf6181b46d476ef37a109d5d1e4efa338c 100644
--- a/matlab/+pac/+estimate/nls.m
+++ b/matlab/+pac/+estimate/nls.m
@@ -57,7 +57,7 @@ function nls(eqname, params, data, range, optimizer, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/+pac/+mce/parameters.m b/matlab/+pac/+mce/parameters.m
index b3e2b01351c2e4d85f82bb3ab044f7633a104ceb..9817aca66000de8f8268d467ce076386fc9ad453 100644
--- a/matlab/+pac/+mce/parameters.m
+++ b/matlab/+pac/+mce/parameters.m
@@ -26,7 +26,7 @@ function parameters(pacname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+pac/+update/equation.m b/matlab/+pac/+update/equation.m
index ac65371b3e620c390c9a46cc0eba6620b0588b46..d368d5b1266890522437d48efb9f41675b7062f4 100644
--- a/matlab/+pac/+update/equation.m
+++ b/matlab/+pac/+update/equation.m
@@ -26,7 +26,7 @@ function equation(pacname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 warning('Function pac.update.equation() is deprecated. Use pac.update.expectation() instead.')
 skipline()
diff --git a/matlab/+pac/+update/expectation.m b/matlab/+pac/+update/expectation.m
index 5dc7784dca3270b273c77baf65705ac267a2bbc5..6819a05175380caa4e1f2d8696710db171086c15 100644
--- a/matlab/+pac/+update/expectation.m
+++ b/matlab/+pac/+update/expectation.m
@@ -26,7 +26,7 @@ function expectation(pacname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/+pac/+update/parameters.m b/matlab/+pac/+update/parameters.m
index cdd81655b4e7fe791753aef2cc9b05b54e7960c3..03132e08149b1efe3e992842cdf187960eda4d60 100644
--- a/matlab/+pac/+update/parameters.m
+++ b/matlab/+pac/+update/parameters.m
@@ -28,7 +28,7 @@ function DynareModel = parameters(pacname, DynareModel, DynareOutput, verbose)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     verbose = true;
diff --git a/matlab/+pac/check.m b/matlab/+pac/check.m
index 05f64ee6589ef53993f4e130ad957be98d34fcbb..0ffaca29feb71c0712aa656ccf9d310b1786373e 100644
--- a/matlab/+pac/check.m
+++ b/matlab/+pac/check.m
@@ -27,7 +27,7 @@ function errorcode = check(eqname, errorflag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+pac/initialize.m b/matlab/+pac/initialize.m
index 052572770c06aef23c242d21813a7d2566ff2c18..5ace9c916e733536ed246bec34e70aa1cd28bfef 100644
--- a/matlab/+pac/initialize.m
+++ b/matlab/+pac/initialize.m
@@ -23,7 +23,7 @@ function initialize(pacmodel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+pac/print.m b/matlab/+pac/print.m
index 11c3c2a1157075bd636a40d0195eb7b23d331417..61eae61bf75acfc650f528f69ae9ed22b7091241 100644
--- a/matlab/+pac/print.m
+++ b/matlab/+pac/print.m
@@ -34,7 +34,7 @@ function print(pacexpectationmodelname, eqname, withcalibration)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     % Print calibration by default.
diff --git a/matlab/+var_expectation/initialize.m b/matlab/+var_expectation/initialize.m
index 06f40eab38aa17ac600845f77af992a20b505399..a7ab7d503be225489e65321392d7e665ffb481f2 100644
--- a/matlab/+var_expectation/initialize.m
+++ b/matlab/+var_expectation/initialize.m
@@ -26,7 +26,7 @@ function initialize(varexpectationmodel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/+var_expectation/print.m b/matlab/+var_expectation/print.m
index 05e351f1f03a72d0e7eee826527c2666460e3a96..7970134778dd851eefd9ac45540602b32a76ed95 100644
--- a/matlab/+var_expectation/print.m
+++ b/matlab/+var_expectation/print.m
@@ -33,7 +33,7 @@ function print(varexpectationmodelname, withcalibration)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<2
     % Print calibration by default.
diff --git a/matlab/+var_expectation/update.m b/matlab/+var_expectation/update.m
index 8b6a5dd2b58b64bb04916cdef06e00302bcee489..50edb67f7038ca298973005d0d568bb9b77fd766 100644
--- a/matlab/+var_expectation/update.m
+++ b/matlab/+var_expectation/update.m
@@ -23,7 +23,7 @@ function update(varexpectationmodelname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/+var_expectation/update_parameters.m b/matlab/+var_expectation/update_parameters.m
index f6f3960bc0250dc9389d70ef264d07d0d0408e31..e947c493cd8c164dbfcf3e898f3a272fa6501e3c 100644
--- a/matlab/+var_expectation/update_parameters.m
+++ b/matlab/+var_expectation/update_parameters.m
@@ -28,7 +28,7 @@ function DynareModel = update_parameters(varexpectationmodelname, DynareModel, D
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Check that the first input is a row character array.
 if ~isrow(varexpectationmodelname)==1 || ~ischar(varexpectationmodelname)
diff --git a/matlab/AHessian.m b/matlab/AHessian.m
index f9d9db6e0ca667eb13c3da412dd412207f9aeb55..4127bff98fa9c0f9ec1ae4e0c88151d00a35aad4 100644
--- a/matlab/AHessian.m
+++ b/matlab/AHessian.m
@@ -23,7 +23,7 @@ function [AHess, DLIK, LIK] = AHessian(T,R,Q,H,P,Y,DT,DYss,DOm,DH,DP,start,mf,ka
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 k = size(DT,3);                                 % number of structural parameters
diff --git a/matlab/AIM/dynAIMsolver1.m b/matlab/AIM/dynAIMsolver1.m
index 52a2ae6f92fd0abb75d290911908207da34db462..dab31f51bc65a9ce091efc94412664f7db162067 100644
--- a/matlab/AIM/dynAIMsolver1.m
+++ b/matlab/AIM/dynAIMsolver1.m
@@ -61,7 +61,7 @@ function [dr,aimcode,rts]=dynAIMsolver1(jacobia_,M_,dr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 aimcode=-1;
 neq= size(jacobia_,1); % no of equations
diff --git a/matlab/AIM_first_order_solver.m b/matlab/AIM_first_order_solver.m
index 893deefb0c43ce611bb9553fbec8851b7f628edc..09f99f799c7e2aa6f036bc6d660aa1294db6beef 100644
--- a/matlab/AIM_first_order_solver.m
+++ b/matlab/AIM_first_order_solver.m
@@ -66,7 +66,7 @@ function [dr,info]=AIM_first_order_solver(jacobia,M,dr,qz_criterium)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 
diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m
index 002c9bd17d47167dae7636f03650ec14c0cc35a4..5ecfc3a13b977238e702b6d4d789a2c65a452948 100644
--- a/matlab/CheckPath.m
+++ b/matlab/CheckPath.m
@@ -27,7 +27,7 @@ function [DirectoryName, info] = CheckPath(type,dname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 
diff --git a/matlab/CutSample.m b/matlab/CutSample.m
index 1582ec8836fbb88577cda54da12a66afb567fe9b..5e7b69296d589c1dba9903ee99a94a96d6338da5 100644
--- a/matlab/CutSample.m
+++ b/matlab/CutSample.m
@@ -31,7 +31,7 @@ function CutSample(M_, options_, estim_params_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 npar = estim_params_.np+estim_params_.nvn+estim_params_.ncx+estim_params_.ncn+estim_params_.nvx;
 
diff --git a/matlab/DsgeSmoother.m b/matlab/DsgeSmoother.m
index 8dbee6f4df9a416393ceb1b5e0a4bf09b5dc9a72..94903de1d3281417d9b15b1f198f20cf888b7c09 100644
--- a/matlab/DsgeSmoother.m
+++ b/matlab/DsgeSmoother.m
@@ -73,7 +73,7 @@ function [alphahat,etahat,epsilonhat,ahat,SteadyState,trend_coeff,aK,T,R,P,PK,de
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 alphahat        = [];
 etahat  = [];
diff --git a/matlab/GetAllPosteriorDraws.m b/matlab/GetAllPosteriorDraws.m
index 0408da5095c3cd567c0fa2dae83adffa27fe95f8..762632786d9907a6d1839a0485c0f1c88f94cdeb 100644
--- a/matlab/GetAllPosteriorDraws.m
+++ b/matlab/GetAllPosteriorDraws.m
@@ -31,7 +31,7 @@ function Draws = GetAllPosteriorDraws(column, FirstMhFile, FirstLine, TotalNumbe
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/GetOneDraw.m b/matlab/GetOneDraw.m
index e4fba3a4319a51ccd4e30138add672563aa7ada9..ed48ac6eff9aec8913f4462a9c0d0b4a2da45496 100644
--- a/matlab/GetOneDraw.m
+++ b/matlab/GetOneDraw.m
@@ -33,7 +33,7 @@ function [xparams, logpost] = GetOneDraw(type,M_,estim_params_,oo_,options_,baye
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 switch type
   case 'posterior'
diff --git a/matlab/GetPosteriorMeanVariance.m b/matlab/GetPosteriorMeanVariance.m
index 22d9e60045efd834db265168a73d3e10c63a3789..33f7e014634efe1d023cdd4903890312b887802b 100644
--- a/matlab/GetPosteriorMeanVariance.m
+++ b/matlab/GetPosteriorMeanVariance.m
@@ -15,7 +15,7 @@ function [mean,variance] = GetPosteriorMeanVariance(M,drop)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 MetropolisFolder = CheckPath('metropolis',M.dname);
 FileName = M.fname;
diff --git a/matlab/GetPosteriorParametersStatistics.m b/matlab/GetPosteriorParametersStatistics.m
index d2cf00a695a794b38c2600d713d6065a41deab74..f6e69feb5c80be38839d777a49ec8f0bd89b3443 100644
--- a/matlab/GetPosteriorParametersStatistics.m
+++ b/matlab/GetPosteriorParametersStatistics.m
@@ -31,7 +31,7 @@ function oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bay
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %if ~options_.mh_replic && options_.load_mh_file
 %   load([M_.fname '_results.mat'],'oo_');
diff --git a/matlab/MakeAllFigures.m b/matlab/MakeAllFigures.m
index 6c3de53abd749cb5a32a79bc8691b1868639dc78..ca6a044e7f32b1f9a7a18a260918724810f6f698 100644
--- a/matlab/MakeAllFigures.m
+++ b/matlab/MakeAllFigures.m
@@ -15,7 +15,7 @@ function MakeAllFigures(NumberOfPlots,Caption,FigureProperties,Info)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/PlotPosteriorDistributions.m b/matlab/PlotPosteriorDistributions.m
index aac95569fbb470d821fb01b2a1f462bc56ac70f8..7fc418e0e0b401e293510032153d6543a6319d09 100644
--- a/matlab/PlotPosteriorDistributions.m
+++ b/matlab/PlotPosteriorDistributions.m
@@ -31,7 +31,7 @@ function oo_ = PlotPosteriorDistributions(estim_params_, M_, options_, bayestopt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 OutputDirectoryName = CheckPath('Output',M_.dname);
 
diff --git a/matlab/PosteriorIRF.m b/matlab/PosteriorIRF.m
index 07b11383c020eb3e1d5dc21e5927e894603a90b5..b4822532481062e6723d250235d75bd296fc0522 100644
--- a/matlab/PosteriorIRF.m
+++ b/matlab/PosteriorIRF.m
@@ -31,7 +31,7 @@ function PosteriorIRF(type)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 global options_ estim_params_ oo_ M_ bayestopt_ dataset_ dataset_info
diff --git a/matlab/PosteriorIRF_core1.m b/matlab/PosteriorIRF_core1.m
index 9cfdc8e244c6c9e7923505ca918b53f0662945cd..3311c138defbae3e4b730af5b1145df844508e90 100644
--- a/matlab/PosteriorIRF_core1.m
+++ b/matlab/PosteriorIRF_core1.m
@@ -38,7 +38,7 @@ function myoutput=PosteriorIRF_core1(myinputs,fpar,B,whoiam, ThisMatlab)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 global options_ estim_params_ oo_ M_ bayestopt_ dataset_ dataset_info
diff --git a/matlab/PosteriorIRF_core2.m b/matlab/PosteriorIRF_core2.m
index 522888e3894ac9865325c8927529481a17e4b5cc..af6094b9e8293e7c4dc88a889ca0476dd0c52d41 100644
--- a/matlab/PosteriorIRF_core2.m
+++ b/matlab/PosteriorIRF_core2.m
@@ -45,7 +45,7 @@ function myoutput=PosteriorIRF_core2(myinputs,fpar,npar,whoiam,ThisMatlab)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_  M_
 
diff --git a/matlab/Q6_plication.m b/matlab/Q6_plication.m
index 153ee8ccd85ea9552b4225e368fcb36b8b3da08d..66162044ac473c9343335d11c6924728a91cd0c5 100644
--- a/matlab/Q6_plication.m
+++ b/matlab/Q6_plication.m
@@ -38,7 +38,7 @@ function [DP6,DP6inv] = Q6_plication(p)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 np = p*(p+1)*(p+2)*(p+3)*(p+4)*(p+5)/(1*2*3*4*5*6);
 DP6 = spalloc(p^6,np,p^6);
diff --git a/matlab/ReshapeMatFiles.m b/matlab/ReshapeMatFiles.m
index 1d127a67bacdc9c2a20611e7d701f0b5b64c488c..62354e7740236e96033af3e5ef8082ff5c591ac1 100644
--- a/matlab/ReshapeMatFiles.m
+++ b/matlab/ReshapeMatFiles.m
@@ -40,7 +40,7 @@ function ReshapeMatFiles(type, type2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/TaRB_optimizer_wrapper.m b/matlab/TaRB_optimizer_wrapper.m
index 948266a23c65c0ad7f6d8b7eec6d6be685ed9cab..fe8c5f43e0f70edf1118cb8ef9bb398dfe3012a4 100644
--- a/matlab/TaRB_optimizer_wrapper.m
+++ b/matlab/TaRB_optimizer_wrapper.m
@@ -37,7 +37,7 @@ function [fval,info,exit_flag,DLIK,Hess,SteadyState,trend_coeff]  = TaRB_optimiz
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 par_vector(parameterindices,:)=optpar; %reassemble parameter
 [fval,info,exit_flag,DLIK,Hess,SteadyState,trend_coeff] = feval(TargetFun,par_vector,varargin{:}); %call target function
diff --git a/matlab/Tracing.m b/matlab/Tracing.m
index d3ba8c0be9832a4eaf2459debe10593524d65e08..8e17ee6c005827f85d0d4bb11e5753ef3c05dec0 100644
--- a/matlab/Tracing.m
+++ b/matlab/Tracing.m
@@ -29,7 +29,7 @@ function [] = Tracing()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fid = fopen('Tracing.txt','w+');
 fclose (fid);
diff --git a/matlab/UnivariateSpectralDensity.m b/matlab/UnivariateSpectralDensity.m
index d0f48f7d4f958383c37eee62196b0d2cf1b7d696..c310d3b570d54751b1ba1699b8de9e547a187f53 100644
--- a/matlab/UnivariateSpectralDensity.m
+++ b/matlab/UnivariateSpectralDensity.m
@@ -34,7 +34,7 @@ function [oo_] = UnivariateSpectralDensity(M_,oo_,options_,var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if options_.order > 1
diff --git a/matlab/WriteShockDecomp2Excel.m b/matlab/WriteShockDecomp2Excel.m
index 8be1b6f8816c6f8bce4e5e9322d1ac25834e3fb6..00a51426a76c9c33c13c7d1e265c9f51375edc82 100644
--- a/matlab/WriteShockDecomp2Excel.m
+++ b/matlab/WriteShockDecomp2Excel.m
@@ -26,7 +26,7 @@ function WriteShockDecomp2Excel(z,shock_names,endo_names,i_var,initial_date,Dyna
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 OutputDirectoryName = CheckPath('Output',DynareModel.dname);
 
diff --git a/matlab/accessors/get_irf.m b/matlab/accessors/get_irf.m
index 93177435cf3712f3b1f623e977103dad3aa2e1e2..0cafdb12dc18c2e507f0e245a815e0585e741bc2 100644
--- a/matlab/accessors/get_irf.m
+++ b/matlab/accessors/get_irf.m
@@ -29,7 +29,7 @@ function y0 = get_irf(exo,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/accessors/get_mean.m b/matlab/accessors/get_mean.m
index 85337c6c824822657fa6665aafeaeac6c706ae8a..98a6fa78dc9b8494d2a0a99dda5f55ad25b1924b 100644
--- a/matlab/accessors/get_mean.m
+++ b/matlab/accessors/get_mean.m
@@ -28,7 +28,7 @@ function y0 = get_mean(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/accessors/get_param_by_name.m b/matlab/accessors/get_param_by_name.m
index b06ab5f0740a978a4a3c9b82a24ee104ead24654..2314c05b08fe75ff2a599d31bcdae17aa1ac682a 100644
--- a/matlab/accessors/get_param_by_name.m
+++ b/matlab/accessors/get_param_by_name.m
@@ -26,7 +26,7 @@ function x = get_param_by_name(pname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/accessors/get_posterior_covariance.m b/matlab/accessors/get_posterior_covariance.m
index d83c0fd964d945dd7ed1345a1ff2d068fefe8db9..a78fd9bdba1cf44677fdd1555e822261bf797009 100644
--- a/matlab/accessors/get_posterior_covariance.m
+++ b/matlab/accessors/get_posterior_covariance.m
@@ -15,7 +15,7 @@ function r = get_posterior_covariance(endo1, endo2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/accessors/get_posterior_irf.m b/matlab/accessors/get_posterior_irf.m
index 4835db71870c149d20483c01a401f0d0c21510b8..e884d15ea5dcf59c733bdb946edacf0ce6c5001f 100644
--- a/matlab/accessors/get_posterior_irf.m
+++ b/matlab/accessors/get_posterior_irf.m
@@ -15,7 +15,7 @@ function r = get_posterior_irf(endo, exo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/accessors/get_posterior_timeseries.m b/matlab/accessors/get_posterior_timeseries.m
index a15ada45f65cc2d40404b6db851287d65ecfe4cc..7cae9280b4cc2e5ee6b6baf25ccfba34f7cf9675 100644
--- a/matlab/accessors/get_posterior_timeseries.m
+++ b/matlab/accessors/get_posterior_timeseries.m
@@ -23,7 +23,7 @@ function r = get_posterior_timeseries(type, endo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/accessors/get_shock_stderr_by_name.m b/matlab/accessors/get_shock_stderr_by_name.m
index 7a5e7179dc2597150754d7f049d153c9421d2331..67baf741f32732f203b898e8f9131153b22024c7 100644
--- a/matlab/accessors/get_shock_stderr_by_name.m
+++ b/matlab/accessors/get_shock_stderr_by_name.m
@@ -26,7 +26,7 @@ function x = get_shock_stderr_by_name(exoname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/accessors/get_smooth.m b/matlab/accessors/get_smooth.m
index d4bfdf16bd47e862be908a36b1ab9e6f5c2f4096..8d6b96efbb4b5607892f42dca71646e84ac64c42 100644
--- a/matlab/accessors/get_smooth.m
+++ b/matlab/accessors/get_smooth.m
@@ -27,7 +27,7 @@ function y0 = get_smooth(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global oo_
 
 SmoothedVariables=[struct2cell(oo_.SmoothedVariables); struct2cell(oo_.SmoothedShocks)];
diff --git a/matlab/accessors/get_update.m b/matlab/accessors/get_update.m
index 8bdb2f907412b8e898b1acb23824281389e0b1c9..67a4ad20bde6cb0653e1926eeda97283e0fface9 100644
--- a/matlab/accessors/get_update.m
+++ b/matlab/accessors/get_update.m
@@ -26,7 +26,7 @@ function y0 = get_update(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global oo_
 
 y0=zeros(length(oo_.UpdatedVariables.(varargin{1})),length(varargin));
diff --git a/matlab/accessors/set_param_value.m b/matlab/accessors/set_param_value.m
index ecaec81b8426e0a99f5eefc0145c0329eeeca045..63fd204760fb58b104b74cd15cc433f7f28f565c 100644
--- a/matlab/accessors/set_param_value.m
+++ b/matlab/accessors/set_param_value.m
@@ -15,7 +15,7 @@ function set_param_value(pname,value)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/accessors/set_shock_stderr_value.m b/matlab/accessors/set_shock_stderr_value.m
index f66e784ee5f4a73b8d4d0f2b740a1ee41b1599f5..55ec4defd1ccb6559e86def3a7e2837283dd7d06 100644
--- a/matlab/accessors/set_shock_stderr_value.m
+++ b/matlab/accessors/set_shock_stderr_value.m
@@ -15,7 +15,7 @@ function set_shock_stderr_value(exoname,value)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/add_filter_subtitle.m b/matlab/add_filter_subtitle.m
index 4b0a63ede8d006eeff541d0ba4127e5795067940..2ac0b10ee0e8cf445ceb05972d684846e254cfa3 100644
--- a/matlab/add_filter_subtitle.m
+++ b/matlab/add_filter_subtitle.m
@@ -15,7 +15,7 @@ function title=add_filter_subtitle(title,options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~options_.hp_filter && ~options_.one_sided_hp_filter  && ~options_.bandpass.indicator %do not filter
                                                                                          %nothing to add here
diff --git a/matlab/add_path_to_mex_files.m b/matlab/add_path_to_mex_files.m
index 757864c7a5ee098217253634cf305e0182e99a28..c16e1a840d839d24481819549a63b768cc0237a3 100644
--- a/matlab/add_path_to_mex_files.m
+++ b/matlab/add_path_to_mex_files.m
@@ -15,7 +15,7 @@ function mexpath = add_path_to_mex_files(dynareroot, modifypath)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<2
     modifypath = true;
diff --git a/matlab/aggregate.m b/matlab/aggregate.m
index f8b32915a42ca6d9fd064790ff3f072d1445ff71..38ff663a08f724c09a60116045b5a00701835423 100644
--- a/matlab/aggregate.m
+++ b/matlab/aggregate.m
@@ -17,7 +17,7 @@ function aggregate(ofile, dynopt, rootfolder, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 MAX_NUMBER_OF_ELEMENTS = 10000;
 
diff --git a/matlab/allVL1.m b/matlab/allVL1.m
index 7bc7e01b081f6a31c7602d2c1b14a0c0b1fac58b..35f8029cdee87c241d760a163b2154d057bb7fb0 100644
--- a/matlab/allVL1.m
+++ b/matlab/allVL1.m
@@ -55,7 +55,7 @@ function v = allVL1(n, L1, L1ops, MaxNbSol)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 global MaxCounter;
 
diff --git a/matlab/annualized_shock_decomposition.m b/matlab/annualized_shock_decomposition.m
index 038f15a684f7a9401000a40b65bc7876605bcfbd..f6aaa02ec7c48068a1cfb184775ea2ee47487dfc 100644
--- a/matlab/annualized_shock_decomposition.m
+++ b/matlab/annualized_shock_decomposition.m
@@ -47,7 +47,7 @@ function [z, endo_names, endo_names_tex, steady_state, i_var, oo_] = annualized_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 opts = options_.plot_shock_decomp;
 nvar = length(i_var);
diff --git a/matlab/autoregressive_process_specification.m b/matlab/autoregressive_process_specification.m
index 6f73b7e0545fab9873b7289f3f1f5e117dff3323..08cba18538b138d7c444d3a46ce4251b8b4027e2 100644
--- a/matlab/autoregressive_process_specification.m
+++ b/matlab/autoregressive_process_specification.m
@@ -58,7 +58,7 @@ function [InnovationVariance,AutoregressiveParameters] = autoregressive_process_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 AutoregressiveParameters = NaN(p,1);
 InnovationVariance = NaN;
 switch p
diff --git a/matlab/backward/backward_model_forecast.m b/matlab/backward/backward_model_forecast.m
index cbf40f15e1103209cd76225276c021e675f43e57..28b376009667da352325752036886ec5566be6a7 100644
--- a/matlab/backward/backward_model_forecast.m
+++ b/matlab/backward/backward_model_forecast.m
@@ -25,7 +25,7 @@ function forecasts = backward_model_forecast(initialcondition, listofvariables,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/backward/backward_model_inversion.m b/matlab/backward/backward_model_inversion.m
index 99198771f5c349351af09eb19b0ab0ed330e2951..8641b8d454b88c9d6ff5803804e0127845795c4b 100644
--- a/matlab/backward/backward_model_inversion.m
+++ b/matlab/backward/backward_model_inversion.m
@@ -29,7 +29,7 @@ function [endogenousvariables, exogenousvariables] = backward_model_inversion(co
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get indices for the calibrated and free innovations.
 freeinnovations_id = zeros(length(freeinnovations), 1);
diff --git a/matlab/backward/backward_model_irf.m b/matlab/backward/backward_model_irf.m
index a90ffeb33d1455ba5529f79a2e29a4b696b747f3..ae79a86e1ca14a35323517e26ec0db216fc7588b 100644
--- a/matlab/backward/backward_model_irf.m
+++ b/matlab/backward/backward_model_irf.m
@@ -34,7 +34,7 @@ function [deviations, baseline, irfs] = backward_model_irf(initialcondition, inn
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/backward/calibrateresiduals.m b/matlab/backward/calibrateresiduals.m
index 912ea17ce80dde55cee2c6afee21d32329c483ab..70b296a7f347079929fe20d17ac07d3b0758d384 100644
--- a/matlab/backward/calibrateresiduals.m
+++ b/matlab/backward/calibrateresiduals.m
@@ -33,7 +33,7 @@ function [residuals, info] = calibrateresiduals(dbase, info, DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 displayresidualsequationmapping = false;
 
diff --git a/matlab/backward/checkdatabase.m b/matlab/backward/checkdatabase.m
index 35d8f0c887b23ee44a2c082452c009f907b2652b..3b4b407eec3905dc9188cfe87f79a76ab961decb 100644
--- a/matlab/backward/checkdatabase.m
+++ b/matlab/backward/checkdatabase.m
@@ -21,7 +21,7 @@ function [dbase, info] = checkdatabase(dbase, DynareModel, inversionflag, simula
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % if DynareModel.maximum_endo_lead
 %    error('The model (%s) is assumed to be backward!', DynareModel.fname)
diff --git a/matlab/backward/checkdatabaseforinversion.m b/matlab/backward/checkdatabaseforinversion.m
index bcc828279dd557b06bbc7afdb0b40e6e9906abe4..8f3c19a882599335fbc7034707841b2f1e115cbf 100644
--- a/matlab/backward/checkdatabaseforinversion.m
+++ b/matlab/backward/checkdatabaseforinversion.m
@@ -20,6 +20,6 @@ function [dbase, info] = checkdatabaseforinversion(dbase, DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [dbase, info] = checkdatabase(dbase, DynareModel, true, false);
\ No newline at end of file
diff --git a/matlab/backward/dynamic_backward_model_for_inversion.m b/matlab/backward/dynamic_backward_model_for_inversion.m
index 540e2f732999cd25d4c82882dac2259d619180d4..2bb568f8652901dc492e10c038440be83deb7dfe 100644
--- a/matlab/backward/dynamic_backward_model_for_inversion.m
+++ b/matlab/backward/dynamic_backward_model_for_inversion.m
@@ -15,7 +15,7 @@ function [r, J] = dynamic_backward_model_for_inversion(z, dynamicmodel, ylag, yc
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set up y
 y = zeros(length(ylag)+ModelInversion.nyfree+ModelInversion.nyctrl,1);
diff --git a/matlab/backward/dynamic_backward_model_for_simulation.m b/matlab/backward/dynamic_backward_model_for_simulation.m
index 4947aa6695ac6e245bb592c74cf89d4753f5a47f..fcedf2eaf61deababe321da65b58139d4d106660 100644
--- a/matlab/backward/dynamic_backward_model_for_simulation.m
+++ b/matlab/backward/dynamic_backward_model_for_simulation.m
@@ -15,7 +15,7 @@ function [r, J] = dynamic_backward_model_for_simulation(z, dynamicmodel, ylag, x
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get indices of the variables appearing at time t.
 % NOTE: It is assumed that all variables appear at time t in the model.
diff --git a/matlab/backward/dynamic_static_model_for_simulation.m b/matlab/backward/dynamic_static_model_for_simulation.m
index 8ce6083330475e8892dd12e49f60006556e5987f..b929583d5c52dea3d4341a9aaf7cbffcd80ebeb0 100644
--- a/matlab/backward/dynamic_static_model_for_simulation.m
+++ b/matlab/backward/dynamic_static_model_for_simulation.m
@@ -15,7 +15,7 @@ function [r, J] = dynamic_static_model_for_simulation(z, dynamicmodel, x, params
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % NOTE: It is assumed that all variables appear at time t in the model.
 
diff --git a/matlab/backward/get_lags_on_endogenous_variables.m b/matlab/backward/get_lags_on_endogenous_variables.m
index f9b5d75d0bec4231d1f400a071fed1e1fa60e0ef..dd3e572ea1479c7e02a1d086864218e61cb7d727 100644
--- a/matlab/backward/get_lags_on_endogenous_variables.m
+++ b/matlab/backward/get_lags_on_endogenous_variables.m
@@ -17,7 +17,7 @@ function l = get_lags_on_endogenous_variables(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 l = zeros(DynareModel.orig_endo_nbr, 1);
 l(find(DynareModel.lead_lag_incidence(1,1:DynareModel.orig_endo_nbr))) = -1;
diff --git a/matlab/backward/get_lags_on_exogenous_variables.m b/matlab/backward/get_lags_on_exogenous_variables.m
index 590fa77a88e56cc2605900f242cc5595f1e0f364..b5bc5dd0a14d8e0c2feacac7ce4bb3ab60bfe381 100644
--- a/matlab/backward/get_lags_on_exogenous_variables.m
+++ b/matlab/backward/get_lags_on_exogenous_variables.m
@@ -17,7 +17,7 @@ function l = get_lags_on_exogenous_variables(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 l = zeros(DynareModel.exo_nbr, 1);
 
diff --git a/matlab/backward/shock_decomposition_backward.m b/matlab/backward/shock_decomposition_backward.m
index e27ad73cacc8473183bc3cc994ac926e5ddc2a16..9296200606a2598374f4bc7dbc6e2f62e11fd866 100644
--- a/matlab/backward/shock_decomposition_backward.m
+++ b/matlab/backward/shock_decomposition_backward.m
@@ -37,7 +37,7 @@ function decomposition = shock_decomposition_backward(simulations, initialcondit
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/backward/simul_backward_linear_model.m b/matlab/backward/simul_backward_linear_model.m
index 381642998212bf667f3739bf51b679aef7172e6b..286898b8417635273b68c7239c336bc78a95ec76 100644
--- a/matlab/backward/simul_backward_linear_model.m
+++ b/matlab/backward/simul_backward_linear_model.m
@@ -36,7 +36,7 @@ function simulations = simul_backward_linear_model(initialconditions, samplesize
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if DynareModel.maximum_lead
     error('Model defined in %s.mod is not backward.', M_.fname)
diff --git a/matlab/backward/simul_backward_linear_model_.m b/matlab/backward/simul_backward_linear_model_.m
index 742d683431d4ce1bd06b8d8dbe12e3ff00c04d18..58bd6f6020ee7fcf0a9f053e9ebe84672fc0633d 100644
--- a/matlab/backward/simul_backward_linear_model_.m
+++ b/matlab/backward/simul_backward_linear_model_.m
@@ -36,7 +36,7 @@ function [ysim, xsim] = simul_backward_linear_model_(initialconditions, samplesi
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isempty(innovations)
     DynareOutput.exo_simul(initialconditions.nobs+(1:samplesize),:) = innovations;
diff --git a/matlab/backward/simul_backward_model.m b/matlab/backward/simul_backward_model.m
index 168b5a428825d5eb737ca54a59072ab51cd8e509..a40e5e2c1ff12c13eb8d745da38a914904a90952 100644
--- a/matlab/backward/simul_backward_model.m
+++ b/matlab/backward/simul_backward_model.m
@@ -33,7 +33,7 @@ function simulation = simul_backward_model(initialconditions, samplesize, innova
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ M_ oo_
 
diff --git a/matlab/backward/simul_backward_model_init.m b/matlab/backward/simul_backward_model_init.m
index c5801eacbf0389e94064837953099b718649378c..55e911be92eb143d1b6cb3e8eaced12b962c2cfe 100644
--- a/matlab/backward/simul_backward_model_init.m
+++ b/matlab/backward/simul_backward_model_init.m
@@ -18,7 +18,7 @@ function [initialconditions, samplesize, innovations, DynareOptions, DynareModel
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Test if the model is backward.
 if DynareModel.maximum_lead
diff --git a/matlab/backward/simul_backward_nonlinear_model.m b/matlab/backward/simul_backward_nonlinear_model.m
index 956af53aff61d4782be06edd7b1229c810cb142f..8407e18725d27bf8ddaa13b74dd1689eecb290b8 100644
--- a/matlab/backward/simul_backward_nonlinear_model.m
+++ b/matlab/backward/simul_backward_nonlinear_model.m
@@ -36,7 +36,7 @@ function simulations = simul_backward_nonlinear_model(initialconditions, samples
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if DynareModel.maximum_lead
     error('Model defined in %s.mod is not backward.', DynareModel.fname)
diff --git a/matlab/backward/simul_backward_nonlinear_model_.m b/matlab/backward/simul_backward_nonlinear_model_.m
index b1d05fc28001b81972b11e9e694350caa8dee9c6..da480b5b0bece3e6de72a556dbd64de336171fbe 100644
--- a/matlab/backward/simul_backward_nonlinear_model_.m
+++ b/matlab/backward/simul_backward_nonlinear_model_.m
@@ -36,7 +36,7 @@ function [ysim, xsim] = simul_backward_nonlinear_model_(initialconditions, sampl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 debug = false;
 
diff --git a/matlab/basic_plan.m b/matlab/basic_plan.m
index ae7d6bcbf6a5f2dab454d187c825993e83d18ec5..d48869c272d2f56b4f472d9d8350c94b75472b17 100644
--- a/matlab/basic_plan.m
+++ b/matlab/basic_plan.m
@@ -29,7 +29,7 @@ function plan = basic_plan(plan, exogenous, expectation_type, date, value)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~ischar(expectation_type) || size(expectation_type,1) ~= 1
     error(['in basic_plan the third argument should be a string containing the simulation type (''perfect_foresight'' or ''surprise'')']);
diff --git a/matlab/bicgstab_.m b/matlab/bicgstab_.m
index aa2c0a95777259d837a6b3aa245ca4301452262b..c704de10ce4b131140b58ee4580f409012323a11 100644
--- a/matlab/bicgstab_.m
+++ b/matlab/bicgstab_.m
@@ -15,7 +15,7 @@ function [x,status]=bicgstab_(func,b,x,tole,kmax,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 status = 0;
 r=b-feval(func,x,varargin{:});
diff --git a/matlab/bivmom.m b/matlab/bivmom.m
index f850fe1c2462cc4e78fc58a294c2a503b365f063..3ba65171839b23bb6d0c7f382c8cf84494ba9fd0 100644
--- a/matlab/bivmom.m
+++ b/matlab/bivmom.m
@@ -39,7 +39,7 @@ function [y,dy] = bivmom(p,rho)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 s1 = p(1);
 s2 = p(2);
diff --git a/matlab/bksup0.m b/matlab/bksup0.m
index b801e40e245c1cbd9e99dba40f1dc8b059042443..5fb364b995b1a4eb72b41ccb9f9e1b7478fe4213 100644
--- a/matlab/bksup0.m
+++ b/matlab/bksup0.m
@@ -26,7 +26,7 @@ function d = bksup0(c,ny,jcf,iyf,icf,periods)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ir  = ((periods-2)*ny+1):(ny+(periods-2)*ny);
 irf = iyf+(periods-1)*ny ;
diff --git a/matlab/bksup1.m b/matlab/bksup1.m
index 4e6fb733c70646cfbc352d662b4427fc82f71993..3cbea3f4e1539f1481c88a618fde1add106ce619 100644
--- a/matlab/bksup1.m
+++ b/matlab/bksup1.m
@@ -27,7 +27,7 @@ function d = bksup1(c,ny,jcf,iyf,periods)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ir = [(periods-2)*ny+1:ny+(periods-2)*ny] ;
 irf = iyf+(periods-1)*ny ;
diff --git a/matlab/bksupk.m b/matlab/bksupk.m
index cca78d7f617b57f00c30925da3417bf26a973222..66ac114aa693f13964dc4cfaf1f1bc33d8b74938 100644
--- a/matlab/bksupk.m
+++ b/matlab/bksupk.m
@@ -30,7 +30,7 @@ function d1 = bksupk(ny,fid,jcf,icc1)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/block_bytecode_mfs_steadystate.m b/matlab/block_bytecode_mfs_steadystate.m
index ba0bef8617b4d48e2aefd7b85bfaff6c36480588..1747edd2a744e0987fa271a5d904f5d612bac82e 100644
--- a/matlab/block_bytecode_mfs_steadystate.m
+++ b/matlab/block_bytecode_mfs_steadystate.m
@@ -17,7 +17,7 @@ function [r, g1] = block_bytecode_mfs_steadystate(y, b, y_all, exo, params, M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 indx = M.block_structure_stat.block(b).variable;
 y_all(indx) = y;
diff --git a/matlab/block_mfs_steadystate.m b/matlab/block_mfs_steadystate.m
index ceccf3555f0ad8c50f43a3b5767316abeec085b2..6a8bce31ddf679aaafccef4eeb7a72ceb08ca085 100644
--- a/matlab/block_mfs_steadystate.m
+++ b/matlab/block_mfs_steadystate.m
@@ -17,7 +17,7 @@ function [r, g1] = block_mfs_steadystate(y, b, y_all, exo, params, T, M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 y_all(M.block_structure_stat.block(b).variable) = y;
 
diff --git a/matlab/bseastr.m b/matlab/bseastr.m
index c8b2de0fc77ef4bda2dfa5904443672630bee09b..c3e5b56b0278311ca9900f8f35e4cd8d10e7de74 100644
--- a/matlab/bseastr.m
+++ b/matlab/bseastr.m
@@ -15,7 +15,7 @@ function x = bseastr(s1,s2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 m = size(s1,1) ;
 x = zeros(m,1) ;
diff --git a/matlab/bvar_density.m b/matlab/bvar_density.m
index 5c75f18f81354adefea7ddbf5294f2c56c88f336..a6577774b1953f1da7f8f5f08d52fb71e507159e 100644
--- a/matlab/bvar_density.m
+++ b/matlab/bvar_density.m
@@ -27,7 +27,7 @@ function bvar_density(maxnlags)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_
 
diff --git a/matlab/bvar_forecast.m b/matlab/bvar_forecast.m
index 2fe5601cbf0b3c826f760af12ba43aadf02e333b..adac96e04a8fe33f461969168987163870e29f9c 100644
--- a/matlab/bvar_forecast.m
+++ b/matlab/bvar_forecast.m
@@ -26,7 +26,7 @@ function bvar_forecast(nlags)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_
 
diff --git a/matlab/bvar_irf.m b/matlab/bvar_irf.m
index 2dbd908e4e951d771e14020bfed1ae7d8aa1d653..5803abff8a5a03caa7584f1e0b23c39b046531e4 100644
--- a/matlab/bvar_irf.m
+++ b/matlab/bvar_irf.m
@@ -26,7 +26,7 @@ function bvar_irf(nlags,identification)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_
 
diff --git a/matlab/bvar_toolbox.m b/matlab/bvar_toolbox.m
index 4393e21aca7e977a09ffb5bf6537b42d222908cf..7b0c18a8ea727dfb44dc168041d217878ac8fe8c 100644
--- a/matlab/bvar_toolbox.m
+++ b/matlab/bvar_toolbox.m
@@ -57,7 +57,7 @@ function [ny, nx, posterior, prior, forecast_data] = bvar_toolbox(nlags)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_
 
diff --git a/matlab/bytecode_steadystate.m b/matlab/bytecode_steadystate.m
index dff35373f4875072b510294ab2d7c97f84e84180..2d0e8d2d4e9e2e5ed6f932294550322b8f6d7934 100644
--- a/matlab/bytecode_steadystate.m
+++ b/matlab/bytecode_steadystate.m
@@ -17,6 +17,6 @@ function [r, g1] = bytecode_steadystate(y, exo, params)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 eval('[r, g1] = bytecode( y, exo, params, y, 1, exo, ''evaluate'', ''static'');');
diff --git a/matlab/calibrate_mh_scale_parameter.m b/matlab/calibrate_mh_scale_parameter.m
index 4425e7516100aab995a9359b38533d9bfe42e6f0..e4633b8dc9d157d1075a4da397d0977046b9c6ea 100644
--- a/matlab/calibrate_mh_scale_parameter.m
+++ b/matlab/calibrate_mh_scale_parameter.m
@@ -35,7 +35,7 @@ function Scale = calibrate_mh_scale_parameter(ObjectiveFunction, CovarianceMatri
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Fire up the wait bar
 hh = dyn_waitbar(0,'Tuning of the scale parameter...');
diff --git a/matlab/cartesian_product_of_sets.m b/matlab/cartesian_product_of_sets.m
index 9fbe37c0773fdd1e7ae8d12917354142f94032a1..1e41e57d9d3bf469bf60e1af9fcf01811c8b766d 100644
--- a/matlab/cartesian_product_of_sets.m
+++ b/matlab/cartesian_product_of_sets.m
@@ -46,7 +46,7 @@ function cprod = cartesian_product_of_sets(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/cellofchar2mfile.m b/matlab/cellofchar2mfile.m
index 6160f5a471c5e76ab9501bf4f52324f12116b750..809877a9beae1a5a395f91b5c67ae049570761bf 100644
--- a/matlab/cellofchar2mfile.m
+++ b/matlab/cellofchar2mfile.m
@@ -24,7 +24,7 @@ function cellofchar2mfile(fname, c, cname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [pathstr,name,ext] = fileparts(fname);
 
diff --git a/matlab/cellofchararraymaxlength.m b/matlab/cellofchararraymaxlength.m
index 2f42e38c3f856b53b2628954afd30beea3253f51..dee88122a6eb9b37e82671cc28ff531964233b14 100644
--- a/matlab/cellofchararraymaxlength.m
+++ b/matlab/cellofchararraymaxlength.m
@@ -15,7 +15,7 @@ function n = cellofchararraymaxlength(c)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~all(cellfun(@ischar, c))
     error('Input has to be a cell of char arrays!')
diff --git a/matlab/check.m b/matlab/check.m
index fba5bb8cd4f970e985957d57f8c5efae0f7cc897..6b5d2388964958e0e76e8111808bb431548108e6 100644
--- a/matlab/check.m
+++ b/matlab/check.m
@@ -27,7 +27,7 @@ function [eigenvalues_,result,info] = check(M, options, oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if ~options.initval_file && M.exo_nbr > 1
diff --git a/matlab/check_bounds_and_definiteness_estimation.m b/matlab/check_bounds_and_definiteness_estimation.m
index f93598c9f39d904f831508ecafe3b5574098cf34..59e504d775c63ce5d05f17d36173ce8334989918 100644
--- a/matlab/check_bounds_and_definiteness_estimation.m
+++ b/matlab/check_bounds_and_definiteness_estimation.m
@@ -30,7 +30,7 @@ function [fval,info,exit_flag,Q,H]=check_bounds_and_definiteness_estimation(xpar
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fval        = [];
 exit_flag   = 1;
diff --git a/matlab/check_consistency_covariances.m b/matlab/check_consistency_covariances.m
index 6cc9ada4a11027d226271d3c5972681a460d97c1..8248c39862b836e3308466f291ca3fede13e4ac5 100644
--- a/matlab/check_consistency_covariances.m
+++ b/matlab/check_consistency_covariances.m
@@ -21,7 +21,7 @@ function correct_flag=check_consistency_covariances(Covariance_matrix)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %compute theoretical bound by assuming correlation of 1
 bound=diag(sqrt(diag(Covariance_matrix)))*ones(size(Covariance_matrix))*diag(sqrt(diag(Covariance_matrix)));
diff --git a/matlab/check_dsge_var_model.m b/matlab/check_dsge_var_model.m
index fb06d42eeced3663284f34924ba46ec49b5aa6e7..cbf59b49311ca9aadf81513232a6e429a42b1229 100644
--- a/matlab/check_dsge_var_model.m
+++ b/matlab/check_dsge_var_model.m
@@ -17,7 +17,7 @@ function check_dsge_var_model(Model, EstimatedParameters, BayesInfo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if EstimatedParameters.nvn
     error('Estimation::DsgeVarLikelihood: Measurement errors are not allowed!')
diff --git a/matlab/check_for_calibrated_covariances.m b/matlab/check_for_calibrated_covariances.m
index 7bf00e6a4f5df2aa47cc7cc9e1a5dc96aae6cb84..8cefe9abbd32cc533c804c9e168a9a3a4fb84bae 100644
--- a/matlab/check_for_calibrated_covariances.m
+++ b/matlab/check_for_calibrated_covariances.m
@@ -27,7 +27,7 @@ function estim_params=check_for_calibrated_covariances(xparam1,estim_params,M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 Sigma_e_calibrated=M.Sigma_e;
 H_calibrated=M.H;
 %check covariance for structural errors
diff --git a/matlab/check_list_of_variables.m b/matlab/check_list_of_variables.m
index f13182c855f9290d68b0e04e9b11cd488427be38..d5f4b449b205e5c05aaf005f66368d3c942dd3a5 100644
--- a/matlab/check_list_of_variables.m
+++ b/matlab/check_list_of_variables.m
@@ -29,7 +29,7 @@ function varlist = check_list_of_variables(options_, M_, varlist)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get uniques
 [~, ~, index_uniques] = varlist_indices(varlist, M_.endo_names);
diff --git a/matlab/check_matlab_path.m b/matlab/check_matlab_path.m
index 58a0babc17faa9beacecb45225a4bdb28459da60..f07e77129fd5f4e766d6b5c2627aef007d105ddf 100644
--- a/matlab/check_matlab_path.m
+++ b/matlab/check_matlab_path.m
@@ -15,7 +15,7 @@ function check_matlab_path(change_path_flag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~nargin || isempty(change_path_flag)
     change_path_flag = true;
diff --git a/matlab/check_model.m b/matlab/check_model.m
index 1abc89db10fc36ea014159f34df1ae59c00cd02c..6e9439157ffed071bd4394358fa951857f57e194 100644
--- a/matlab/check_model.m
+++ b/matlab/check_model.m
@@ -15,7 +15,7 @@ function check_model(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 xlen = DynareModel.maximum_exo_lag+DynareModel.maximum_exo_lead + 1;
 if ~ DynareModel.lead_lag_incidence(DynareModel.maximum_lag+1,:) > 0
diff --git a/matlab/check_name.m b/matlab/check_name.m
index 11b5f5d4328a41b9088d1f45d81570ef6031a999..c14fe1594233a26312c041f3a6b49634c1d8a38e 100644
--- a/matlab/check_name.m
+++ b/matlab/check_name.m
@@ -15,6 +15,6 @@ function n = check_name(vartan,varname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n = strmatch(varname,vartan,'exact');
\ No newline at end of file
diff --git a/matlab/check_posterior_analysis_data.m b/matlab/check_posterior_analysis_data.m
index 38d10aaaeccd9453d4670a1960fdbf03483a7b23..ccbba78b9698b5ca82847ca9d1ef2309c983889f 100644
--- a/matlab/check_posterior_analysis_data.m
+++ b/matlab/check_posterior_analysis_data.m
@@ -32,7 +32,7 @@ function [info,description] = check_posterior_analysis_data(type,M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 if nargout>1
diff --git a/matlab/check_posterior_sampler_options.m b/matlab/check_posterior_sampler_options.m
index ceb6c6337cc4e19f9d67c7627a2dc3d401764594..0cfff350d2dd38501df1bc8a4915807d67ae5128 100644
--- a/matlab/check_posterior_sampler_options.m
+++ b/matlab/check_posterior_sampler_options.m
@@ -28,7 +28,7 @@ function [posterior_sampler_options, options_] = check_posterior_sampler_options
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 init=0;
diff --git a/matlab/check_prior_analysis_data.m b/matlab/check_prior_analysis_data.m
index e0570cc682b7624f471f7ca0ea3a4f4440a38039..8a36d480919e7bfc38a971a08359b94e34f417d5 100644
--- a/matlab/check_prior_analysis_data.m
+++ b/matlab/check_prior_analysis_data.m
@@ -33,7 +33,7 @@ function [info,description] = check_prior_analysis_data(type,M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 if nargout>1
diff --git a/matlab/check_prior_bounds.m b/matlab/check_prior_bounds.m
index 9c982ff4d2322faed5bcaeff806c26b257a6271e..b458149b37066be8095ec1196afa815da6206298 100644
--- a/matlab/check_prior_bounds.m
+++ b/matlab/check_prior_bounds.m
@@ -25,7 +25,7 @@ function check_prior_bounds(xparam1,bounds,M_,estim_params_,options_,bayestopt_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 outside_bound_pars=find(xparam1 < bounds.lb | xparam1 > bounds.ub);
 if ~isempty(outside_bound_pars)
diff --git a/matlab/cherrypick.m b/matlab/cherrypick.m
index 48f89098b320065d09192e5e9168c3acc1bdebda..85bfe6af4e01de4f3b182c7e617c732b69b50c71 100644
--- a/matlab/cherrypick.m
+++ b/matlab/cherrypick.m
@@ -32,7 +32,7 @@ function json = cherrypick(infile, outfold, eqtags, noresids, json)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/chol_SE.m b/matlab/chol_SE.m
index 48b70edf4ff7ddad0f9a9d2807d48cb5211e12aa..9c35138091609f2a23ceaa824202c4010d0b7a18 100644
--- a/matlab/chol_SE.m
+++ b/matlab/chol_SE.m
@@ -68,7 +68,7 @@ function [R,indef, E, P]=chol_SE(A,pivoting)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if sum(sum(abs(A-A'))) > 0
     error('A is not symmetric')
diff --git a/matlab/clear_persistent_variables.m b/matlab/clear_persistent_variables.m
index 1efa2263fea2a060f621777b26cf9830a837923b..260059ca5b9f894551723882f3bdd1f1f7138e23 100644
--- a/matlab/clear_persistent_variables.m
+++ b/matlab/clear_persistent_variables.m
@@ -17,7 +17,7 @@ function clear_persistent_variables(folder, writelistofroutinestobecleared)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if nargin<2
diff --git a/matlab/cli/estimate.m b/matlab/cli/estimate.m
index e94aa549beca8a6dbe21b2a0c1c7c5daca5e499c..8c16f4daacd2effb72e824446465c4d100f75669 100644
--- a/matlab/cli/estimate.m
+++ b/matlab/cli/estimate.m
@@ -15,7 +15,7 @@ function estimate(method, data, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global M_
 
 % Check first input.
diff --git a/matlab/cli/prior.m b/matlab/cli/prior.m
index 2ecaa331003a56496a96bc44d2c9d8c5be30600f..95401ba34e11e0df888577fadb4825487fc8d878 100644
--- a/matlab/cli/prior.m
+++ b/matlab/cli/prior.m
@@ -26,7 +26,7 @@ function varargout = prior(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(varargin) || ( isequal(length(varargin), 1) && isequal(varargin{1},'help'))
     skipline()
diff --git a/matlab/collect_latex_files.m b/matlab/collect_latex_files.m
index 0b9f284078c266c6d2814c3bed7695dca63840d5..10d0af0d7cda4426b1a21e947fb9f2ff9458f574 100644
--- a/matlab/collect_latex_files.m
+++ b/matlab/collect_latex_files.m
@@ -23,7 +23,7 @@ function collect_latex_files
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 %% Write header
diff --git a/matlab/commutation.m b/matlab/commutation.m
index a87017e9bc07fcf8f474613ff20973b2ef23195d..f674938b6da04f25ba1c6f4f52df3ea83b5e04e6 100644
--- a/matlab/commutation.m
+++ b/matlab/commutation.m
@@ -36,7 +36,7 @@ function k = commutation(n, m, sparseflag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 % Original author: Thomas P Minka (tpminka@media.mit.edu), April 22, 2013
 
diff --git a/matlab/compute_Pinf_Pstar.m b/matlab/compute_Pinf_Pstar.m
index 6e2113f5c6fbcd491ca3eafe22ee598fd981617b..4d6d2070e651ba964b5710d2f0ad0045b6b1969d 100644
--- a/matlab/compute_Pinf_Pstar.m
+++ b/matlab/compute_Pinf_Pstar.m
@@ -45,7 +45,7 @@ function [Pstar,Pinf] = compute_Pinf_Pstar(mf,T,R,Q,qz_criterium, restrict_colum
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 np = size(T,1);
 if nargin == 6
diff --git a/matlab/compute_decision_rules.m b/matlab/compute_decision_rules.m
index 372a7fa1813c5a4b73a9c629f4a38f3f2028cadc..4e7d86be9fa34d1a044e9368597c22f7e305ddf1 100644
--- a/matlab/compute_decision_rules.m
+++ b/matlab/compute_decision_rules.m
@@ -27,7 +27,7 @@ function [dr,info,M_,options_,oo_] =compute_decision_rules(M_,options_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if options_.discretionary_policy
     [dr,info,M_,options_,oo_] = discretionary_policy_1(options_.instruments,M_,options_,oo_);
diff --git a/matlab/compute_mh_covariance_matrix.m b/matlab/compute_mh_covariance_matrix.m
index d7885c7f99ad3e5c0fd26855986185384ca292ba..ffd0b218e350ad200cf769f24856bbbb4572186d 100644
--- a/matlab/compute_mh_covariance_matrix.m
+++ b/matlab/compute_mh_covariance_matrix.m
@@ -30,7 +30,7 @@ function [posterior_mean,posterior_covariance,posterior_mode,posterior_kernel_at
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ estim_params_ bayestopt_
 
diff --git a/matlab/compute_model_moments.m b/matlab/compute_model_moments.m
index 50c1d00727d16cf5b0ffe1dea0c8ce989c177fed..afc2452c85590fb156e4c3aff061ddbc5335e1f7 100644
--- a/matlab/compute_model_moments.m
+++ b/matlab/compute_model_moments.m
@@ -26,7 +26,7 @@ function moments=compute_model_moments(dr,M_,options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [ivar,vartan,options_] = get_variables_list(options_,M_);
 moments = th_autocovariances(dr,ivar,M_,options_,options_.nodecomposition);
diff --git a/matlab/compute_moments_varendo.m b/matlab/compute_moments_varendo.m
index 80ec3d79d14c3a8f4dbb92967b8b0c43e55170b0..edb9ab7cebfd3ae713df4b63916b7da3e50bfd7b 100644
--- a/matlab/compute_moments_varendo.m
+++ b/matlab/compute_moments_varendo.m
@@ -32,7 +32,7 @@ function oo_ = compute_moments_varendo(type, options_, M_, oo_, var_list_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 fprintf('Estimation::compute_moments_varendo: I''m computing endogenous moments (this may take a while)... \n');
diff --git a/matlab/compute_overall_acceptance_ratio.m b/matlab/compute_overall_acceptance_ratio.m
index 90db1d37445ba91a5991d75438879e6142de7c76..12c83855e5b8a9a9c8162e2ad70c2d0ec24b09a8 100644
--- a/matlab/compute_overall_acceptance_ratio.m
+++ b/matlab/compute_overall_acceptance_ratio.m
@@ -15,7 +15,7 @@ function overallacceptanceratio = compute_overall_acceptance_ratio(MetropolisFol
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 BaseName = [MetropolisFolder filesep ModelName];
 mh_history_files = dir([BaseName '_mh_history_*.mat']);
diff --git a/matlab/compute_trend_coefficients.m b/matlab/compute_trend_coefficients.m
index d9bd3441a80a87e5294ccf172a2fa6e36454b220..edcf4deb8ec9c7bce1e4755a10d38a2ccad31ca0 100644
--- a/matlab/compute_trend_coefficients.m
+++ b/matlab/compute_trend_coefficients.m
@@ -33,7 +33,7 @@ function [trend_addition, trend_coeff]=compute_trend_coefficients(M_,DynareOptio
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 trend_coeff = zeros(nvarobs,1);
diff --git a/matlab/conditional_variance_decomposition.m b/matlab/conditional_variance_decomposition.m
index 83020a736d0f31800534c2d90455f350cbf3c42e..8780d249205debd99ff916541c84195bb0970424 100644
--- a/matlab/conditional_variance_decomposition.m
+++ b/matlab/conditional_variance_decomposition.m
@@ -32,7 +32,7 @@ function [ConditionalVarianceDecomposition, ConditionalVarianceDecomposition_ME]
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if any(Steps <= 0)
     error(['Conditional variance decomposition: All periods must be strictly ' ...
diff --git a/matlab/conditional_variance_decomposition_ME_mc_analysis.m b/matlab/conditional_variance_decomposition_ME_mc_analysis.m
index f0e835011b5fdf6ff75a2848a8a1668eaa7224e4..ffeefabd482e71d3099164640b89325efb33d103 100644
--- a/matlab/conditional_variance_decomposition_ME_mc_analysis.m
+++ b/matlab/conditional_variance_decomposition_ME_mc_analysis.m
@@ -37,7 +37,7 @@ function oo_ = ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if strcmpi(type,'posterior')
     TYPE = 'Posterior';
diff --git a/matlab/conditional_variance_decomposition_mc_analysis.m b/matlab/conditional_variance_decomposition_mc_analysis.m
index 556e8ca765ee0083f0b52014afc1ee7dabd88af7..84ab73cc2cfa5cc83e04bc0fde2fb93eef82a076 100644
--- a/matlab/conditional_variance_decomposition_mc_analysis.m
+++ b/matlab/conditional_variance_decomposition_mc_analysis.m
@@ -38,7 +38,7 @@ function oo_ = ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if strcmpi(type,'posterior')
     TYPE = 'Posterior';
diff --git a/matlab/convergence_diagnostics/McMCDiagnostics.m b/matlab/convergence_diagnostics/McMCDiagnostics.m
index 69d368291273c46831bc056d4039df33f8de7e9b..735ae9b95aa09901b22e5aa8557454f375caeda8 100644
--- a/matlab/convergence_diagnostics/McMCDiagnostics.m
+++ b/matlab/convergence_diagnostics/McMCDiagnostics.m
@@ -31,7 +31,7 @@ function oo_ = McMCDiagnostics(options_, estim_params_, M_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 OutputFolder = CheckPath('Output',M_.dname);
 MetropolisFolder = CheckPath('metropolis',M_.dname);
diff --git a/matlab/convergence_diagnostics/McMCDiagnostics_core.m b/matlab/convergence_diagnostics/McMCDiagnostics_core.m
index 283e6ada1079a3f86f86d11ad9c5338bc336fd43..ed636aaf6a5690cb830111680829b5f844fb82a8 100644
--- a/matlab/convergence_diagnostics/McMCDiagnostics_core.m
+++ b/matlab/convergence_diagnostics/McMCDiagnostics_core.m
@@ -48,7 +48,7 @@ function myoutput = McMCDiagnostics_core(myinputs,fpar,npar,whoiam, ThisMatlab)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     whoiam=0;
diff --git a/matlab/convergence_diagnostics/geweke_chi2_test.m b/matlab/convergence_diagnostics/geweke_chi2_test.m
index 8acf673993479e8e99880ba71c0eeca12f48d076..80a1895662350b16a31103ebc229fc1e9c426aff 100644
--- a/matlab/convergence_diagnostics/geweke_chi2_test.m
+++ b/matlab/convergence_diagnostics/geweke_chi2_test.m
@@ -41,7 +41,7 @@ function results_struct = geweke_chi2_test(results1,results2,results_struct,opti
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 %
 % ------------------------------------------------
 % REFERENCES: Geweke (1992), `Evaluating the accuracy of sampling-based
diff --git a/matlab/convergence_diagnostics/geweke_moments.m b/matlab/convergence_diagnostics/geweke_moments.m
index 51f894eddae238dc703bec3b04dcea087fd656c5..6a513a63a05e1e927dd5162fc0865038eb695edb 100644
--- a/matlab/convergence_diagnostics/geweke_moments.m
+++ b/matlab/convergence_diagnostics/geweke_moments.m
@@ -37,7 +37,7 @@ function [results_vec, results_struct] = geweke_moments(draws,Dynareoptions)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % REFERENCES: Geweke (1992), `Evaluating the accuracy of sampling-based
 % approaches to the calculation of posterior moments', in J.O. Berger,
diff --git a/matlab/convergence_diagnostics/mcmc_ifac.m b/matlab/convergence_diagnostics/mcmc_ifac.m
index 32b72bcee478d68b5b66ea6d27342a369e7995da..9620b6680f6b051ca91c34ec797a62d69a576f6b 100644
--- a/matlab/convergence_diagnostics/mcmc_ifac.m
+++ b/matlab/convergence_diagnostics/mcmc_ifac.m
@@ -51,7 +51,7 @@ function Ifac = mcmc_ifac(X, Nc)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 Nc = floor(min(Nc, length(X)/2));
 if mod(Nc,2)
diff --git a/matlab/convergence_diagnostics/raftery_lewis.m b/matlab/convergence_diagnostics/raftery_lewis.m
index 798e102db1ec997c4f943be61559681282610334..fd3935126db577ddc9181e1c15fa863aff4d16a6 100644
--- a/matlab/convergence_diagnostics/raftery_lewis.m
+++ b/matlab/convergence_diagnostics/raftery_lewis.m
@@ -61,7 +61,7 @@ function  [raftery_lewis] = raftery_lewis(runs,q,r,s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/convertAimCodeToInfo.m b/matlab/convertAimCodeToInfo.m
index 2320c7f6521dee995ce72e67c2509558fe6d4a54..4782e66560703baaf20529ebaeef99f63186625c 100644
--- a/matlab/convertAimCodeToInfo.m
+++ b/matlab/convertAimCodeToInfo.m
@@ -34,7 +34,7 @@ function [info] = convertAimCodeToInfo(aimCode)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 switch aimCode
   case 1
diff --git a/matlab/convertjsondecode.m b/matlab/convertjsondecode.m
index deff8cf6a9926e35d19addf466c4487999cd2728..e388f3d30b8b57e236c807534ca5a705da4c13a7 100644
--- a/matlab/convertjsondecode.m
+++ b/matlab/convertjsondecode.m
@@ -29,7 +29,7 @@ function o = convertjsondecode(o)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fnames = fieldnames(o);
 
diff --git a/matlab/correlation_mc_analysis.m b/matlab/correlation_mc_analysis.m
index 7b3d63848a162b9f21bedf92333141cfe32444ee..09b008902f7587b8aafce8c5ba2c090b97f006ab 100644
--- a/matlab/correlation_mc_analysis.m
+++ b/matlab/correlation_mc_analysis.m
@@ -17,7 +17,7 @@ function oo_ = correlation_mc_analysis(SampleSize,type,dname,fname,vartan,nvar,v
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if strcmpi(type,'posterior')
     TYPE = 'Posterior';
diff --git a/matlab/cosn.m b/matlab/cosn.m
index 9e239160af2a0f49da311635f452e220899705cc..3fd8d52e7a7d70ff06d7fccaac4e04f4d6db5458 100644
--- a/matlab/cosn.m
+++ b/matlab/cosn.m
@@ -35,7 +35,7 @@ function [co, b, yhat] = cosn(H)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 y = H(:,1);
diff --git a/matlab/covariance_mc_analysis.m b/matlab/covariance_mc_analysis.m
index ebf3602a224819d6c9de8886b6486ec30bdbef32..fe82ed82c5e474c89fc95b48f55b1ea31d716a3d 100644
--- a/matlab/covariance_mc_analysis.m
+++ b/matlab/covariance_mc_analysis.m
@@ -34,7 +34,7 @@ function oo_ = covariance_mc_analysis(NumberOfSimulations,type,dname,fname,varta
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if strcmpi(type,'posterior')
     TYPE = 'Posterior';
diff --git a/matlab/csolve.m b/matlab/csolve.m
index e45a4b2ff82cd70f8bdaf862943778f635257551..8fae3556a0cb4e16fee9e17a8cccd7124faf972a 100644
--- a/matlab/csolve.m
+++ b/matlab/csolve.m
@@ -37,7 +37,7 @@ function [x,rc] = csolve(FUN,x,gradfun,crit,itmax,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %---------- delta --------------------
 % differencing interval for numerical gradient
diff --git a/matlab/cubature_with_gaussian_weight.m b/matlab/cubature_with_gaussian_weight.m
index 75f129ccdccf720fcd3bc9b4bda5f73652ecc145..53906ff29a2db3514a7351800369d7a97a3eb796 100644
--- a/matlab/cubature_with_gaussian_weight.m
+++ b/matlab/cubature_with_gaussian_weight.m
@@ -32,7 +32,7 @@ function [nodes, weights] = cubature_with_gaussian_weight(d,n,method)  % --*-- U
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set default.
 if nargin<3 || isempty(method)
diff --git a/matlab/cycle_reduction.m b/matlab/cycle_reduction.m
index be8fdb3e8fd78b063e77a84993d8aee75cd3c036..453a9508348bef1debe3c0feaa2c461616bb32d3 100644
--- a/matlab/cycle_reduction.m
+++ b/matlab/cycle_reduction.m
@@ -58,7 +58,7 @@ function [X, info] = cycle_reduction(A0, A1, A2, cvg_tol, ch) % --*-- Unitary te
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 max_it = 300;
 it = 0;
diff --git a/matlab/datatomfile.m b/matlab/datatomfile.m
index 3b50ab6b5040a96b0bc84a95dde67f9917713050..4886bf67e567c5dc194f9010058a49c9c6e31576 100644
--- a/matlab/datatomfile.m
+++ b/matlab/datatomfile.m
@@ -32,7 +32,7 @@ function datatomfile (s, var_list, names)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/dcompare.m b/matlab/dcompare.m
index d50541f121845620c4914398dc249e29bf9a8afb..260fb1b796383bae46c4a25f72f2259066c6d04a 100644
--- a/matlab/dcompare.m
+++ b/matlab/dcompare.m
@@ -15,7 +15,7 @@ function dcompare(s1)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ nvx nvy x y lag1
 
diff --git a/matlab/default_option_values.m b/matlab/default_option_values.m
index 195622de220271248ca8f03c77de4b4f4a994f71..3e60e5c99b4df102cce116c5789f92e27ea4b08c 100644
--- a/matlab/default_option_values.m
+++ b/matlab/default_option_values.m
@@ -27,7 +27,7 @@ function options_ = default_option_values(M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options_.datafile = '';
 options_.dirname = M_.fname;
diff --git a/matlab/delete_mh_history_files.m b/matlab/delete_mh_history_files.m
index 084f3e783da60f0c4a7fac3f75218bcc20c31f70..89f2cd96d983b616e187ab5d9456c04c9dcf269e 100644
--- a/matlab/delete_mh_history_files.m
+++ b/matlab/delete_mh_history_files.m
@@ -15,7 +15,7 @@ function info = delete_mh_history_files(MetropolisFolder, ModelName)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 BaseName = [MetropolisFolder filesep ModelName];
 
diff --git a/matlab/discretionary_policy/discretionary_policy.m b/matlab/discretionary_policy/discretionary_policy.m
index 4c918263a13e67f2335d09497e28ee3f4035694d..f05e3ef0bbb0ada51cd5bc6e1aab6f19522647d1 100644
--- a/matlab/discretionary_policy/discretionary_policy.m
+++ b/matlab/discretionary_policy/discretionary_policy.m
@@ -27,7 +27,7 @@ function [info, oo_, options_, M_] = discretionary_policy(M_, options_, oo_, var
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 M_=discretionary_policy_initialization(M_,options_);
 
diff --git a/matlab/discretionary_policy/discretionary_policy_1.m b/matlab/discretionary_policy/discretionary_policy_1.m
index c9424b57d6a0370e08b4e0042138a9f81b867c3d..fbecac43cdc6304c06170868f0522561f4449976 100644
--- a/matlab/discretionary_policy/discretionary_policy_1.m
+++ b/matlab/discretionary_policy/discretionary_policy_1.m
@@ -28,7 +28,7 @@ function [dr, info, M_, options_, oo_]=discretionary_policy_1(Instruments, M_, o
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent Hold
 
diff --git a/matlab/discretionary_policy/discretionary_policy_engine.m b/matlab/discretionary_policy/discretionary_policy_engine.m
index ba12347b8d2bfc924d5181221eabce49208dd395..fcd98174560977aabe035c117e740876cc6d5add 100644
--- a/matlab/discretionary_policy/discretionary_policy_engine.m
+++ b/matlab/discretionary_policy/discretionary_policy_engine.m
@@ -63,7 +63,7 @@ function [H,G,retcode]=discretionary_policy_engine(AAlag,AA0,AAlead,BB,bigw,inst
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<12
     verbose=0;
diff --git a/matlab/discretionary_policy/discretionary_policy_initialization.m b/matlab/discretionary_policy/discretionary_policy_initialization.m
index 2c417f44087f7cccff080b984ae7f321853ab4b0..197b3bd318cd2bdffd4ed7ceb5b61649957fe8eb 100644
--- a/matlab/discretionary_policy/discretionary_policy_initialization.m
+++ b/matlab/discretionary_policy/discretionary_policy_initialization.m
@@ -22,7 +22,7 @@ function M_=discretionary_policy_initialization(M_,options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if options_.loglinear
diff --git a/matlab/disp_dr.m b/matlab/disp_dr.m
index 13c42166bda78a8f9cb628f24da3ff5f1414f731..3cc0dd53c8f806e710c9cca1a1b137d8c00311ab 100644
--- a/matlab/disp_dr.m
+++ b/matlab/disp_dr.m
@@ -25,7 +25,7 @@ function disp_dr(dr,order,var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/disp_identification.m b/matlab/disp_identification.m
index cb51885c1c2aef1d1b346ac032cf2ca5470ce5c5..25cbb114e797a878d2546faf43401fd4e0d974cd 100644
--- a/matlab/disp_identification.m
+++ b/matlab/disp_identification.m
@@ -39,7 +39,7 @@ function disp_identification(pdraws, ide_reducedform, ide_moments, ide_spectrum,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 [SampleSize, totparam_nbr] = size(pdraws);
 no_identification_reducedform      = options_ident.no_identification_reducedform;
diff --git a/matlab/disp_model_summary.m b/matlab/disp_model_summary.m
index 6b0aefac0c36be309ae9f0cdc57b0aeecfb24ab5..307f7909bba1a94e284ce5cd5367f52062d9b888 100644
--- a/matlab/disp_model_summary.m
+++ b/matlab/disp_model_summary.m
@@ -23,7 +23,7 @@ function disp_model_summary(M,dr,options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 skipline()
 disp('MODEL SUMMARY')
diff --git a/matlab/disp_moments.m b/matlab/disp_moments.m
index f3a86a57b4268ea0884da5ad89969ed8da62cf13..62243f4c4a28ace76f661e15716def51b9dd1439 100644
--- a/matlab/disp_moments.m
+++ b/matlab/disp_moments.m
@@ -26,7 +26,7 @@ function oo_=disp_moments(y,var_list,M_,options_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 warning_old_state = warning;
 warning off
diff --git a/matlab/disp_steady_state.m b/matlab/disp_steady_state.m
index 027f23ec723a23b9e53c7777ee5756c6f73f629b..4440c1abffa34f14eef926d2a48fa3a828848125 100644
--- a/matlab/disp_steady_state.m
+++ b/matlab/disp_steady_state.m
@@ -28,7 +28,7 @@ function disp_steady_state(M,oo,options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 skipline()
 if options.loglinear
diff --git a/matlab/disp_th_moments.m b/matlab/disp_th_moments.m
index 87d51522d97a63ad1188b07ab29ba8df023734b3..14531c06f13890a87769784ebcc411ce58c761db 100644
--- a/matlab/disp_th_moments.m
+++ b/matlab/disp_th_moments.m
@@ -17,7 +17,7 @@ function oo_ = disp_th_moments(dr, var_list, M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nodecomposition = options_.nodecomposition;
 if options_.one_sided_hp_filter
diff --git a/matlab/disp_th_moments_pruned_state_space.m b/matlab/disp_th_moments_pruned_state_space.m
index 0ff5d6f36438a664937007cd8af13eb66b40e2c3..fb6459d82906d253e0afa3fea6ca518e2de54f82 100644
--- a/matlab/disp_th_moments_pruned_state_space.m
+++ b/matlab/disp_th_moments_pruned_state_space.m
@@ -35,7 +35,7 @@ function oo_=disp_th_moments_pruned_state_space(dr,M_,options_,i_var,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if options_.one_sided_hp_filter || options_.hp_filter || options_.bandpass.indicator
diff --git a/matlab/display_conditional_variance_decomposition.m b/matlab/display_conditional_variance_decomposition.m
index 211e31fdd49afe3d08dcb096a1befa2466a204fb..4f44ca37034dfc7cb5ead166b3d66c3eb13e62b6 100644
--- a/matlab/display_conditional_variance_decomposition.m
+++ b/matlab/display_conditional_variance_decomposition.m
@@ -28,7 +28,7 @@ function display_conditional_variance_decomposition(conditional_decomposition_ar
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if size(conditional_decomposition_array,3)==M_.exo_nbr %no ME input
     shock_number=M_.exo_nbr;
diff --git a/matlab/display_estimation_results_table.m b/matlab/display_estimation_results_table.m
index ce09a37130615d6c46431e366e930ffe945e0c41..f52cf6b63e48f79bb2bdf5806f042d9f619d6256 100644
--- a/matlab/display_estimation_results_table.m
+++ b/matlab/display_estimation_results_table.m
@@ -35,7 +35,7 @@ function oo_=display_estimation_results_table(xparam1,stdh,M_,options_,estim_par
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvx = estim_params_.nvx;  % Variance of the structural innovations (number of parameters).
 nvn = estim_params_.nvn;  % Variance of the measurement innovations (number of parameters).
diff --git a/matlab/display_problematic_vars_Jacobian.m b/matlab/display_problematic_vars_Jacobian.m
index 7d828885ac5cf1768628f77f2653891892953ef9..53a6edc35c5bcad1bd613ae3669a21a10303ce67 100644
--- a/matlab/display_problematic_vars_Jacobian.m
+++ b/matlab/display_problematic_vars_Jacobian.m
@@ -31,7 +31,7 @@ function []=display_problematic_vars_Jacobian(problemrow,problemcol,M_,x,type,ca
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 skipline();
 if nargin<6
diff --git a/matlab/distributions/beta_specification.m b/matlab/distributions/beta_specification.m
index df804812cac713ee0c19afdec51ed57dc623462f..f1512067c22b2475a816d16281666b28a066b4c4 100644
--- a/matlab/distributions/beta_specification.m
+++ b/matlab/distributions/beta_specification.m
@@ -27,7 +27,7 @@ function [a, b] = beta_specification(mu, sigma2, lb, ub, name)   % --*-- Unitary
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     lb = 0;
diff --git a/matlab/distributions/compute_prior_mode.m b/matlab/distributions/compute_prior_mode.m
index 86c20dae8147b07e9764cf29b5061f7b42e3c822..228cbf14d0f0fc6a53b76aa0216b2b5d91371b5a 100644
--- a/matlab/distributions/compute_prior_mode.m
+++ b/matlab/distributions/compute_prior_mode.m
@@ -38,7 +38,7 @@ function m = compute_prior_mode(hyperparameters,shape) % --*-- Unitary tests --*
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 m = NaN ;
 switch shape
diff --git a/matlab/distributions/gamma_specification.m b/matlab/distributions/gamma_specification.m
index c78713407b9924e0c271dcea5aa0ed7106104734..5bc7358725bc042d35d8d3f4446c0f94761b7c94 100644
--- a/matlab/distributions/gamma_specification.m
+++ b/matlab/distributions/gamma_specification.m
@@ -27,7 +27,7 @@ function [a, b] = gamma_specification(mu, sigma2, lb, name)   % --*-- Unitary te
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     lb = 0;
diff --git a/matlab/distributions/ig1fun.m b/matlab/distributions/ig1fun.m
index 684ef30824c1ab8a0cd3914014c910732e0f2fd0..c4c9023a29ebf97baa17e9ac287ec0b9a288f588 100644
--- a/matlab/distributions/ig1fun.m
+++ b/matlab/distributions/ig1fun.m
@@ -14,6 +14,6 @@ function err = ig1fun(nu,mu2,sigma2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 err = log(2*mu2) - log((sigma2+mu2)*(nu-2)) + 2*( gammaln(nu/2)-gammaln((nu-1)/2) );
diff --git a/matlab/distributions/inverse_gamma_specification.m b/matlab/distributions/inverse_gamma_specification.m
index a5b0a0a2c58926d453d9c7e5af7f96bc6aa99013..533484557271f872978d5bd4284b9440824c6854 100644
--- a/matlab/distributions/inverse_gamma_specification.m
+++ b/matlab/distributions/inverse_gamma_specification.m
@@ -36,7 +36,7 @@ function [s,nu] = inverse_gamma_specification(mu, sigma2, lb, type, use_fzero_fl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     error('At least four input arguments are required!')
diff --git a/matlab/distributions/lpdfgweibull.m b/matlab/distributions/lpdfgweibull.m
index 5d31e23802079b0381d0fff0836106dfee8f1666..d0fc42c1091fd99ab559e2131c62ca08cf09e713 100644
--- a/matlab/distributions/lpdfgweibull.m
+++ b/matlab/distributions/lpdfgweibull.m
@@ -31,7 +31,7 @@ function [ldens,Dldens,D2ldens] = lpdfgweibull(x,a,b,c)  % --*-- Unitary tests -
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Initialize output arguments
 ldens   = -Inf(size(x));
diff --git a/matlab/distributions/mode_and_variance_to_mean.m b/matlab/distributions/mode_and_variance_to_mean.m
index 8611955b0c0ab51237cc14f27d40fbb47c4f549c..758ffb2ba35042805551cc377ddb1f0de527e615 100644
--- a/matlab/distributions/mode_and_variance_to_mean.m
+++ b/matlab/distributions/mode_and_variance_to_mean.m
@@ -32,7 +32,7 @@ function [mu, parameters] = mode_and_variance_to_mean(m,s2,distribution,lower_bo
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Check input aruments.
 if ~(nargin==3 || nargin==5 || nargin==4 )
diff --git a/matlab/distributions/multivariate_normal_pdf.m b/matlab/distributions/multivariate_normal_pdf.m
index 55bae7283a3765857c4087056ccdaf7ad640b363..75ab1145e25dbe9afa0719338dd267852431d84c 100644
--- a/matlab/distributions/multivariate_normal_pdf.m
+++ b/matlab/distributions/multivariate_normal_pdf.m
@@ -30,7 +30,7 @@ function density = multivariate_normal_pdf(X,Mean,Sigma_upper_chol,n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 density = (2*pi)^(-.5*n) * ...
           prod(diag(Sigma_upper_chol))^(-1) * ...
           exp(-.5*(X-Mean)*(Sigma_upper_chol\(transpose(Sigma_upper_chol)\transpose(X-Mean))));
\ No newline at end of file
diff --git a/matlab/distributions/multivariate_student_pdf.m b/matlab/distributions/multivariate_student_pdf.m
index 1465d4402429ffce0ffa5daa00143e57f5735faf..6dbd142cb2a2536f711100c7d3716354ca9f051f 100644
--- a/matlab/distributions/multivariate_student_pdf.m
+++ b/matlab/distributions/multivariate_student_pdf.m
@@ -29,7 +29,7 @@ function density = multivariate_student_pdf(X,Mean,Sigma_upper_chol,df)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 nn = length(X);
 t1 = gamma( .5*(nn+df) ) / ( gamma( .5*nn ) * (df*pi)^(.5*nn) ) ;
 t2 = t1 / prod(diag(Sigma_upper_chol)) ;
diff --git a/matlab/distributions/prior_dist_names.m b/matlab/distributions/prior_dist_names.m
index 4d959579fa7773ab90908f9a05affdfb930ca5d5..8d817660f6a270f8d6dfd48f6c9cc48572ef897b 100644
--- a/matlab/distributions/prior_dist_names.m
+++ b/matlab/distributions/prior_dist_names.m
@@ -16,6 +16,6 @@ function pnames=prior_dist_names
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 pnames={''; 'beta'; 'gamm'; 'norm'; 'invg'; 'unif'; 'invg2'; ''; 'weibl'};
\ No newline at end of file
diff --git a/matlab/distributions/rand_inverse_wishart.m b/matlab/distributions/rand_inverse_wishart.m
index 4f3675e3c97f8187954274f25732972bc476e9cd..527442ae2d3f2a3c8c8292f913f22f9427faa501 100644
--- a/matlab/distributions/rand_inverse_wishart.m
+++ b/matlab/distributions/rand_inverse_wishart.m
@@ -39,7 +39,7 @@ function G = rand_inverse_wishart(m, v, H_inv_upper_chol)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 X = randn(v, m) * H_inv_upper_chol;
 
diff --git a/matlab/distributions/rand_matrix_normal.m b/matlab/distributions/rand_matrix_normal.m
index 0de2faf0892f8195628a0b6e55a44856c7d157aa..04c2c4dacd3074422e08948184f6304576466a06 100644
--- a/matlab/distributions/rand_matrix_normal.m
+++ b/matlab/distributions/rand_matrix_normal.m
@@ -35,7 +35,7 @@ function B = rand_matrix_normal(n, p, M, Omega_lower_chol, Sigma_lower_chol)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 B1 = randn(n * p, 1);
 B2 = kron(Omega_lower_chol, Sigma_lower_chol) * B1;
diff --git a/matlab/distributions/rand_multivariate_normal.m b/matlab/distributions/rand_multivariate_normal.m
index d74d74b7be5b5c7b5634519217b43468a7c8e721..4aa626fe91820bbd32cb1cf3be8f2d0f1bf03228 100644
--- a/matlab/distributions/rand_multivariate_normal.m
+++ b/matlab/distributions/rand_multivariate_normal.m
@@ -29,6 +29,6 @@ function draw = rand_multivariate_normal(Mean,Sigma_upper_chol,n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 draw = Mean + randn(1,n) * Sigma_upper_chol;
diff --git a/matlab/distributions/rand_multivariate_student.m b/matlab/distributions/rand_multivariate_student.m
index 69b26e85ed62d4148bc9a6d3c9391cec25bf881a..0fcc228a8a5cf693f29c35d383dd2258f4f998d6 100644
--- a/matlab/distributions/rand_multivariate_student.m
+++ b/matlab/distributions/rand_multivariate_student.m
@@ -38,7 +38,7 @@ function draw = rand_multivariate_student(Mean,Sigma_upper_chol,df)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n = length(Mean);
 draw = Mean + randn(1,n) * Sigma_upper_chol * sqrt(df/sum(randn(df,1).^2));
diff --git a/matlab/distributions/weibull_specification.m b/matlab/distributions/weibull_specification.m
index b9d498a53fa36fc294fbd50e388749fbc586e857..b497202c324a40ccf6990b84e4dbf8daa008dbe0 100644
--- a/matlab/distributions/weibull_specification.m
+++ b/matlab/distributions/weibull_specification.m
@@ -24,7 +24,7 @@ function [shape, scale] = weibull_specification(mu, sigma2, lb, name)   % --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     lb = 0;
diff --git a/matlab/do_parameter_initialization.m b/matlab/do_parameter_initialization.m
index 145984cec92e0177eab12ef62af6cf9eb3f71c68..302b70870adb0e1ed33db547ee13f7b20506102e 100644
--- a/matlab/do_parameter_initialization.m
+++ b/matlab/do_parameter_initialization.m
@@ -38,7 +38,7 @@ function [xparam1,estim_params_,xparam1_explicitly_initialized,xparam1_properly_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvx = size(estim_params_.var_exo,1);
 nvn = size(estim_params_.var_endo,1);
diff --git a/matlab/dprintf.m b/matlab/dprintf.m
index 7e673f7412f829fd4164b47d1b23abe3735a448f..c738b97bdf00cba2aa3a300317ba46763621cb9f 100644
--- a/matlab/dprintf.m
+++ b/matlab/dprintf.m
@@ -15,6 +15,6 @@ function dprintf(str, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp(sprintf(str, varargin{:}));
\ No newline at end of file
diff --git a/matlab/dr_block.m b/matlab/dr_block.m
index 0f6069bb53adf635f61544bc3b88d186adb4dbb5..f9efe2609dbeb820b21b5179b925369785e9f010 100644
--- a/matlab/dr_block.m
+++ b/matlab/dr_block.m
@@ -52,7 +52,7 @@ function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 verbose = 0;
diff --git a/matlab/draw_prior_density.m b/matlab/draw_prior_density.m
index b5d993e85427d33ea90432b7f223fffd9c42d2ea..625714e7bbb83f4801b041083d49c93b34355e38 100644
--- a/matlab/draw_prior_density.m
+++ b/matlab/draw_prior_density.m
@@ -29,7 +29,7 @@ function [x,f,abscissa,dens,binf,bsup] = draw_prior_density(indx,bayestopt_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 pshape  = bayestopt_.pshape;
 p3      = bayestopt_.p3;
diff --git a/matlab/dsample.m b/matlab/dsample.m
index 945c0fd86830fd2658aa5aa13a8ce2e5b0165c68..5f8c31af70c78346045bb0d1c0705ad19c1dbb9f 100644
--- a/matlab/dsample.m
+++ b/matlab/dsample.m
@@ -30,7 +30,7 @@ function dsample(s1,s2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_
 
diff --git a/matlab/dsge_likelihood.m b/matlab/dsge_likelihood.m
index 60147e83a1e1e7939b27c2c9cdd0493ea072e570..f83c240b071b063a059ece0ba7b1aa7335b59b2c 100644
--- a/matlab/dsge_likelihood.m
+++ b/matlab/dsge_likelihood.m
@@ -130,7 +130,7 @@ function [fval,info,exit_flag,DLIK,Hess,SteadyState,trend_coeff,Model,DynareOpti
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT FR
 
diff --git a/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m b/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m
index c85ca9b1182d66d08777a155fe281b53b535af76..f52af0bc694a6541f156b28e9be33d59d427031f 100644
--- a/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m
+++ b/matlab/dsge_simulated_theoretical_conditional_variance_decomposition.m
@@ -34,7 +34,7 @@ function [nvar,vartan,NumberOfConditionalDecompFiles] = ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % Get informations about the _posterior_draws files.
diff --git a/matlab/dsge_simulated_theoretical_correlation.m b/matlab/dsge_simulated_theoretical_correlation.m
index e77af705b2d23d14ec710381ffd87819860a6f44..c5c8f4fd8d9dc9255b2226070b2dc84ec2b811cd 100644
--- a/matlab/dsge_simulated_theoretical_correlation.m
+++ b/matlab/dsge_simulated_theoretical_correlation.m
@@ -32,7 +32,7 @@ function [nvar,vartan,CorrFileNumber] = dsge_simulated_theoretical_correlation(S
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nodecomposition = 1;
 
diff --git a/matlab/dsge_simulated_theoretical_covariance.m b/matlab/dsge_simulated_theoretical_covariance.m
index d23fafc05b182072ecd731d996891cbfe44e8970..9c208c3b00068087951bd8b3306a3343f8fa1ec0 100644
--- a/matlab/dsge_simulated_theoretical_covariance.m
+++ b/matlab/dsge_simulated_theoretical_covariance.m
@@ -31,7 +31,7 @@ function [nvar,vartan,CovarFileNumber] = dsge_simulated_theoretical_covariance(S
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nodecomposition = 1;
 
diff --git a/matlab/dsge_simulated_theoretical_variance_decomposition.m b/matlab/dsge_simulated_theoretical_variance_decomposition.m
index 7d5574721b602c79623e2b3c71ade5ccea8cc7b1..c44cad61f230c6e690930d0386f9595760dd6652 100644
--- a/matlab/dsge_simulated_theoretical_variance_decomposition.m
+++ b/matlab/dsge_simulated_theoretical_variance_decomposition.m
@@ -33,7 +33,7 @@ function [nvar,vartan,NumberOfDecompFiles] = ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nodecomposition = 0;
 
diff --git a/matlab/dsge_var_likelihood.m b/matlab/dsge_var_likelihood.m
index c1b4908193dca4659a6a87a47737827587deace9..70601b32bfc0c1452671fa55a1091ba73a81b7fe 100644
--- a/matlab/dsge_var_likelihood.m
+++ b/matlab/dsge_var_likelihood.m
@@ -52,7 +52,7 @@ function [fval,info,exit_flag,grad,hess,SteadyState,trend_coeff,PHI_tilde,SIGMA_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent dsge_prior_weight_idx
 
diff --git a/matlab/duplication.m b/matlab/duplication.m
index 324154168a7479c4d1eb13966b47fe0c6780dd96..65287e8d928f2a2a0550820a43797729a12dd482 100644
--- a/matlab/duplication.m
+++ b/matlab/duplication.m
@@ -29,7 +29,7 @@ function [Dp,DpMPinv] = duplication(p)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 % Original author: Thomas P Minka (tpminka@media.mit.edu), April 22, 2013
 
diff --git a/matlab/dy_date.m b/matlab/dy_date.m
index 9d9bb31f49f3f25068cd453be41631b553aa3d88..4b269b41eac1efe67be1933ff290ccbd21fd34c4 100644
--- a/matlab/dy_date.m
+++ b/matlab/dy_date.m
@@ -15,7 +15,7 @@ function y=dy_date(year,period)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/dyn2vec.m b/matlab/dyn2vec.m
index d4223b8437b06d2b4946ee926e0ce968cd36a51f..2637fe47169c3147f1313603664148a32ae2d61f 100644
--- a/matlab/dyn2vec.m
+++ b/matlab/dyn2vec.m
@@ -29,7 +29,7 @@ function [z,zss]=dyn2vec(M_, oo_, options_, s1, s2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~(nargin >= 3)
     error('Dynare dyn2vec error: function takes at least 3 arguments');
diff --git a/matlab/dyn_autocorr.m b/matlab/dyn_autocorr.m
index e4565cf45790c42fe52c3545107f7a35516ae00f..28d498386bb783cd303dc27510d5da538d28d8da 100644
--- a/matlab/dyn_autocorr.m
+++ b/matlab/dyn_autocorr.m
@@ -27,7 +27,7 @@ function acf = dyn_autocorr(y, ar)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 y=y(:);
diff --git a/matlab/dyn_diag_vech.m b/matlab/dyn_diag_vech.m
index e8b9cf338240c3a8e1c7d4ac96ce615305e6b810..ba0ad31faad75ef49ffc8871fbb5106a562546d6 100644
--- a/matlab/dyn_diag_vech.m
+++ b/matlab/dyn_diag_vech.m
@@ -23,7 +23,7 @@ function d = dyn_diag_vech(Vector)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 m = length(Vector);
 n = (sqrt(1+8*m)-1)/2;
diff --git a/matlab/dyn_figure.m b/matlab/dyn_figure.m
index 62182a291bb3d5dbd78da263a8ad149c8f852c0d..e007b1936dadbbb51d47152c7f252f94d092b0e0 100644
--- a/matlab/dyn_figure.m
+++ b/matlab/dyn_figure.m
@@ -27,7 +27,7 @@ function h = dyn_figure(nodisplay, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nodisplay
     h = figure(varargin{:},'visible','off');
diff --git a/matlab/dyn_first_order_solver.m b/matlab/dyn_first_order_solver.m
index 101a33700c03032b7955e417ae8a1f77ab867b02..e82ae536f067cede5429f1051af96da83b62cff4 100644
--- a/matlab/dyn_first_order_solver.m
+++ b/matlab/dyn_first_order_solver.m
@@ -36,7 +36,7 @@ function [dr, info] = dyn_first_order_solver(jacobia, DynareModel, dr, DynareOpt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent reorder_jacobian_columns innovations_idx index_s index_m index_c
 persistent index_p row_indx index_0m index_0p k1 k2 state_var
diff --git a/matlab/dyn_forecast.m b/matlab/dyn_forecast.m
index 7fa230ff4625cada1717b95de7f1467f68a669b0..fb0ad4afff2dcdffb8047fbf77c0794cec9a1487 100644
--- a/matlab/dyn_forecast.m
+++ b/matlab/dyn_forecast.m
@@ -36,7 +36,7 @@ function [forecast,info] = dyn_forecast(var_list,M,options,oo,task,dataset_info)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<6 && options.prefilter
     error('The prefiltering option is not allowed without providing a dataset')
diff --git a/matlab/dyn_latex_table.m b/matlab/dyn_latex_table.m
index 5431145ccb97861a972f046177739d28437e7feb..b086879da484e0021361c18124a1fb5a09ecedea 100644
--- a/matlab/dyn_latex_table.m
+++ b/matlab/dyn_latex_table.m
@@ -16,7 +16,7 @@ function dyn_latex_table(M_, options_, title, LaTeXtitle, headers, labels, value
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if options_.noprint
     return
diff --git a/matlab/dyn_ramsey_static.m b/matlab/dyn_ramsey_static.m
index 029528592cd727d41c42ad0807d3e18242dcfc19..67d90b7e298821c3fbc2a3bbd8dbb02d7b2c66f9 100644
--- a/matlab/dyn_ramsey_static.m
+++ b/matlab/dyn_ramsey_static.m
@@ -33,7 +33,7 @@ function [steady_state,params,check] = dyn_ramsey_static(ys_init,M,options_,oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 params = M.params;
diff --git a/matlab/dyn_saveas.m b/matlab/dyn_saveas.m
index a605b5c9bec83508dfda886911a9cf9366be7258..c69123216ded44e52dc7a59987218deaae9b0ec6 100644
--- a/matlab/dyn_saveas.m
+++ b/matlab/dyn_saveas.m
@@ -29,7 +29,7 @@ function dyn_saveas(h, fname, nodisplay, graph_format)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if any(strcmp('eps',cellstr(graph_format)))
     if isoctave
diff --git a/matlab/dyn_second_order_solver.m b/matlab/dyn_second_order_solver.m
index 3dab25c1a99bff37da6e23aaa2a71dc1dbd9379e..0128af6caae611a37e71ce2868739736f46990dc 100644
--- a/matlab/dyn_second_order_solver.m
+++ b/matlab/dyn_second_order_solver.m
@@ -51,7 +51,7 @@ function dr = dyn_second_order_solver(jacobia,hessian_mat,dr,M,threads_BC)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 dr.ghxx = [];
 dr.ghuu = [];
diff --git a/matlab/dyn_table.m b/matlab/dyn_table.m
index 3e871c125ef9ab76c4797f6387856e50c16cea70..863c4404cc2f026de27230966c8eb1aee7d32855 100644
--- a/matlab/dyn_table.m
+++ b/matlab/dyn_table.m
@@ -32,7 +32,7 @@ function dyn_table(title, preamble, afterward, rows, cols, indent, data)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 assert(ischar(title), 'title must be a char')
 assert(iscellstr(preamble) && iscellstr(afterward) && iscellstr(rows) && iscellstr(cols), ...
diff --git a/matlab/dyn_unvech.m b/matlab/dyn_unvech.m
index 0c6c853cc3272911a6ea6e5352073ec6fb114710..783d8a00b91b4848247c06978327fea88ac6695e 100644
--- a/matlab/dyn_unvech.m
+++ b/matlab/dyn_unvech.m
@@ -22,7 +22,7 @@ function Matrix = dyn_unvech(Vector)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 m = length(Vector);
 n = (sqrt(1+8*m)-1)/2;
diff --git a/matlab/dyn_vech.m b/matlab/dyn_vech.m
index dc18f974bbfa20d902b2dd6447da89a875b5084f..079f53325e64f537be70be8ba23bd0f233d08fb4 100644
--- a/matlab/dyn_vech.m
+++ b/matlab/dyn_vech.m
@@ -22,7 +22,7 @@ function Vector = dyn_vech(Matrix)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n = length(Matrix);
 b = 0;
diff --git a/matlab/dyn_waitbar.m b/matlab/dyn_waitbar.m
index 04d87a88b32fc04ffd89675997253004037acfd3..2c8b005f52b3281cc12d285165148bbda441270b 100644
--- a/matlab/dyn_waitbar.m
+++ b/matlab/dyn_waitbar.m
@@ -19,7 +19,7 @@ function h = dyn_waitbar(prctdone, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 persistent running_text newString
 persistent whoiam Parallel
diff --git a/matlab/dyn_waitbar_close.m b/matlab/dyn_waitbar_close.m
index c2864a9b6ad8cf748af934e56e4bc70b93c9d757..fbc8ab03db4910a2ace277d553b26e812e874c82 100644
--- a/matlab/dyn_waitbar_close.m
+++ b/matlab/dyn_waitbar_close.m
@@ -19,7 +19,7 @@ function dyn_waitbar_close(h)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 
 if isoctave || options_.console_mode
diff --git a/matlab/dynare.m b/matlab/dynare.m
index 341376aed00c7824abbbd04c77449e54688cff4a..81f510a5b7c47214f1029ae2a0dca15372e995ea 100644
--- a/matlab/dynare.m
+++ b/matlab/dynare.m
@@ -31,7 +31,7 @@ function dynare(fname, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~nargin || strcmpi(fname,'help')
     skipline()
diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m
index 71441e1f1a573ab2ed9cf7da693384bbc97a8b6f..5aede4182bc0cf0bbabd28731a96dc464e8008de 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -31,7 +31,7 @@ function dynareroot = dynare_config(path_to_dynare)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin && ~isempty(path_to_dynare)
     addpath(path_to_dynare);
diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m
index 1f9d804acd1f081c86733b0f4a84826387b02d2d..073929ee173a2adaff68b0bcb62a8f42d3aaa31a 100644
--- a/matlab/dynare_estimation.m
+++ b/matlab/dynare_estimation.m
@@ -27,7 +27,7 @@ function oo_recursive_=dynare_estimation(var_list,dname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_ dataset_ dataset_info
 
diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m
index 3cd3d5864cd521429454b541b59b758a0bf1a70a..38fb563fa6089ee395d6d4162a5d28641a36dbab 100644
--- a/matlab/dynare_estimation_1.m
+++ b/matlab/dynare_estimation_1.m
@@ -27,7 +27,7 @@ function dynare_estimation_1(var_list_,dname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info
 
diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index 6a16d3d6fe93aedf88ad26decb7498674f7f8124..3704774ce28150e31f3fc53ab65f69902d7a5aed 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -47,7 +47,7 @@ function [dataset_, dataset_info, xparam1, hh, M_, options_, oo_, estim_params_,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 hh = [];
 xparam1 = [];
diff --git a/matlab/dynare_gradient.m b/matlab/dynare_gradient.m
index 71e9da33e7141129cd2f6f1717344d2d564668f1..7c5083ef68f29584be9c6c08ff7baf6f03695477 100644
--- a/matlab/dynare_gradient.m
+++ b/matlab/dynare_gradient.m
@@ -27,7 +27,7 @@ function [F,G] = dynare_gradient(fcn,x,epsilon,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Evaluate the function at x.
 F = feval(fcn, x, varargin{:});
diff --git a/matlab/dynare_graph.m b/matlab/dynare_graph.m
index 3717efa45f1b317078accec6217e2ba82bf6ad08..0801010fa2b793f17450f215dc78b6bc331cc316 100644
--- a/matlab/dynare_graph.m
+++ b/matlab/dynare_graph.m
@@ -27,7 +27,7 @@ function dyn_graph=dynare_graph(dyn_graph,y,tit,x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin < 4
     x = (1:size(y,1))';
diff --git a/matlab/dynare_graph_close.m b/matlab/dynare_graph_close.m
index 72622314dcfcdc9f1d510abcecf640205185f255..43843755928f8bff21ff3684535018c4c6a47829 100644
--- a/matlab/dynare_graph_close.m
+++ b/matlab/dynare_graph_close.m
@@ -26,4 +26,4 @@ function dynare_graph_close()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
diff --git a/matlab/dynare_graph_init.m b/matlab/dynare_graph_init.m
index b97c2b5f84a4e38f1397d60902852ba604e4aeec..a5f2c2865bf9db0159fcf1a180147898b3de6703 100644
--- a/matlab/dynare_graph_init.m
+++ b/matlab/dynare_graph_init.m
@@ -27,7 +27,7 @@ function dyn_graph=dynare_graph_init(figure_name,nplot,line_types,line_width)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_
 
diff --git a/matlab/dynare_identification.m b/matlab/dynare_identification.m
index 8a4515441b32b250c036f9d071e06d533c77d6b0..a631600e5f651027469749e3154a78e2b6a90a55 100644
--- a/matlab/dynare_identification.m
+++ b/matlab/dynare_identification.m
@@ -61,7 +61,7 @@ function [pdraws, STO_REDUCEDFORM, STO_MOMENTS, STO_DYNAMIC, STO_si_dDYNAMIC, ST
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 global M_ options_ oo_ bayestopt_ estim_params_
diff --git a/matlab/dynare_resolve.m b/matlab/dynare_resolve.m
index 6e4b5b21728b7ef30b25f92de0f7a59cde8e43b0..6392ba325fef922e3a4a0c6b25ddf27038ee6c34 100644
--- a/matlab/dynare_resolve.m
+++ b/matlab/dynare_resolve.m
@@ -64,7 +64,7 @@ function [A,B,ys,info,Model,DynareOptions,DynareResults] = dynare_resolve(Model,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [dr,info,Model,DynareOptions,DynareResults] =compute_decision_rules(Model,DynareOptions,DynareResults);
 
diff --git a/matlab/dynare_sensitivity.m b/matlab/dynare_sensitivity.m
index 5f8478de2c009486c29204386aebed17278310cd..5d93b7714f0f75e4623c28ab04cc5111122b666f 100644
--- a/matlab/dynare_sensitivity.m
+++ b/matlab/dynare_sensitivity.m
@@ -19,7 +19,7 @@ function x0=dynare_sensitivity(options_gsa)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ bayestopt_ estim_params_
 
diff --git a/matlab/dynare_solve.m b/matlab/dynare_solve.m
index 391d92eb96148ea5805e15d5b75781ffd6a0a8cd..8f44513b3d7954bba306e6316252d5b46f3f617c 100644
--- a/matlab/dynare_solve.m
+++ b/matlab/dynare_solve.m
@@ -30,7 +30,7 @@ function [x, errorflag, fvec, fjac] = dynare_solve(f, x, options, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 jacobian_flag = options.jacobian_flag; % true iff Jacobian is returned by f routine (as a second output argument).
 
diff --git a/matlab/dynare_solve_block_or_bytecode.m b/matlab/dynare_solve_block_or_bytecode.m
index 072e43cdfa3a15e0d28999a8aef4530ad8ae7985..cb8df7a9be871bebb4c4d546340c90d0c6b6b132 100644
--- a/matlab/dynare_solve_block_or_bytecode.m
+++ b/matlab/dynare_solve_block_or_bytecode.m
@@ -14,7 +14,7 @@ function [x,info] = dynare_solve_block_or_bytecode(y, exo, params, options, M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 x = y;
diff --git a/matlab/dynare_squeeze.m b/matlab/dynare_squeeze.m
index 85e66f332e971b3e8bf22b5c0d21ae7528d1eae8..b388946b8d692774a83c5211471cb07268ee10cd 100644
--- a/matlab/dynare_squeeze.m
+++ b/matlab/dynare_squeeze.m
@@ -16,7 +16,7 @@ function B = dynare_squeeze(A)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 sizA = size(A);
 dimA = length(sizA);
diff --git a/matlab/dynare_version.m.in b/matlab/dynare_version.m.in
index f2c502ea052cc0bc173bc3ecd09d5b5946903b61..9060a1a8f9adabb1d0b02fe8ff66eeb310e53415 100644
--- a/matlab/dynare_version.m.in
+++ b/matlab/dynare_version.m.in
@@ -26,6 +26,6 @@ function v = dynare_version()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 v = '@PACKAGE_VERSION@';
diff --git a/matlab/dynasave.m b/matlab/dynasave.m
index d80aa98abc4002ca4f100aa89475646474f22267..b26d6bf3eb550d6202f69bd7bf1a835739caba65 100644
--- a/matlab/dynasave.m
+++ b/matlab/dynasave.m
@@ -27,7 +27,7 @@ function dynasave(s,var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/dynatype.m b/matlab/dynatype.m
index c0fe8c4d3f6de57369d4061bf95c2a55c7ce6c95..af32eebf3d05d2d1ac2f87aa8aada3764ab30d8d 100644
--- a/matlab/dynatype.m
+++ b/matlab/dynatype.m
@@ -28,7 +28,7 @@ function dynatype (s,var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/dynsec2hms.m b/matlab/dynsec2hms.m
index 9865ecf347b57c46207354602f330770276da460..5120f6c9e63b5434db0a9a03d975092902f9cb94 100644
--- a/matlab/dynsec2hms.m
+++ b/matlab/dynsec2hms.m
@@ -16,7 +16,7 @@ function hms = dynsec2hms(secs)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 secs = round(secs);
 s = rem(secs, 60);
diff --git a/matlab/dyntable.m b/matlab/dyntable.m
index d04504fa69b7cfe2a4e43d0ecdb6cedf4a25a7f6..e9ed038f6e653d107645444aa78d0ddf5da92a79 100644
--- a/matlab/dyntable.m
+++ b/matlab/dyntable.m
@@ -30,7 +30,7 @@ function dyntable(options_, title, headers, labels, values, label_width, val_wid
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if options_.noprint
     return
diff --git a/matlab/dynvars_from_endo_simul.m b/matlab/dynvars_from_endo_simul.m
index c8508f5352e83ebd22d0ca84a76ffaa2a45c54cd..5652b7221305e0b98ab8baf5ec26308519056c06 100644
--- a/matlab/dynvars_from_endo_simul.m
+++ b/matlab/dynvars_from_endo_simul.m
@@ -20,7 +20,7 @@ function y2 = dynvars_from_endo_simul(y, it_, M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 y2 = y(:, it_+(-M_.maximum_endo_lag:M_.maximum_endo_lead));
 y2 = y2(find(M_.lead_lag_incidence'));
diff --git a/matlab/endogenous_prior.m b/matlab/endogenous_prior.m
index 5a192ad190eee360da4ed61061b6d50af8f5ffb9..048509915170e0015966d63d5e538bfde25b4566 100644
--- a/matlab/endogenous_prior.m
+++ b/matlab/endogenous_prior.m
@@ -40,7 +40,7 @@ function [lnpriormom] = endogenous_prior(data,dataset_info, Pstar,BayesInfo,H)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 Y=data(:,dataset_info.missing.no_more_missing_observations:end)';
 
diff --git a/matlab/endogenous_prior_restrictions.m b/matlab/endogenous_prior_restrictions.m
index 63db7b0be73b9a5248b93b3a85eae1fcc205548e..f9cb218fe6b1b3e274afee0088a3329cfdf6f4bb 100644
--- a/matlab/endogenous_prior_restrictions.m
+++ b/matlab/endogenous_prior_restrictions.m
@@ -30,7 +30,7 @@ function [info, info_irf, info_moment, data_irf, data_moment] = endogenous_prior
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info=[0 0];
 info_irf=[];
diff --git a/matlab/ep/euler_equation_error.m b/matlab/ep/euler_equation_error.m
index d6efe622ac660b0caaf374bf0fb38664229c60da..c6b9c863729085c6ad603ed0c8bf85376c573b63 100644
--- a/matlab/ep/euler_equation_error.m
+++ b/matlab/ep/euler_equation_error.m
@@ -15,7 +15,7 @@ function e = euler_equation_error(y0,x,innovations,M,options,oo,pfm,nodes,weight
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 dynamic_model = str2func([M.fname '.dynamic']);
 ep = options.ep;
diff --git a/matlab/ep/extended_path.m b/matlab/ep/extended_path.m
index 82e55ccbae56a868fd57567b3bd180ce594a2c36..e6560487515072eb5f2bf57a25a869356e1ced9c 100644
--- a/matlab/ep/extended_path.m
+++ b/matlab/ep/extended_path.m
@@ -34,7 +34,7 @@ function [ts, DynareResults] = extended_path(initialconditions, samplesize, exog
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [initialconditions, innovations, pfm, ep, verbosity, DynareOptions, DynareResults] = ...
     extended_path_initialization(initialconditions, samplesize, exogenousvariables, DynareOptions, DynareModel, DynareResults);
diff --git a/matlab/ep/extended_path_core.m b/matlab/ep/extended_path_core.m
index c7036834545361eea6023b3ef8a91e160e4cb88a..2cf6a4dfbcd7b7b108fbcd2f30eff7300098856e 100644
--- a/matlab/ep/extended_path_core.m
+++ b/matlab/ep/extended_path_core.m
@@ -19,7 +19,7 @@ function [y, info_convergence, endogenousvariablespaths] = extended_path_core(pe
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ep = options.ep;
 
diff --git a/matlab/ep/extended_path_homotopy.m b/matlab/ep/extended_path_homotopy.m
index 8036ae50ff1325ac269ead7610d80b4b405b1ea8..6af8c2ed86d0a74a5eba25a420984b6a7fa4df16 100644
--- a/matlab/ep/extended_path_homotopy.m
+++ b/matlab/ep/extended_path_homotopy.m
@@ -15,7 +15,7 @@ function [info_convergence, endo_simul] = extended_path_homotopy(endo_simul, exo
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 endo_simul0 = endo_simul;
diff --git a/matlab/ep/extended_path_initialization.m b/matlab/ep/extended_path_initialization.m
index 302112bb5af141a383a96cbf5a7c68134ff8c697..9a1b85e47cbdff093b875d3220392ee81cce152f 100644
--- a/matlab/ep/extended_path_initialization.m
+++ b/matlab/ep/extended_path_initialization.m
@@ -31,7 +31,7 @@ function [initial_conditions, innovations, pfm, ep, verbosity, DynareOptions, Dy
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ep  = DynareOptions.ep;
 
diff --git a/matlab/ep/extended_path_mc.m b/matlab/ep/extended_path_mc.m
index 901235d7e4d08cc67e8c681596c9bbb21a4dfaf9..3285e954f278076b2ab8b776b1f6af9e7db930d0 100644
--- a/matlab/ep/extended_path_mc.m
+++ b/matlab/ep/extended_path_mc.m
@@ -34,7 +34,7 @@ function Simulations = extended_path_mc(initialconditions, samplesize, replic, e
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [initialconditions, innovations, pfm, ep, verbosity, DynareOptions, DynareResults] = ...
     extended_path_initialization(initialconditions, samplesize, exogenousvariables, DynareOptions, DynareModel, DynareResults);
diff --git a/matlab/ep/extended_path_shocks.m b/matlab/ep/extended_path_shocks.m
index b642f225bd35749ca03e87f42bd7381d1e86c2eb..978274cc1bf0d6aa421b2e2b658bf08d1d4f8cff 100644
--- a/matlab/ep/extended_path_shocks.m
+++ b/matlab/ep/extended_path_shocks.m
@@ -15,7 +15,7 @@ function [shocks, spfm_exo_simul, innovations, DynareResults] = extended_path_sh
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Simulate shocks.
 if isempty(exogenousvariables)
diff --git a/matlab/ep/get_block_world_nbr.m b/matlab/ep/get_block_world_nbr.m
index 720a8e6bc35b9c6d2b6f8e24a16757efdb349576..cda86aa267dbb752774be33f8860f0a4fc959d14 100644
--- a/matlab/ep/get_block_world_nbr.m
+++ b/matlab/ep/get_block_world_nbr.m
@@ -15,7 +15,7 @@ function [block_nbr,world_nbr] = get_block_world_nbr(algo,nnodes,order,periods)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 switch algo
diff --git a/matlab/ep/setup_stochastic_perfect_foresight_model_solver.m b/matlab/ep/setup_stochastic_perfect_foresight_model_solver.m
index 3e68407d3864e393eb9b261b88f4c9a053052e46..0db58f05667e1d590d7cba51026cf0654a8bad62 100644
--- a/matlab/ep/setup_stochastic_perfect_foresight_model_solver.m
+++ b/matlab/ep/setup_stochastic_perfect_foresight_model_solver.m
@@ -15,7 +15,7 @@ function pfm = setup_stochastic_perfect_foresight_model_solver(DynareModel,Dynar
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 pfm.lead_lag_incidence = DynareModel.lead_lag_incidence;
 pfm.ny = DynareModel.endo_nbr;
diff --git a/matlab/ep/solve_stochastic_perfect_foresight_model.m b/matlab/ep/solve_stochastic_perfect_foresight_model.m
index 05de9860882828ddb6acbeda5215b5b505173152..9ca3b233b61ad2d830845cd2e4fd0589439186c2 100644
--- a/matlab/ep/solve_stochastic_perfect_foresight_model.m
+++ b/matlab/ep/solve_stochastic_perfect_foresight_model.m
@@ -15,7 +15,7 @@ function [flag,endo_simul,err] = solve_stochastic_perfect_foresight_model(endo_s
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 flag = 0;
 err = 0;
diff --git a/matlab/ep/solve_stochastic_perfect_foresight_model_1.m b/matlab/ep/solve_stochastic_perfect_foresight_model_1.m
index 3e0ced538e94a4cc35f40fc0658538e39cd3899f..3a9c0d88f05e7e5f11674cdeb1b673bc40f0f7fd 100644
--- a/matlab/ep/solve_stochastic_perfect_foresight_model_1.m
+++ b/matlab/ep/solve_stochastic_perfect_foresight_model_1.m
@@ -15,7 +15,7 @@ function [flag,endo_simul,err,y] = solve_stochastic_perfect_foresight_model_1(en
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin < 6
     homotopy_parameter = 1;
diff --git a/matlab/ep_residuals.m b/matlab/ep_residuals.m
index 6eea0ef4de0ca6400b0fade5a46b534565a1fca3..2cd6092ee4c9373ee2993d7bf9a29edaad628fdc 100644
--- a/matlab/ep_residuals.m
+++ b/matlab/ep_residuals.m
@@ -32,7 +32,7 @@ function r = ep_residuals(x, y, ix, iy, steadystate, dr, maximum_lag, endo_nbr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_ options_
 
diff --git a/matlab/erase_compiled_function.m b/matlab/erase_compiled_function.m
index 376776864e12226559c2b7d5f0eca8fdef167573..0a71b35a3ee234c6e9628a74a37dfaf4d736f246 100644
--- a/matlab/erase_compiled_function.m
+++ b/matlab/erase_compiled_function.m
@@ -16,7 +16,7 @@ function erase_compiled_function(func)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if exist([func '.' mexext])
     clear(func)
diff --git a/matlab/evaluate_dynamic_model.m b/matlab/evaluate_dynamic_model.m
index 1453ee5aa034e1364654ac3bfe2d77a088c8be86..d96cb86ff2ecfa2972571807e17f4eca3f6dd0db 100644
--- a/matlab/evaluate_dynamic_model.m
+++ b/matlab/evaluate_dynamic_model.m
@@ -15,7 +15,7 @@ function residuals = evaluate_dynamic_model(dynamicmodel, endogenousvariables, e
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ny = length(steadystate);
 periods = rows(exogenousvariables);
diff --git a/matlab/evaluate_likelihood.m b/matlab/evaluate_likelihood.m
index 20da8eb4c6c196104cc02103a67c4f2d7413cb43..5775e2ee02192bfa883e767c36a274f8f3bf5426 100644
--- a/matlab/evaluate_likelihood.m
+++ b/matlab/evaluate_likelihood.m
@@ -37,7 +37,7 @@ function [llik,parameters] = evaluate_likelihood(parameters,M_,estim_params_,oo_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent dataset dataset_info
 
diff --git a/matlab/evaluate_max_dynamic_residual.m b/matlab/evaluate_max_dynamic_residual.m
index 9ea67a5fe7fc02b38a69dc50f4e68cab60e0cfaf..6be93e968b4d62a094d8f39c51a2ca882c45fc5b 100644
--- a/matlab/evaluate_max_dynamic_residual.m
+++ b/matlab/evaluate_max_dynamic_residual.m
@@ -15,7 +15,7 @@ function err = evaluate_max_dynamic_residual(model_dynamic, Y, exogenous_variabl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 i_rows = 1:ny;
 i_cols = find(lead_lag_incidence');
diff --git a/matlab/evaluate_planner_objective.m b/matlab/evaluate_planner_objective.m
index e61aab263348f515c44b07ea22a1e5286390abcc..57d7df89cd464f09955c4fe3dc2435dd651db044 100644
--- a/matlab/evaluate_planner_objective.m
+++ b/matlab/evaluate_planner_objective.m
@@ -74,7 +74,7 @@ function planner_objective_value = evaluate_planner_objective(M_,options_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 dr = oo_.dr;
 
diff --git a/matlab/evaluate_posterior_kernel.m b/matlab/evaluate_posterior_kernel.m
index c4132fb38f04dd4e9c3422e4ce056c7c22e1d8d7..7c3c9c08f687a0efda30cf8d3f00e3c53af31a8c 100644
--- a/matlab/evaluate_posterior_kernel.m
+++ b/matlab/evaluate_posterior_kernel.m
@@ -38,7 +38,7 @@ function lpkern = evaluate_posterior_kernel(parameters,M_,estim_params_,oo_,opti
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [ldens,parameters] = evaluate_prior(parameters,M_,estim_params_,oo_,options_,bayestopt_);
 if nargin==6 %llik provided as an input
diff --git a/matlab/evaluate_prior.m b/matlab/evaluate_prior.m
index e340667c3ecad7c19982ed348c158530b0d7e914..7d43b2519e8b0fcd7fa2d0134c25a3dd45783ad5 100644
--- a/matlab/evaluate_prior.m
+++ b/matlab/evaluate_prior.m
@@ -36,7 +36,7 @@ function [ldens,parameters] = evaluate_prior(parameters,M_,estim_params_,oo_,opt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin==0
     parameters = 'posterior mode';
diff --git a/matlab/evaluate_smoother.m b/matlab/evaluate_smoother.m
index 62d5b35312cd337743a82f17f076875e7e5ca1d0..b0ad84864f0ec2569f926d8bc7f0b6086604b37b 100644
--- a/matlab/evaluate_smoother.m
+++ b/matlab/evaluate_smoother.m
@@ -52,7 +52,7 @@ function [oo_,M_,options_,bayestopt_,Smoothed_variables_declaration_order_deviat
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % store qz_criterium
 qz_criterium_old=options_.qz_criterium;
diff --git a/matlab/evaluate_static_model.m b/matlab/evaluate_static_model.m
index a4aa46ddeaf8a68e56c6526c8b4667e100259824..cc8a256c9c34f351c0cfd19d3f03782dff9cd1a6 100644
--- a/matlab/evaluate_static_model.m
+++ b/matlab/evaluate_static_model.m
@@ -35,7 +35,7 @@ function [residuals,check1,jacob] = evaluate_static_model(ys,exo_ss,params,M,opt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 check1 = 0;
 if options.bytecode
diff --git a/matlab/evaluate_steady_state.m b/matlab/evaluate_steady_state.m
index 10e5a839de770d079335457c28a401ebd80b834a..9ba91a23892f70fc5f592ff78fcc43d5d04dca6c 100644
--- a/matlab/evaluate_steady_state.m
+++ b/matlab/evaluate_steady_state.m
@@ -37,7 +37,7 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 check = 0;
diff --git a/matlab/evaluate_steady_state_file.m b/matlab/evaluate_steady_state_file.m
index c503f6db2d4f358eeae2d8696aa2a4a357c7da76..f2c9ec6b42fe6cc38a8ad7d4364c7704379e9518 100644
--- a/matlab/evaluate_steady_state_file.m
+++ b/matlab/evaluate_steady_state_file.m
@@ -34,7 +34,7 @@ function [ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M,options,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 params = M.params;
 info = 0;
diff --git a/matlab/exactcontains.m b/matlab/exactcontains.m
index 8b78e7b2999bb8a86a03c5ed0c01733c3c1f9e17..3d41a62a0e46e4e35977bfcc504dcb171720242a 100644
--- a/matlab/exactcontains.m
+++ b/matlab/exactcontains.m
@@ -17,6 +17,6 @@ function b = exactcontains(str, word)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 b = ~isempty(regexp(str, sprintf('\\<%s\\>', word)));
\ No newline at end of file
diff --git a/matlab/exactstrrep.m b/matlab/exactstrrep.m
index eed76ddb102d5d1a780afbc2ed276371aec396be..9b12c90867953f871739f9afbec26761ae809752 100644
--- a/matlab/exactstrrep.m
+++ b/matlab/exactstrrep.m
@@ -17,6 +17,6 @@ function str = exactstrrep(str, old, new)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 str = regexprep(str, ['\<', old,'\>'], new);
\ No newline at end of file
diff --git a/matlab/execute_prior_posterior_function.m b/matlab/execute_prior_posterior_function.m
index 71e2009dd5f4fe4e297734db43fa1e92f2c2356c..10449c2c57238ffc1ec94a0d31ee3c197a698a1f 100644
--- a/matlab/execute_prior_posterior_function.m
+++ b/matlab/execute_prior_posterior_function.m
@@ -32,7 +32,7 @@ function oo_=execute_prior_posterior_function(posterior_function_name,M_,options
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [directory,basename,extension] = fileparts(posterior_function_name);
 if isempty(extension)
diff --git a/matlab/expand_group.m b/matlab/expand_group.m
index a216b51b1a63f8ec6bada950e0c79d5d935612a0..59945f00a4adf4069615b6ea57a33ef5450a98d3 100644
--- a/matlab/expand_group.m
+++ b/matlab/expand_group.m
@@ -25,7 +25,7 @@ function expand_group(use_shock_groups,var_list_, ic, no_graph)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     no_graph=0;
diff --git a/matlab/f_var.m b/matlab/f_var.m
index 48f801b6eca7511f33df6045b1496353872bbda5..c4d5786a4818f36848d6bb6368d0f9517c4cb54b 100644
--- a/matlab/f_var.m
+++ b/matlab/f_var.m
@@ -15,7 +15,7 @@ function b=f_var(x,a,nx)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 x=reshape(x,nx,nx);
 b=x-a*x*a';
diff --git a/matlab/fastgensylv.m b/matlab/fastgensylv.m
index a8e6e386f19282f162b8811a489c0da3046b2e82..246a0f971fb3cf08de23db6d6f18223fdf7d8da8 100644
--- a/matlab/fastgensylv.m
+++ b/matlab/fastgensylv.m
@@ -54,7 +54,7 @@ function X = fastgensylv(A, B, C, D, tol,maxit,X0)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if size(A,1)~=size(D,1) || size(A,1)~=size(B,1) || size(C,2)~=size(D,2)
     error('fastgensylv:: Dimension error!')
diff --git a/matlab/ff1_.m b/matlab/ff1_.m
index 22a186feec3a6d2069f60fa7eee50912b4c82e1f..2853db20481821fcd33032129982ea0ddffc9de4 100644
--- a/matlab/ff1_.m
+++ b/matlab/ff1_.m
@@ -27,7 +27,7 @@ function y=ff1_(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global it_ M_ oo_
 
diff --git a/matlab/ffill.m b/matlab/ffill.m
index cb8f0d3216ca95705512cc70bb4255fc6e118e91..0cc36aac85a2bc66e6794d4523ac0cb667e8e178 100644
--- a/matlab/ffill.m
+++ b/matlab/ffill.m
@@ -30,7 +30,7 @@ function [a,b] = ffill(x,ixc,y)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 xc = size(x,1) ;
 
diff --git a/matlab/fjaco.m b/matlab/fjaco.m
index 566d2b729beef4748b1da25c4c8a2f8bb1890422..a7844e574b884cd0dc07cfbe19886a36aa5da833 100644
--- a/matlab/fjaco.m
+++ b/matlab/fjaco.m
@@ -25,7 +25,7 @@ function fjac = fjaco(f,x,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ff=feval(f,x,varargin{:});
 
diff --git a/matlab/flip_plan.m b/matlab/flip_plan.m
index 5daf19fc7dc76edebb41eb91b61092df175c320f..3b2c71f7da7e8fc2e2dad21c7c6c79183fec70f4 100644
--- a/matlab/flip_plan.m
+++ b/matlab/flip_plan.m
@@ -30,7 +30,7 @@ function plan = flip_plan(plan, exogenous, endogenous, expectation_type, date, v
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 if ~ischar(expectation_type) || size(expectation_type,1) ~= 1
     error(['in flip_plan the fourth argument should be a string containing the simulation type (''perfect_foresight'' or ''surprise'')']);
 end
diff --git a/matlab/forcst.m b/matlab/forcst.m
index ffa992cb350374c730a5aba69065d8d1c66d86bd..2c215d9c079224d5a5f52a664df392208a9db309 100644
--- a/matlab/forcst.m
+++ b/matlab/forcst.m
@@ -37,7 +37,7 @@ function [yf,int_width,int_width_ME]=forcst(dr,y0,horizon,var_list,M_,oo_,option
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 oo_=make_ex_(M_,options_,oo_);
 yf = simult_(M_,options_,y0,dr,zeros(horizon,M_.exo_nbr),1);
diff --git a/matlab/forcst2.m b/matlab/forcst2.m
index 1c0d91b249fa68128955b00afbe2be42f370f902..e75f862085c5e19e1102427749bc2a8fba98f5ab 100644
--- a/matlab/forcst2.m
+++ b/matlab/forcst2.m
@@ -27,7 +27,7 @@ function yf=forcst2(y0,horizon,dr,n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/forcst2a.m b/matlab/forcst2a.m
index bbac43b71c6e90fb1b0f44767050f693ace59fd6..412f2129dc1b6c5ab527a291587f6a3967403faf 100644
--- a/matlab/forcst2a.m
+++ b/matlab/forcst2a.m
@@ -24,7 +24,7 @@ function yf=forcst2a(y0,dr,e)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/forecast_graphs.m b/matlab/forecast_graphs.m
index 00006d0e261affc93a488175cd4118dc3face4eb..98b458f5f450599c0cdb988af3e658e354bfc99c 100644
--- a/matlab/forecast_graphs.m
+++ b/matlab/forecast_graphs.m
@@ -23,7 +23,7 @@ function forecast_graphs(var_list,M_, oo_,options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nc = 4;
 nr = 3;
diff --git a/matlab/formdata.m b/matlab/formdata.m
index 3a28db602800ae658378db82af465a03dbd61010..3833f66b08a930185f05e984a74f47f49add9a59 100644
--- a/matlab/formdata.m
+++ b/matlab/formdata.m
@@ -26,7 +26,7 @@ function formdata(fname,date)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/ftest.m b/matlab/ftest.m
index c433bb453458bf220683a1e8ded7507ee85a5fa3..36bc55bbc6f1bdfbdf4d50a85fadea0093ac6d41 100644
--- a/matlab/ftest.m
+++ b/matlab/ftest.m
@@ -15,7 +15,7 @@ function ftest (s1,s2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global nvx nvy x y lag1
 
diff --git a/matlab/fwriten.m b/matlab/fwriten.m
index 1fd5e11603f3649e54771cdd28ae7dbdca722b99..f235830a490e614c255c7e4cc367202040dbaf04 100644
--- a/matlab/fwriten.m
+++ b/matlab/fwriten.m
@@ -17,6 +17,6 @@ function fwriten(fid, str)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fwrite(fid, sprintf('%s\n', str));
\ No newline at end of file
diff --git a/matlab/gauss_hermite_weights_and_nodes.m b/matlab/gauss_hermite_weights_and_nodes.m
index 646033c0603a7d656621934e0105131822d8786f..6891d2bb683464eb56250a5a23a10386ab7ff342 100644
--- a/matlab/gauss_hermite_weights_and_nodes.m
+++ b/matlab/gauss_hermite_weights_and_nodes.m
@@ -46,7 +46,7 @@ function [nodes,weights] = gauss_hermite_weights_and_nodes(n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/gauss_legendre_weights_and_nodes.m b/matlab/gauss_legendre_weights_and_nodes.m
index 074f520d7a4cc4f11089805295e1dcb7d20b3be9..7f81e06e10157f120eb70e148f676cd81a339c59 100644
--- a/matlab/gauss_legendre_weights_and_nodes.m
+++ b/matlab/gauss_legendre_weights_and_nodes.m
@@ -55,7 +55,7 @@ function [nodes,weights] = gauss_legendre_weights_and_nodes(n,a,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/gcompare.m b/matlab/gcompare.m
index 6cb02f6a18fbae3f77e6826d58244c5722440254..8f5381b1bb8acb4a65f8dabd318824d851ac55b9 100644
--- a/matlab/gcompare.m
+++ b/matlab/gcompare.m
@@ -21,7 +21,7 @@ function gcompare(s1,s2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ M_
 global nvx nvy x y lag1
diff --git a/matlab/generate_trace_plots.m b/matlab/generate_trace_plots.m
index ce520449c11c95ea43216af7b3a3c4802784d6d6..c82c7eea3697255fdb529de358bcdf6e509b9e3f 100644
--- a/matlab/generate_trace_plots.m
+++ b/matlab/generate_trace_plots.m
@@ -26,7 +26,7 @@ function generate_trace_plots(chain_number)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ estim_params_
 
diff --git a/matlab/gensylv_fp.m b/matlab/gensylv_fp.m
index 51c96fceb8c2e08ef179b3f5b5cb0683080105f6..4067985dd1020262c5e239c5683aa15d8f94c640 100644
--- a/matlab/gensylv_fp.m
+++ b/matlab/gensylv_fp.m
@@ -38,7 +38,7 @@ function X = gensylv_fp(A, B, C, D, block, tol)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 %tol = 1e-12;
diff --git a/matlab/getIrfShocksIndx.m b/matlab/getIrfShocksIndx.m
index c7f9fba484f2219cbb8e0a4e57f9efde1029d2d9..1c28150cb7ac3017504995192a342dc5ecf6a0ae 100644
--- a/matlab/getIrfShocksIndx.m
+++ b/matlab/getIrfShocksIndx.m
@@ -23,7 +23,7 @@ function irf_shocks_indx=getIrfShocksIndx()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/getPowerDeriv.m b/matlab/getPowerDeriv.m
index 8d1a1b022f1479b682c495a42e19fbb4daeafb80..5df759abd35296e34075276bc6b25b3b77ccb02b 100644
--- a/matlab/getPowerDeriv.m
+++ b/matlab/getPowerDeriv.m
@@ -28,7 +28,7 @@ function dxp=getPowerDeriv(x,p,k)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (abs(x) < 1e-12) && (p > 0) && (k > p) && (abs(p - round(p)) < 1e-12)
     dxp = 0;
diff --git a/matlab/get_Hessian.m b/matlab/get_Hessian.m
index fe74848dd683157a67215289b1d278e4ec53211b..ff2e79f183792d64785107237d629208fa8b0863 100644
--- a/matlab/get_Hessian.m
+++ b/matlab/get_Hessian.m
@@ -25,7 +25,7 @@ function [Hess] = get_Hessian(T,R,Q,H,P,Y,DT,DYss,DOm,DH,DP,D2T,D2Yss,D2Om,D2H,D
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 k = size(DT,3);                                 % number of structural parameters
diff --git a/matlab/get_all_parameters.m b/matlab/get_all_parameters.m
index d2aa30c61bc3500138f78928e328d65cfd5651a8..acb51c53af14c3eee146734498a1c3c236c41aa5 100644
--- a/matlab/get_all_parameters.m
+++ b/matlab/get_all_parameters.m
@@ -30,7 +30,7 @@ function xparam1=get_all_parameters(estim_params_,M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isempty(estim_params_)
     nvx = estim_params_.nvx;
diff --git a/matlab/get_ar_ec_matrices.m b/matlab/get_ar_ec_matrices.m
index 6831edc56ec2d5f4053759bd1e38b71e02e9f1b4..80502bd1785fb978dc387bae6c5f75838d7c3eca 100644
--- a/matlab/get_ar_ec_matrices.m
+++ b/matlab/get_ar_ec_matrices.m
@@ -38,7 +38,7 @@ function get_ar_ec_matrices(model_name, model_type)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/get_aux_variable_id.m b/matlab/get_aux_variable_id.m
index a15a69e0279275f29e4a72b4fe8d40352a7aa79c..78f024d568fa0dfdb1cadf58118870a7a81eef8c 100644
--- a/matlab/get_aux_variable_id.m
+++ b/matlab/get_aux_variable_id.m
@@ -23,7 +23,7 @@ function ida = get_aux_variable_id(var)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/get_cells_id.m b/matlab/get_cells_id.m
index 74a6f006de582acb03792ea496bb50a07927847f..af6c399b9cb9db20fe7db7c6f1d436df969c5ea3 100644
--- a/matlab/get_cells_id.m
+++ b/matlab/get_cells_id.m
@@ -15,7 +15,7 @@ function [B,C] = get_cells_id(str,sep)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/get_companion_matrix.m b/matlab/get_companion_matrix.m
index 9589d6514ab1173b35dd8f31d5da232278378060..04dfcdf930965351e9583c6b70a01485d07beff5 100644
--- a/matlab/get_companion_matrix.m
+++ b/matlab/get_companion_matrix.m
@@ -27,7 +27,7 @@ function [A0, A0star, AR, B] = get_companion_matrix(auxiliary_model_name, auxili
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_ M_
 
diff --git a/matlab/get_companion_matrix_legacy.m b/matlab/get_companion_matrix_legacy.m
index a7d6345e73184f27a6ac7ed2e461325528ac167e..b0c52290a6e3d69997fc96783b61baef9da3674e 100644
--- a/matlab/get_companion_matrix_legacy.m
+++ b/matlab/get_companion_matrix_legacy.m
@@ -27,7 +27,7 @@ function [A0, AR, B] = get_companion_matrix_legacy(auxiliary_model_name, auxilia
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_ M_
 
diff --git a/matlab/get_date_of_a_file.m b/matlab/get_date_of_a_file.m
index 76ee70c90609b9b78ca4d9c1fee10a2fe6280e86..daf6b59613f331ed83402dcadaf84d78608635bd 100644
--- a/matlab/get_date_of_a_file.m
+++ b/matlab/get_date_of_a_file.m
@@ -16,7 +16,7 @@ function [d1,d2] = get_date_of_a_file(filename)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = dir(filename);
 if isempty(info)
diff --git a/matlab/get_difference_order.m b/matlab/get_difference_order.m
index 65be18af0cc0ce3d9d308bd37bd3490b88f0cd38..74666a1bab6f576d01d155d219e7cbab4995232f 100644
--- a/matlab/get_difference_order.m
+++ b/matlab/get_difference_order.m
@@ -23,7 +23,7 @@ function n = get_difference_order(var)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/get_dynare_random_generator_state.m b/matlab/get_dynare_random_generator_state.m
index 9aef9a288e0dd18299681b352ac44482071e0b3b..4c3c8eb6ef34c85a76ee431be155e660defa90c1 100644
--- a/matlab/get_dynare_random_generator_state.m
+++ b/matlab/get_dynare_random_generator_state.m
@@ -21,7 +21,7 @@ function [state_u,state_n] = get_dynare_random_generator_state()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isoctave
     s = RandStream.getGlobalStream();
diff --git a/matlab/get_equation_number_by_tag.m b/matlab/get_equation_number_by_tag.m
index fc7d097c4b610fcac1a58098e5d2e49a48401896..8e1a404a648677db02cb37dcb7f097a42b341735 100644
--- a/matlab/get_equation_number_by_tag.m
+++ b/matlab/get_equation_number_by_tag.m
@@ -24,7 +24,7 @@ function eqnumber = get_equation_number_by_tag(eqname, DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 eqnumber = strmatch(eqname, DynareModel.equations_tags(strmatch('name', DynareModel.equations_tags(:,2), 'exact'), 3), 'exact');
 
diff --git a/matlab/get_error_message.m b/matlab/get_error_message.m
index af5ee750f67abbd7338ef4272eb8df68b177732c..fc1424b57fac6e5c66ef2490e382de1aa9537713 100644
--- a/matlab/get_error_message.m
+++ b/matlab/get_error_message.m
@@ -25,7 +25,7 @@ function message = get_error_message(info, DynareOptions)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 switch info(1)
     case 0
diff --git a/matlab/get_existing_subsamples_indx.m b/matlab/get_existing_subsamples_indx.m
index 3f6e5b42b5e106f6bc1adeedbf30d386865be09f..d4e5a363850c1fb82bd0e5ba03257da9c5165442 100644
--- a/matlab/get_existing_subsamples_indx.m
+++ b/matlab/get_existing_subsamples_indx.m
@@ -31,7 +31,7 @@ function subsamples_indx = get_existing_subsamples_indx(name1, name2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global estimation_info
 
diff --git a/matlab/get_file_extension.m b/matlab/get_file_extension.m
index dad9ee0ac9157fbcde933064970cc98ae0e9a9bd..ab4f155062a82ef14ce1e573cd76262214d98fe8 100644
--- a/matlab/get_file_extension.m
+++ b/matlab/get_file_extension.m
@@ -26,7 +26,7 @@ function ext = get_file_extension(file)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [dir, fname, ext] = fileparts(file);
 
diff --git a/matlab/get_identification_jacobians.m b/matlab/get_identification_jacobians.m
index 669ce2fb3a0084268c8266592b9ba0d53a9f5880..ddbe2d9cdf623260a5f52083de6f70388577e7a0 100644
--- a/matlab/get_identification_jacobians.m
+++ b/matlab/get_identification_jacobians.m
@@ -110,7 +110,7 @@ function [MEAN, dMEAN, REDUCEDFORM, dREDUCEDFORM, DYNAMIC, dDYNAMIC, MOMENTS, dM
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 %get fields from options_ident
diff --git a/matlab/get_lhs_and_rhs.m b/matlab/get_lhs_and_rhs.m
index 0c93f3acae3c4327d9b0caad871709435b47b7b6..3a9d34bc0e7fbf3fae38a69cdc141adf7707d843 100644
--- a/matlab/get_lhs_and_rhs.m
+++ b/matlab/get_lhs_and_rhs.m
@@ -38,7 +38,7 @@ function [lhs, rhs, json] = get_lhs_and_rhs(eqname, DynareModel, original, json)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3 || isempty(original)
     original = false;
diff --git a/matlab/get_matrix_entries_for_psd_check.m b/matlab/get_matrix_entries_for_psd_check.m
index 1ddd80d3c53f4f032d833b87724733c9d4a9cfba..f07410ea2c6afe03bee501d49d7f92dac6028434 100644
--- a/matlab/get_matrix_entries_for_psd_check.m
+++ b/matlab/get_matrix_entries_for_psd_check.m
@@ -28,7 +28,7 @@ function estim_params_= get_matrix_entries_for_psd_check(M_,estim_params_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %% get the non-zero rows and columns of Sigma_e and H
 
diff --git a/matlab/get_minimal_state_representation.m b/matlab/get_minimal_state_representation.m
index 1ce6da53cae2acf1b55daa5e10e13cd342bd0e72..3882c49dc878b2855b2fa28fe661aee761e4e36a 100644
--- a/matlab/get_minimal_state_representation.m
+++ b/matlab/get_minimal_state_representation.m
@@ -74,7 +74,7 @@ function [CheckCO,minns,minSYS] = get_minimal_state_representation(SYS, derivs_f
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 if nargin == 1
     derivs_flag = 0;
diff --git a/matlab/get_moments_size.m b/matlab/get_moments_size.m
index 6515c39b8a3e127f752d2a8bc523f4771c8b98a6..625b7e1580ee425247cad996f3a464b46e574823 100644
--- a/matlab/get_moments_size.m
+++ b/matlab/get_moments_size.m
@@ -26,7 +26,7 @@ function s=get_moments_size(options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/get_name_of_the_last_mh_file.m b/matlab/get_name_of_the_last_mh_file.m
index 2741f7b52fdf3daf860767e4b56ee35fb9000533..3e8b24c9cbd9d88820dc334ccaa6170b23ff6d00 100644
--- a/matlab/get_name_of_the_last_mh_file.m
+++ b/matlab/get_name_of_the_last_mh_file.m
@@ -26,7 +26,7 @@ function [mhname,info] = get_name_of_the_last_mh_file(M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 mhname = [];
 info = 1;
diff --git a/matlab/get_new_or_existing_ei_index.m b/matlab/get_new_or_existing_ei_index.m
index a6b3b85e19924e58806e9cacdcc8168dcd314250..bf92a9ec26c60119a9d87e9a110c42a8f055a151 100644
--- a/matlab/get_new_or_existing_ei_index.m
+++ b/matlab/get_new_or_existing_ei_index.m
@@ -32,7 +32,7 @@ function indx = get_new_or_existing_ei_index(substructure_name, name1, name2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global estimation_info
 
diff --git a/matlab/get_optimal_policy_discount_factor.m b/matlab/get_optimal_policy_discount_factor.m
index 1aa886efa17c397f1477fceb223b1f60112e7e95..3b9d33d448505d8b1a64599b7d514f2a9b72de26 100644
--- a/matlab/get_optimal_policy_discount_factor.m
+++ b/matlab/get_optimal_policy_discount_factor.m
@@ -28,6 +28,6 @@ function discount_factor=get_optimal_policy_discount_factor(params,param_names)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 discount_factor = params(find(strcmp('optimal_policy_discount_factor', param_names)));
diff --git a/matlab/get_perturbation_params_derivs.m b/matlab/get_perturbation_params_derivs.m
index f23a58d17c70aeabdca3a96a5559058542485aa6..e15edab0481719091d5b1bd4aaeada9ee1ea000c 100644
--- a/matlab/get_perturbation_params_derivs.m
+++ b/matlab/get_perturbation_params_derivs.m
@@ -117,7 +117,7 @@ function DERIVS = get_perturbation_params_derivs(M, options, estim_params, oo, i
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 % Get fields from M
 Correlation_matrix = M.Correlation_matrix;
diff --git a/matlab/get_perturbation_params_derivs_numerical_objective.m b/matlab/get_perturbation_params_derivs_numerical_objective.m
index c888eef48b4f7a6e0e452329dbbefa6b174a674c..da0b80e032c64fa21f182928d11595f37494b220 100644
--- a/matlab/get_perturbation_params_derivs_numerical_objective.m
+++ b/matlab/get_perturbation_params_derivs_numerical_objective.m
@@ -46,7 +46,7 @@ function [out,info] = get_perturbation_params_derivs_numerical_objective(params,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 %% Update stderr, corr and model parameters and compute perturbation approximation and steady state with updated parameters
diff --git a/matlab/get_posterior_parameters.m b/matlab/get_posterior_parameters.m
index 604f1945828bb761a81314604c4e3e498ac7054e..757f2161348cb7ce2fa65db6ab704c63f057e0fd 100644
--- a/matlab/get_posterior_parameters.m
+++ b/matlab/get_posterior_parameters.m
@@ -30,7 +30,7 @@ function xparam = get_posterior_parameters(type,M_,estim_params_,oo_,options_,fi
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<6
     field1='posterior_';
diff --git a/matlab/get_subsamples_range_indx.m b/matlab/get_subsamples_range_indx.m
index 56c87f286ad02b6a50075d7ed451eff8e74ebbf9..3187fe21f9eca5278deab8684ed8e7f9ab97ac42 100644
--- a/matlab/get_subsamples_range_indx.m
+++ b/matlab/get_subsamples_range_indx.m
@@ -31,7 +31,7 @@ function range_indx = get_subsamples_range_indx(subsamples_indx, range_label)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global estimation_info
 
diff --git a/matlab/get_the_name.m b/matlab/get_the_name.m
index d7dddee6d0b1f3781eaac8d3196cb2a8adf136eb..85fbfcd1c9f233d6680f123aa839d911cf959c8f 100644
--- a/matlab/get_the_name.m
+++ b/matlab/get_the_name.m
@@ -55,7 +55,7 @@ function [nam, texnam] = get_the_name(k, TeX, M_, estim_params_, options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nam = [];
 texnam = [];
diff --git a/matlab/get_variables_and_parameters_in_equation.m b/matlab/get_variables_and_parameters_in_equation.m
index b4ed92a2c8630d5d16aee35643db64d1242e9b81..9be147a526390efd6068e5df0719db1b3a7eea84 100644
--- a/matlab/get_variables_and_parameters_in_equation.m
+++ b/matlab/get_variables_and_parameters_in_equation.m
@@ -30,7 +30,7 @@ function [pnames, enames, xnames, pid, eid, xid] = get_variables_and_parameters_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get the tokens in the rhs member of the equation.
 rhs_ = get_variables_and_parameters_in_expression(rhs);
diff --git a/matlab/get_variables_and_parameters_in_expression.m b/matlab/get_variables_and_parameters_in_expression.m
index 1af17ebbc95b41fbd4dafecaf5174dfcc8d6717e..c12d69b24802562f08e682d03968ea47ea5df21a 100644
--- a/matlab/get_variables_and_parameters_in_expression.m
+++ b/matlab/get_variables_and_parameters_in_expression.m
@@ -23,7 +23,7 @@ function objects = get_variables_and_parameters_in_expression(expr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 objects = strsplit(expr, {'+','-','*','/','^', ...
                     'log(', 'log10(', 'ln(', 'exp(', ...
diff --git a/matlab/get_variables_list.m b/matlab/get_variables_list.m
index 642af124645dc49149c40cc6ccdc77f42cd53442..d09656222dcc0e47c7941b573b3a6838b9d1748a 100644
--- a/matlab/get_variables_list.m
+++ b/matlab/get_variables_list.m
@@ -33,7 +33,7 @@ function [ivar, vartan, options_] = get_variables_list(options_, M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 varlist = options_.varlist;
 if isempty(varlist)
diff --git a/matlab/get_variance_of_endogenous_variables.m b/matlab/get_variance_of_endogenous_variables.m
index 02ea62d6b0eb5af938449b31e952c3ffdbed9b32..9330498d89f3460b295f015765e31ad34846ffec 100644
--- a/matlab/get_variance_of_endogenous_variables.m
+++ b/matlab/get_variance_of_endogenous_variables.m
@@ -28,7 +28,7 @@ function vx1 = get_variance_of_endogenous_variables(dr,i_var)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/global_initialization.m b/matlab/global_initialization.m
index 02220f79479d25b02dbc665b2d4f9f3706cfc2eb..e807be8f68cef68a55dd0ede18d64e94066b2b27 100644
--- a/matlab/global_initialization.m
+++ b/matlab/global_initialization.m
@@ -26,7 +26,7 @@ function global_initialization()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ dataset_ dataset_info
 estim_params_ = [];
diff --git a/matlab/graph_decomp.m b/matlab/graph_decomp.m
index f00512a2a32a7df9bc0a4985907974519f91b8e3..6c284cacc74731f48b4879eb23265b31be07af37 100644
--- a/matlab/graph_decomp.m
+++ b/matlab/graph_decomp.m
@@ -26,7 +26,7 @@ function []=graph_decomp(z,shock_names,endo_names,i_var,initial_date,DynareModel
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~DynareOptions.plot_shock_decomp.expand
     GraphDirectoryName = CheckPath('graphs',DynareModel.dname);
diff --git a/matlab/graph_decomp_detail.m b/matlab/graph_decomp_detail.m
index 89111f987eaaa5efaac971e2917bcd1392a48af9..7ffcfc7bc3c79f94055000bdc2050cc27e8f5beb 100644
--- a/matlab/graph_decomp_detail.m
+++ b/matlab/graph_decomp_detail.m
@@ -26,7 +26,7 @@ function []=graph_decomp_detail(z,shock_names,endo_names,i_var,initial_date,Dyna
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~DynareOptions.plot_shock_decomp.expand
     GraphDirectoryName = CheckPath('graphs',DynareModel.dname);
diff --git a/matlab/gsa/Morris_Measure_Groups.m b/matlab/gsa/Morris_Measure_Groups.m
index 1271ed1b6858a8ee677e91d92ccebd1df70653a6..9e4df1f23404217b0fee29d69e230787ad816420 100644
--- a/matlab/gsa/Morris_Measure_Groups.m
+++ b/matlab/gsa/Morris_Measure_Groups.m
@@ -42,7 +42,7 @@ function [SAmeas, OutMatrix] = Morris_Measure_Groups(NumFact, Sample, Output, p,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin==0
     skipline()
diff --git a/matlab/gsa/Sampling_Function_2.m b/matlab/gsa/Sampling_Function_2.m
index 48a8187df08eacad91724698670c03d7fde44ff6..47858ced674137cf0f6b575b9b1345e17c4c6cf0 100644
--- a/matlab/gsa/Sampling_Function_2.m
+++ b/matlab/gsa/Sampling_Function_2.m
@@ -71,7 +71,7 @@ function [Outmatrix, OutFact] = Sampling_Function_2(p, k, r, UB, LB, GroupMat)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Parameters and initialisation of the output matrix
 sizea = k;
diff --git a/matlab/gsa/cumplot.m b/matlab/gsa/cumplot.m
index 70fe1f47593538d93bef58dedcdf1b6620abeb92..1dcda07a58fc44f2cec8c0a61d7ef183885c3967 100644
--- a/matlab/gsa/cumplot.m
+++ b/matlab/gsa/cumplot.m
@@ -21,7 +21,7 @@ function h = cumplot(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n=length(x);
 x=[-inf; sort(x); Inf];
diff --git a/matlab/gsa/filt_mc_.m b/matlab/gsa/filt_mc_.m
index d8a01df3fc59fac8b244327a15610c293a729f88..d15c6789d1acc495df50b6613fc70c2f4a2060f6 100644
--- a/matlab/gsa/filt_mc_.m
+++ b/matlab/gsa/filt_mc_.m
@@ -29,7 +29,7 @@ function [rmse_MC, ixx] = filt_mc_(OutDir,options_gsa_,dataset_,dataset_info)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global bayestopt_ estim_params_ M_ options_ oo_
 
diff --git a/matlab/gsa/ghx2transition.m b/matlab/gsa/ghx2transition.m
index df404577a9cee5141cef2116cccab0233efe2ac5..227cd89be9433fa86fd9bbef97b480f09aec27a3 100644
--- a/matlab/gsa/ghx2transition.m
+++ b/matlab/gsa/ghx2transition.m
@@ -21,7 +21,7 @@ function [A,B] = ghx2transition(mm,iv,ic,aux)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_ M_
 
diff --git a/matlab/gsa/gsa_plotmatrix.m b/matlab/gsa/gsa_plotmatrix.m
index 1a12a7e8b803cfb15a8fee3cc4ba0bfe2b8b32a1..e80b8af0ac242d784b8a2afa11efa41674cf64ef 100644
--- a/matlab/gsa/gsa_plotmatrix.m
+++ b/matlab/gsa/gsa_plotmatrix.m
@@ -22,7 +22,7 @@ function gsa_plotmatrix(type,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global bayestopt_ options_ M_
 
diff --git a/matlab/gsa/gsa_skewness.m b/matlab/gsa/gsa_skewness.m
index dfb6ccfb92047a58a5b81afcfef69c85fb114ed4..80ac4780cfc10480969238d43e39c576bbc0e056 100644
--- a/matlab/gsa/gsa_skewness.m
+++ b/matlab/gsa/gsa_skewness.m
@@ -20,7 +20,7 @@ function s=gsa_skewness(y)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % y=stand_(y);
 % s=mean(y.^3);
diff --git a/matlab/gsa/gsa_speed.m b/matlab/gsa/gsa_speed.m
index 135036ad2ee18eaaa3278c384f82c524e2054aa1..65b21e622fd67f310ce80358c612b0e2a59959a5 100644
--- a/matlab/gsa/gsa_speed.m
+++ b/matlab/gsa/gsa_speed.m
@@ -21,7 +21,7 @@ function [tadj, iff] = gsa_speed(A,B,mf,p)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvar=length(mf);
 nstate= size(A,1);
diff --git a/matlab/gsa/log_trans_.m b/matlab/gsa/log_trans_.m
index c6011979317ce55e43ec8836437ba37d4e6ae93c..5116e42cb132e1fd35322f132a8aa741384143b9 100644
--- a/matlab/gsa/log_trans_.m
+++ b/matlab/gsa/log_trans_.m
@@ -20,7 +20,7 @@ function [yy, xdir, isig, lam]=log_trans_(y0,xdir0,isig,lam)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin==4
     % inverse transformation
diff --git a/matlab/gsa/map_calibration.m b/matlab/gsa/map_calibration.m
index f58b48fed03ee67a6710aed24e53293a34af8ed6..233f5d897ce9e85dc92989287eed72a2ab8bb578 100644
--- a/matlab/gsa/map_calibration.m
+++ b/matlab/gsa/map_calibration.m
@@ -20,7 +20,7 @@ function map_calibration(OutputDirectoryName, Model, DynareOptions, DynareResult
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fname_ = Model.fname;
 
diff --git a/matlab/gsa/map_ident_.m b/matlab/gsa/map_ident_.m
index 12ed584d5c5dce48ee67855cae92b2fc36d3ef15..66773d7dc62c3e3b467fa769ed98dc277e3359be 100644
--- a/matlab/gsa/map_ident_.m
+++ b/matlab/gsa/map_ident_.m
@@ -20,7 +20,7 @@ function map_ident_(OutputDirectoryName,opt_gsa)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global bayestopt_ M_ options_ estim_params_ oo_
 
diff --git a/matlab/gsa/mc_moments.m b/matlab/gsa/mc_moments.m
index 14d051edad4922cdde91ba2045ffa4b21ea85a02..8023051d98a9f44baead06144ddb6860d1d85c99 100644
--- a/matlab/gsa/mc_moments.m
+++ b/matlab/gsa/mc_moments.m
@@ -15,7 +15,7 @@ function [vdec, cc, ac] = mc_moments(mm, ss, dr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ M_ estim_params_ oo_
 
diff --git a/matlab/gsa/mcf_analysis.m b/matlab/gsa/mcf_analysis.m
index 023985923cfa9496d2def16e33e126edcaaea02d..ebe8ad0c3f76450eea10b9631bbaa04693b33cff 100644
--- a/matlab/gsa/mcf_analysis.m
+++ b/matlab/gsa/mcf_analysis.m
@@ -21,7 +21,7 @@ function indmcf = mcf_analysis(lpmat, ibeha, inobeha, options_mcf, DynareOptions
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 pvalue_ks = options_mcf.pvalue_ks;
 pvalue_corr = options_mcf.pvalue_corr;
diff --git a/matlab/gsa/myboxplot.m b/matlab/gsa/myboxplot.m
index a83ca922c7970cd91d9414085823574cb11555f7..6a5d110a291aa176429d93c3793c7796bf47681f 100644
--- a/matlab/gsa/myboxplot.m
+++ b/matlab/gsa/myboxplot.m
@@ -21,7 +21,7 @@ function sout = myboxplot (data,notched,symbol,vertical,maxwhisker)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % % % % endif
 if nargin < 5 | isempty(maxwhisker), maxwhisker = 1.5; end
diff --git a/matlab/gsa/myprctilecol.m b/matlab/gsa/myprctilecol.m
index 15ddcfcd44ce9cfb705e7128e23ae95f96dbe1ce..3f2ab5f84fea2b03e147b23c1b54500ede38f9af 100644
--- a/matlab/gsa/myprctilecol.m
+++ b/matlab/gsa/myprctilecol.m
@@ -20,7 +20,7 @@ function y = myprctilecol(x,p)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 xx = sort(x);
 [m,n] = size(x);
diff --git a/matlab/gsa/prior_draw_gsa.m b/matlab/gsa/prior_draw_gsa.m
index d772ae22a88a6ade4b631df1eed5c487883496cf..e3b49170981abb1a4cfd154bf5363d45f043e347 100644
--- a/matlab/gsa/prior_draw_gsa.m
+++ b/matlab/gsa/prior_draw_gsa.m
@@ -34,7 +34,7 @@ function pdraw = prior_draw_gsa(init,rdraw)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global bayestopt_ options_ estim_params_ M_
 persistent npar pshape p6 p7 p3 p4 lbcum ubcum
diff --git a/matlab/gsa/priorcdf.m b/matlab/gsa/priorcdf.m
index 7d91c59e06d3d04a89bcc9d55c80031e4fbb14a4..4298ca0062bc26acd4d6b77489999db742dbf852 100644
--- a/matlab/gsa/priorcdf.m
+++ b/matlab/gsa/priorcdf.m
@@ -26,7 +26,7 @@ function xcum = priorcdf(para, pshape, p6, p7, p3, p4)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 for i=1:length(pshape)
     switch pshape(i)
diff --git a/matlab/gsa/read_data.m b/matlab/gsa/read_data.m
index bb2c71a611c19ecc317b5a85bf8b43839eff853a..2c53a325b94d098ce6ee7aec12f776ea59ca8f35 100644
--- a/matlab/gsa/read_data.m
+++ b/matlab/gsa/read_data.m
@@ -19,7 +19,7 @@ function [gend, data] = read_data()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_
 
diff --git a/matlab/gsa/redform_map.m b/matlab/gsa/redform_map.m
index e790cf58ff2e30985a73a41d6ba749d677344b78..62b6b205e7923acda54526fbb88f327bcb57444b 100644
--- a/matlab/gsa/redform_map.m
+++ b/matlab/gsa/redform_map.m
@@ -31,7 +31,7 @@ function redform_map(dirname,options_gsa_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 global M_ oo_ estim_params_ options_ bayestopt_
diff --git a/matlab/gsa/redform_screen.m b/matlab/gsa/redform_screen.m
index d5761531c06497cd3fba1e7634b83f94446f0e1e..b90b0a2d81c31e20fe366d7fcab5532af564309e 100644
--- a/matlab/gsa/redform_screen.m
+++ b/matlab/gsa/redform_screen.m
@@ -26,7 +26,7 @@ function redform_screen(dirname, options_gsa_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ estim_params_ options_ bayestopt_
 
diff --git a/matlab/gsa/scatter_analysis.m b/matlab/gsa/scatter_analysis.m
index d526b3f0eafc5f7a9f28cb92b933c2de5716821d..79e286b576e51d999915f644cfd83f4f91a75508 100644
--- a/matlab/gsa/scatter_analysis.m
+++ b/matlab/gsa/scatter_analysis.m
@@ -21,7 +21,7 @@ function indmcf = scatter_analysis(lpmat, xdata, options_scatter, DynareOptions)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 param_names = options_scatter.param_names;
 
diff --git a/matlab/gsa/scatter_callback.m b/matlab/gsa/scatter_callback.m
index 7d8c327f4862ba15ec56d3a19ffb01fe799dd075..da8bfdb27f0d2d24b64c71f2eaff4d1d4d69293f 100644
--- a/matlab/gsa/scatter_callback.m
+++ b/matlab/gsa/scatter_callback.m
@@ -21,7 +21,7 @@ function  scatter_callback(K, type)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_ M_ options_ bayestopt_ estim_params_
 
diff --git a/matlab/gsa/scatter_mcf.m b/matlab/gsa/scatter_mcf.m
index facea3cfa814f33833b00f505b75254b1191bc23..e711d25ee62a426eef3fe736bbab72d1cda3f80c 100644
--- a/matlab/gsa/scatter_mcf.m
+++ b/matlab/gsa/scatter_mcf.m
@@ -20,7 +20,7 @@ function  scatter_mcf(X,Y,vnames,plotsymbol, fnam, dirname, figtitle, xparam1, D
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % PURPOSE: Pairwise scatter plots of the columns of x and y after
 % Monte Carlo filtering
diff --git a/matlab/gsa/scatter_plots.m b/matlab/gsa/scatter_plots.m
index f9cf1fa4c45c27dba876a23951ca0a5baa646a5a..b6f83eb0d944a43a507b1ad04efe5ee20e360304 100644
--- a/matlab/gsa/scatter_plots.m
+++ b/matlab/gsa/scatter_plots.m
@@ -21,7 +21,7 @@ function scatter_plots(X,xp,vnames,plotsymbol, fnam, dirname, figtitle, xparam1,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % PURPOSE: Pairwise scatter plots of the columns of x and y after
 % Monte Carlo filtering
diff --git a/matlab/gsa/set_shocks_param.m b/matlab/gsa/set_shocks_param.m
index 69c12fdbbcaa7d0fc03010273f3305adff9fe175..5afeb91cfa497f78cc4079a538d2de124c62b1d3 100644
--- a/matlab/gsa/set_shocks_param.m
+++ b/matlab/gsa/set_shocks_param.m
@@ -17,7 +17,7 @@ function set_shocks_param(xparam1)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global estim_params_ M_
 
diff --git a/matlab/gsa/smirnov.m b/matlab/gsa/smirnov.m
index 11dd4df7dfb328f599d8f01b0c0fbe60ebeac50b..0ff1c5e4b12ff8c8edf8235173cbdb989479f124 100644
--- a/matlab/gsa/smirnov.m
+++ b/matlab/gsa/smirnov.m
@@ -22,7 +22,7 @@ function [H,prob,d] = smirnov(x1 , x2 , alpha, iflag )
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     alpha  =  0.05;
diff --git a/matlab/gsa/stab_map_.m b/matlab/gsa/stab_map_.m
index 6758c41fe21c14d56721e15fc712313a535c35c4..4677fcba48fd5fa9a5daf60c15138196903e9f87 100644
--- a/matlab/gsa/stab_map_.m
+++ b/matlab/gsa/stab_map_.m
@@ -50,7 +50,7 @@ function x0 = stab_map_(OutputDirectoryName,opt_gsa)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %global bayestopt_ estim_params_ dr_ options_ ys_ fname_
 global bayestopt_ estim_params_ options_ oo_ M_
diff --git a/matlab/gsa/stab_map_1.m b/matlab/gsa/stab_map_1.m
index 092b50daa439d85b5bb12a17df1739ad0d44e7c0..2aa3cbabd3eb7072c8c5b871d14f06c727e3fa81 100644
--- a/matlab/gsa/stab_map_1.m
+++ b/matlab/gsa/stab_map_1.m
@@ -36,7 +36,7 @@ function [proba, dproba] = stab_map_1(lpmat, ibehaviour, inonbehaviour, aname, i
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global estim_params_ bayestopt_ M_ options_
 
diff --git a/matlab/gsa/stab_map_2.m b/matlab/gsa/stab_map_2.m
index 5fdfa310b6ab66e7e4659353951a808b8e096b58..56dcfe14f1310c66cafe36a3c450c1f3a863685c 100644
--- a/matlab/gsa/stab_map_2.m
+++ b/matlab/gsa/stab_map_2.m
@@ -20,7 +20,7 @@ function indcorr = stab_map_2(x,alpha2, pvalue_crit, fnam, dirname,xparam1,figti
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %global bayestopt_ estim_params_ dr_ options_ ys_ fname_
 global bayestopt_ estim_params_ options_ oo_ M_
diff --git a/matlab/gsa/stand_.m b/matlab/gsa/stand_.m
index 0a53f1a3b62368f7f3240ed03757698f5180a59a..736f825ad1ce42f849f9eaa440546605c034867b 100644
--- a/matlab/gsa/stand_.m
+++ b/matlab/gsa/stand_.m
@@ -28,7 +28,7 @@ function [y, meany, stdy] = stand_(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin==0
     return
diff --git a/matlab/gsa/tcrit.m b/matlab/gsa/tcrit.m
index d65b97a3997f09cfef7c2323137a0edda2a6f557..9c46326b72516d23ec810035e97b6ff3e4efc379 100644
--- a/matlab/gsa/tcrit.m
+++ b/matlab/gsa/tcrit.m
@@ -24,7 +24,7 @@ function t_crit = tcrit(n,pval0)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if nargin==1 || isempty(pval0)
diff --git a/matlab/gsa/teff.m b/matlab/gsa/teff.m
index 8ebea8d1c798050deba55f3a26d04599708b785a..6318cdc26ffefb83321fb613b02b33258dd6ed6e 100644
--- a/matlab/gsa/teff.m
+++ b/matlab/gsa/teff.m
@@ -24,7 +24,7 @@ function [yt, j0, ir, ic]=teff(T,Nsam,istable)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ndim = (length(size(T)));
 if ndim==3
diff --git a/matlab/gsa/th_moments.m b/matlab/gsa/th_moments.m
index ff0324da8f1788f611980989d692cb421d4015af..fd53baecba0052f703ef4c45a12bf67353da3c47 100644
--- a/matlab/gsa/th_moments.m
+++ b/matlab/gsa/th_moments.m
@@ -16,7 +16,7 @@ function [vdec, corr, autocorr, z, zz] = th_moments(dr,var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/gsa/trank.m b/matlab/gsa/trank.m
index eb39f16478ef835c48c0e69eea62313e3731a008..f48012e5ac6401baa80e5342454aa458192366b8 100644
--- a/matlab/gsa/trank.m
+++ b/matlab/gsa/trank.m
@@ -25,7 +25,7 @@ function yr = trank(y)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [nr, nc] = size(y);
 for j=1:nc
diff --git a/matlab/hess_element.m b/matlab/hess_element.m
index 5af38ecd2a112d6f66d0f1b806c0e4b53bee9622..5cc8c1008f3b14449fe339b83019931a041e5ff7 100644
--- a/matlab/hess_element.m
+++ b/matlab/hess_element.m
@@ -29,7 +29,7 @@ function d=hess_element(func,element1,element2,args)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 assert(element1 <= length(args) && element2 <= length(args));
 
diff --git a/matlab/hessian.m b/matlab/hessian.m
index 844251f7cf5c95a099f16b01ac7d29824845b1c2..c0b2a32367023c2e9dbcd12ae7ef8370592c8c44 100644
--- a/matlab/hessian.m
+++ b/matlab/hessian.m
@@ -41,7 +41,7 @@ function hessian_mat = hessian(func,x, gstep, varargin) % --*-- Unitary tests --
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isa(func, 'function_handle')
     func = str2func(func);
diff --git a/matlab/hessian_sparse.m b/matlab/hessian_sparse.m
index 1d7a75dbed87dd5ede7b82f5b6c67982d583bd36..bd26158e1b30ee66f4ebe4ee2932f2b8464ae5e4 100644
--- a/matlab/hessian_sparse.m
+++ b/matlab/hessian_sparse.m
@@ -33,7 +33,7 @@ function hessian_mat = hessian_sparse(func,x,gstep,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isa(func, 'function_handle')
     func = str2func(func);
diff --git a/matlab/histvalf.m b/matlab/histvalf.m
index cb2d1d4966f18b73110426ebfd51a37e4e14e980..7a1f72f5618f6c816731f8d479e679665e2e2332 100644
--- a/matlab/histvalf.m
+++ b/matlab/histvalf.m
@@ -28,7 +28,7 @@ function [endo_histval, exo_histval, exo_det_histval] = histvalf(M, options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 series = histvalf_initvalf('HISTVAL', M, options);
 k = M.orig_maximum_lag - M.maximum_lag + 1;
diff --git a/matlab/histvalf_initvalf.m b/matlab/histvalf_initvalf.m
index 80faa595e69d5bfa8ed71c25487359e87370f119..ac0b251688248282d8585ab1f25416deba961667 100644
--- a/matlab/histvalf_initvalf.m
+++ b/matlab/histvalf_initvalf.m
@@ -27,7 +27,7 @@ function series = histvalf_initvalf(caller, M, options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % dseries
diff --git a/matlab/homotopy1.m b/matlab/homotopy1.m
index e849fceca4f632f821d6219488a7321718fa7847..18624af4171e3dfd99e7da9e67cb7fd7e6c3dc8c 100644
--- a/matlab/homotopy1.m
+++ b/matlab/homotopy1.m
@@ -45,7 +45,7 @@ function [M,oo,info,ip,ix,ixd] = homotopy1(values, step_nbr, M, options, oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nv = size(values, 1);
 
diff --git a/matlab/homotopy2.m b/matlab/homotopy2.m
index f43d4fffc2c39132a0bbf13c96fa3182890974e5..ac4c4cf6f6ae8b1779ae1d602387869f7cdf5926 100644
--- a/matlab/homotopy2.m
+++ b/matlab/homotopy2.m
@@ -40,7 +40,7 @@ function homotopy2(values, step_nbr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/homotopy3.m b/matlab/homotopy3.m
index b4b46d6f281389761ded8ff327b3890fc3acb4f1..2471fd56d4eb67ffd662ffcc10ce74163b70ef9f 100644
--- a/matlab/homotopy3.m
+++ b/matlab/homotopy3.m
@@ -48,7 +48,7 @@ function [M,oo,info,ip,ix,ixd]=homotopy3(values, step_nbr, M, options, oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = [];
 tol = 1e-8;
diff --git a/matlab/ident_bruteforce.m b/matlab/ident_bruteforce.m
index 50396a232bb97056f3b00cd9b9594df4a28003c9..15298093c6a5f4c137ada5b7cc48e13c7e1b631f 100644
--- a/matlab/ident_bruteforce.m
+++ b/matlab/ident_bruteforce.m
@@ -35,7 +35,7 @@ function [pars, cosnJ] = ident_bruteforce(J, max_dim_cova_group, TeX, name_tex,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 global M_ options_
diff --git a/matlab/identification_analysis.m b/matlab/identification_analysis.m
index 5f2b47660e73354c3306b91669e7a95998704c1d..ed206a443bf2a6d629b6017b6a560704fc0bc1fe 100644
--- a/matlab/identification_analysis.m
+++ b/matlab/identification_analysis.m
@@ -86,7 +86,7 @@ function [ide_moments, ide_spectrum, ide_minimal, ide_hess, ide_reducedform, ide
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 global oo_ M_ options_ bayestopt_ estim_params_
diff --git a/matlab/identification_checks.m b/matlab/identification_checks.m
index cb6717470dd5d1dd87c4efeab975bbdf175da372..b59d994079ebe8fe993c6ea0cb51b9efc0608432 100644
--- a/matlab/identification_checks.m
+++ b/matlab/identification_checks.m
@@ -46,7 +46,7 @@ function [condX, rankX, ind0, indno, ixno, Mco, Pco, jweak, jweak_pair] = identi
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 if issparse(X)
     X = full(X);
diff --git a/matlab/identification_checks_via_subsets.m b/matlab/identification_checks_via_subsets.m
index 63a9bbce322bf77d2c7cf30e702f632702237ce1..d91bee797317865802e06eaeb76841861c4dd38b 100644
--- a/matlab/identification_checks_via_subsets.m
+++ b/matlab/identification_checks_via_subsets.m
@@ -66,7 +66,7 @@ function [ide_dynamic, ide_reducedform, ide_moments, ide_spectrum, ide_minimal]
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 %% initialize output objects and get options
diff --git a/matlab/identification_numerical_objective.m b/matlab/identification_numerical_objective.m
index f38575af9d352bc89e1ca4893311138d0152f964..20af6d528a0af275bdbf261558265b06f5b9528e 100644
--- a/matlab/identification_numerical_objective.m
+++ b/matlab/identification_numerical_objective.m
@@ -53,7 +53,7 @@ function out = identification_numerical_objective(params, outputflag, estim_para
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 %% Update stderr, corr and model parameters
diff --git a/matlab/imcforecast.m b/matlab/imcforecast.m
index c34ebfb57d56c80a1b9deeaef70c81d155d4072d..564420134553ec5239d16b2f69b48ec24c90da48 100644
--- a/matlab/imcforecast.m
+++ b/matlab/imcforecast.m
@@ -43,7 +43,7 @@ function imcforecast(constrained_paths, constrained_vars, options_cond_fcst)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_ bayestopt_ estim_params_
 
diff --git a/matlab/indnv.m b/matlab/indnv.m
index 0cc88ab5bbe4ce1d64ed99f52d74dc35d80ed477..0d8a93749bd8218b7cbd63816e1b3f82051790ee 100644
--- a/matlab/indnv.m
+++ b/matlab/indnv.m
@@ -28,7 +28,7 @@ function a=indnv(x,y)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 a = zeros(size(x)) ;
 
diff --git a/matlab/init_plan.m b/matlab/init_plan.m
index 2ae80178479e5f90182aa8dc4692b076fc3518e4..2e713db4b22665f784f24b889a7062b70bfedfb3 100644
--- a/matlab/init_plan.m
+++ b/matlab/init_plan.m
@@ -24,7 +24,7 @@ function plan = init_plan(date)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global M_
 plan = struct();
 plan.date = date;
diff --git a/matlab/initial_condition_decomposition.m b/matlab/initial_condition_decomposition.m
index 4b8ee91734ffeea28b21da0def890a4d5ce8f179..12fc342268c5be037366e66f8b528206464a0e3a 100644
--- a/matlab/initial_condition_decomposition.m
+++ b/matlab/initial_condition_decomposition.m
@@ -36,7 +36,7 @@ function oo_ = initial_condition_decomposition(M_,oo_,options_,varlist,bayestopt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options_.plot_shock_decomp.colormap = options_.initial_condition_decomp.colormap;
 options_.plot_shock_decomp.nodisplay = options_.initial_condition_decomp.nodisplay;
diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m
index 36096b87891044ea81e96d3e82f18bb098d41781..e3ebd766fafb1a93ebc40b74aaf4cab6c61bb90f 100644
--- a/matlab/initial_estimation_checks.m
+++ b/matlab/initial_estimation_checks.m
@@ -35,7 +35,7 @@ function DynareResults = initial_estimation_checks(objective_function,xparam1,Dy
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %get maximum number of simultaneously observed variables for stochastic
 %singularity check
diff --git a/matlab/initialize_from_mode.m b/matlab/initialize_from_mode.m
index 35d643ab3cc155cc1c045a291f0df5a350c465d9..2daaecaebcc40acb02841212df0217c75120d86a 100644
--- a/matlab/initialize_from_mode.m
+++ b/matlab/initialize_from_mode.m
@@ -29,7 +29,7 @@ function estim_params_ = initialize_from_mode(fname,M_,estim_params_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 load(fname,'xparam1','parameter_names');
diff --git a/matlab/initvalf.m b/matlab/initvalf.m
index c6c9449c00e5571905aa125f1a4f69a507045774..707d349e17b901838e2580ec866956270850e6e7 100644
--- a/matlab/initvalf.m
+++ b/matlab/initvalf.m
@@ -27,6 +27,6 @@ function series = initvalf(M, options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 series = histvalf_initvalf('INITVALF', M, options);
\ No newline at end of file
diff --git a/matlab/internals.m b/matlab/internals.m
index a6238f1af2c66ddba4fb89373970b9163118afbc..1bda89660ed31808113fe6a6470532db1476bedf 100644
--- a/matlab/internals.m
+++ b/matlab/internals.m
@@ -71,7 +71,7 @@ function internals(flag, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/irf.m b/matlab/irf.m
index 33f9e9fb1ca2e9a5df381a6e0d8c3459f0f1a8c0..6a2f391f202d01c6a39e4c583e87cdfd0ecb37c7 100644
--- a/matlab/irf.m
+++ b/matlab/irf.m
@@ -33,7 +33,7 @@ function y = irf(M_, options_, dr, e1, long, drop, replic, iorder)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if M_.maximum_lag >= 1
     temps = repmat(dr.ys,1,M_.maximum_lag);
diff --git a/matlab/isauxiliary.m b/matlab/isauxiliary.m
index da57d5ed0575a78618ae356e2f7c6523c448883a..256af69314dd88964c56dd425340a27d753526f9 100644
--- a/matlab/isauxiliary.m
+++ b/matlab/isauxiliary.m
@@ -41,7 +41,7 @@ function b = isauxiliary(var, types)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/isbayes.m b/matlab/isbayes.m
index 5921f67bc98f72fe84b82032f58aceb6ab03a916..cc8e2ec2c4e5f556794aeb18f354a23f0fb9f5e4 100644
--- a/matlab/isbayes.m
+++ b/matlab/isbayes.m
@@ -17,7 +17,7 @@ function l = isbayes(estim_params_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 l = false;
 
diff --git a/matlab/isdiff.m b/matlab/isdiff.m
index 9eae16dd40682e0bdbd3b3af95e37ae956314de0..dcb57efe9e7b95de09a32d17332d1798cd60ec37 100644
--- a/matlab/isdiff.m
+++ b/matlab/isdiff.m
@@ -23,7 +23,7 @@ function boo = isdiff(var)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/islagof.m b/matlab/islagof.m
index 271cbe1861c9550cb88352dcab6a444b0ae86a38..92b21312b3020bac552d30772ca8a1de48f76952 100644
--- a/matlab/islagof.m
+++ b/matlab/islagof.m
@@ -24,7 +24,7 @@ function b = islagof(v1, v2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/isoctave.m b/matlab/isoctave.m
index 22941ce9e9e8d3bab51503ddb7d6022ed2549de9..af60fda22103ac900c8aa0405c3d7dc9b20949d6 100644
--- a/matlab/isoctave.m
+++ b/matlab/isoctave.m
@@ -15,6 +15,6 @@ function A = isoctave()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 A = exist('OCTAVE_VERSION');
\ No newline at end of file
diff --git a/matlab/isolder.m b/matlab/isolder.m
index 2c4de8bfd307d6f2572e1e5e6bba2e42374deb7b..a7868ca2fba62daaf4616a13880488746186b84b 100644
--- a/matlab/isolder.m
+++ b/matlab/isolder.m
@@ -24,7 +24,7 @@ function b = isolder(f, F) % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<2 || isempty(F)
     F = pwd();
diff --git a/matlab/iszero.m b/matlab/iszero.m
index b8efdd0e0eb4a01c8114f26486e2386d24270e39..ec3fac0d26d5522544f9699d5752f0c4e213feeb 100644
--- a/matlab/iszero.m
+++ b/matlab/iszero.m
@@ -17,6 +17,6 @@ function b = iszero(A)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 b = all(~A(:));
\ No newline at end of file
diff --git a/matlab/jacob_element.m b/matlab/jacob_element.m
index 4f49cdbab917e1b291092770612e36f2e7368ed9..b1563946f4da6be102064b4e6441a6b90af238da 100644
--- a/matlab/jacob_element.m
+++ b/matlab/jacob_element.m
@@ -28,7 +28,7 @@ function d=jacob_element(func,element,args)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 assert(element <= length(args));
 
diff --git a/matlab/k_order_pert.m b/matlab/k_order_pert.m
index beaa621b68212ec40d60aa1ed6ac72497d062dc9..eca45d693dc0a47ee2ff9a1514c9a0cb19be32a4 100644
--- a/matlab/k_order_pert.m
+++ b/matlab/k_order_pert.m
@@ -16,7 +16,7 @@ function [dr,info] = k_order_pert(dr,M,options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 
diff --git a/matlab/kalman/build_selection_matrix.m b/matlab/kalman/build_selection_matrix.m
index e9899591c2cd04dcc0291423a0d22159b450ad19..a26c73d7e71d8c24bc3388b94fc7bf3888795547 100644
--- a/matlab/kalman/build_selection_matrix.m
+++ b/matlab/kalman/build_selection_matrix.m
@@ -17,7 +17,7 @@ function Z = build_selection_matrix(mf,m,p)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 Z = zeros(p,m);
 for i=1:p
     Z(i,mf(i)) = 1;
diff --git a/matlab/kalman/likelihood/computeDLIK.m b/matlab/kalman/likelihood/computeDLIK.m
index 0fc417220c2a3f43314138bd0f656f5395655dfa..cd457ffbd751bba55bc687b3d47cbf8d456537cd 100644
--- a/matlab/kalman/likelihood/computeDLIK.m
+++ b/matlab/kalman/likelihood/computeDLIK.m
@@ -15,7 +15,7 @@ function [Da,DP,DLIK,D2a,D2P,Hesst] = computeDLIK(k,tmp,Z,Zflag,v,T,K,P,iF,Da,DY
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) marco.ratto@jrc.ec.europa.eu
 
diff --git a/matlab/kalman/likelihood/kalman_filter.m b/matlab/kalman/likelihood/kalman_filter.m
index cc01d5089277c1c6bc785de0858412ed4ff044c9..0abc553ba931072599b471bf4e8b0d34b0be7b7a 100644
--- a/matlab/kalman/likelihood/kalman_filter.m
+++ b/matlab/kalman/likelihood/kalman_filter.m
@@ -86,7 +86,7 @@ function [LIK, LIKK, a, P] = kalman_filter(Y,start,last,a,P,kalman_tol,riccati_t
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set defaults.
 if nargin<17
diff --git a/matlab/kalman/likelihood/kalman_filter_d.m b/matlab/kalman/likelihood/kalman_filter_d.m
index 1f6e21247b9ab29527092ad4a67bd166938d1bcf..fb8786dba8a40e22c7ff7e1d82be3ae762a0160c 100644
--- a/matlab/kalman/likelihood/kalman_filter_d.m
+++ b/matlab/kalman/likelihood/kalman_filter_d.m
@@ -52,7 +52,7 @@ function [dLIK,dlik,a,Pstar] = kalman_filter_d(Y, start, last, a, Pinf, Pstar, k
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get sample size.
 smpl = last-start+1;
diff --git a/matlab/kalman/likelihood/kalman_filter_fast.m b/matlab/kalman/likelihood/kalman_filter_fast.m
index 7ab98689da190730b7f4d60ebac4ef85be8d9b00..d45042379b834be0405583def85769f6ef957d2a 100644
--- a/matlab/kalman/likelihood/kalman_filter_fast.m
+++ b/matlab/kalman/likelihood/kalman_filter_fast.m
@@ -89,7 +89,7 @@ function [LIK, LIKK, a, P] = kalman_filter_fast(Y,start,last,a,P,kalman_tol,ricc
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % Set defaults.
diff --git a/matlab/kalman/likelihood/kalman_filter_ss.m b/matlab/kalman/likelihood/kalman_filter_ss.m
index 545258300a60b86b8b3c2e313f366ab2ba3fb184..7985acbc94c08fdbd536827fc38c7a4641b27e4f 100644
--- a/matlab/kalman/likelihood/kalman_filter_ss.m
+++ b/matlab/kalman/likelihood/kalman_filter_ss.m
@@ -69,7 +69,7 @@ function [LIK, likk, a] = kalman_filter_ss(Y,start,last,a,T,K,iF,log_dF,Z,pp,Zfl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/kalman/likelihood/missing_observations_kalman_filter.m b/matlab/kalman/likelihood/missing_observations_kalman_filter.m
index c751b464eb9acce5ca256a5b2d11cd044a8b670a..fa8b989904d89f583d62337cb4b4c088b08dfa25 100644
--- a/matlab/kalman/likelihood/missing_observations_kalman_filter.m
+++ b/matlab/kalman/likelihood/missing_observations_kalman_filter.m
@@ -47,7 +47,7 @@ function  [LIK, lik, a, P] = missing_observations_kalman_filter(data_index,numbe
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set defaults
 if nargin<20
diff --git a/matlab/kalman/likelihood/missing_observations_kalman_filter_d.m b/matlab/kalman/likelihood/missing_observations_kalman_filter_d.m
index ed39959de53a13f92e1c60b0eaa4185a73a8608e..31320d5678d44831b0611b27d03482b7455d19c3 100644
--- a/matlab/kalman/likelihood/missing_observations_kalman_filter_d.m
+++ b/matlab/kalman/likelihood/missing_observations_kalman_filter_d.m
@@ -57,7 +57,7 @@ function [dLIK,dlik,a,Pstar] = missing_observations_kalman_filter_d(data_index,n
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % Get sample size.
diff --git a/matlab/kalman/likelihood/univariate_computeDLIK.m b/matlab/kalman/likelihood/univariate_computeDLIK.m
index 083fb12db92938c23ae10c6679809459573fa42d..de8b8a0059d67c7dac55075635ad196e2b43a305 100644
--- a/matlab/kalman/likelihood/univariate_computeDLIK.m
+++ b/matlab/kalman/likelihood/univariate_computeDLIK.m
@@ -15,7 +15,7 @@ function [Da,DP1,DLIK,D2a,D2P,Hesst] = univariate_computeDLIK(k,indx,Z,Zflag,v,K
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) marco.ratto@jrc.ec.europa.eu
 
diff --git a/matlab/kalman/likelihood/univariate_computeDstate.m b/matlab/kalman/likelihood/univariate_computeDstate.m
index eecee428eb4f3bcf2608e4434dce2c7baf4c4d89..201222510948a8767dd3229cef6ca5f7a4cfd275 100644
--- a/matlab/kalman/likelihood/univariate_computeDstate.m
+++ b/matlab/kalman/likelihood/univariate_computeDstate.m
@@ -15,7 +15,7 @@ function [Da1,DP1,D2a,D2P] = univariate_computeDstate(k,a,P,T,Da,DP,DT,DOm,notst
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) marco.ratto@jrc.ec.europa.eu
 
diff --git a/matlab/kalman/likelihood/univariate_kalman_filter.m b/matlab/kalman/likelihood/univariate_kalman_filter.m
index f186daf79fd0ea5fd55bc9c65123f084979e88b3..7303f80fa5270b3cfa409bbb140b49ec1183d66b 100644
--- a/matlab/kalman/likelihood/univariate_kalman_filter.m
+++ b/matlab/kalman/likelihood/univariate_kalman_filter.m
@@ -99,7 +99,7 @@ function [LIK, lik,a,P] = univariate_kalman_filter(data_index,number_of_observat
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/kalman/likelihood/univariate_kalman_filter_d.m b/matlab/kalman/likelihood/univariate_kalman_filter_d.m
index afd280cb608590e15dc29f28d537d8387ee700a7..c6c9e10b1d4ddb3517dd2af719f0dd3962859965 100644
--- a/matlab/kalman/likelihood/univariate_kalman_filter_d.m
+++ b/matlab/kalman/likelihood/univariate_kalman_filter_d.m
@@ -102,7 +102,7 @@ function [dLIK, dlikk, a, Pstar, llik] = univariate_kalman_filter_d(data_index,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get sample size.
 smpl = last-start+1;
diff --git a/matlab/kalman/likelihood/univariate_kalman_filter_ss.m b/matlab/kalman/likelihood/univariate_kalman_filter_ss.m
index e67a87f18b4c6360e6ce077722f2cb00d04ecf11..817851be8bbc5b4ac4fdb004cdfb9df63e4fef84 100644
--- a/matlab/kalman/likelihood/univariate_kalman_filter_ss.m
+++ b/matlab/kalman/likelihood/univariate_kalman_filter_ss.m
@@ -72,7 +72,7 @@ function [LIK,likk,a] = univariate_kalman_filter_ss(Y,start,last,a,P,kalman_tol,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/kalman/steady_state_kalman_gain.m b/matlab/kalman/steady_state_kalman_gain.m
index c40761d4a7b0e9193646dccd12fa24bf60171c22..fc60fb31c3f205d82d7b4309c6be24dc969a99f5 100644
--- a/matlab/kalman/steady_state_kalman_gain.m
+++ b/matlab/kalman/steady_state_kalman_gain.m
@@ -32,7 +32,7 @@ function [K,iF,P] = steady_state_kalman_gain(T,R,Q,H,mf)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 m = length(T);
 p = length(mf);
diff --git a/matlab/kalman_transition_matrix.m b/matlab/kalman_transition_matrix.m
index f79b436cd09c3d1d99cb50f6b7ab984053d62bdd..3876a495214a74cb8d9259182e7602666c1dc59a 100644
--- a/matlab/kalman_transition_matrix.m
+++ b/matlab/kalman_transition_matrix.m
@@ -30,7 +30,7 @@ function [A,B] = kalman_transition_matrix(dr,iv,ic,exo_nbr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n_iv = length(iv);
 
diff --git a/matlab/kernel_density_estimate.m b/matlab/kernel_density_estimate.m
index c0492768191bb31b5bf9fbba93885770f451a1b1..c7a29c29bcda9fa7be140ac90e8b1c3318ab7ccc 100644
--- a/matlab/kernel_density_estimate.m
+++ b/matlab/kernel_density_estimate.m
@@ -39,7 +39,7 @@ function [abscissa,f] = kernel_density_estimate(data,number_of_grid_points,numbe
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if min(size(data))>1
     error('kernel_density_estimate:: data must be a one dimensional array.');
diff --git a/matlab/list_of_parameters_calibrated_as_Inf.m b/matlab/list_of_parameters_calibrated_as_Inf.m
index 9a42854579cf41d1a339ffdbf90e48d8406460d3..2635498d3c0f530cbfca8161cbc0f883765a07f3 100644
--- a/matlab/list_of_parameters_calibrated_as_Inf.m
+++ b/matlab/list_of_parameters_calibrated_as_Inf.m
@@ -28,7 +28,7 @@ function list = list_of_parameters_calibrated_as_Inf(M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 idx  = find(isinf(M_.params));
 nnn  = length(idx);
diff --git a/matlab/list_of_parameters_calibrated_as_NaN.m b/matlab/list_of_parameters_calibrated_as_NaN.m
index 9c39b4cbeb347bcf1c04f74a9789f363f3eb0e54..13b9cb23e7d398622623b10b914cdf608ee63cca 100644
--- a/matlab/list_of_parameters_calibrated_as_NaN.m
+++ b/matlab/list_of_parameters_calibrated_as_NaN.m
@@ -29,7 +29,7 @@ function list = list_of_parameters_calibrated_as_NaN(M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 idx  = find(isnan(M_.params));
 nnn  = length(idx);
diff --git a/matlab/lmmcp/dyn_lmmcp.m b/matlab/lmmcp/dyn_lmmcp.m
index 94af7671d327d9dc955b768bdcca4691edb4a34f..fa05f0f2b90ff4d215d7dbc89887f270527217a8 100644
--- a/matlab/lmmcp/dyn_lmmcp.m
+++ b/matlab/lmmcp/dyn_lmmcp.m
@@ -15,7 +15,7 @@ function [endo_simul,info] = dyn_lmmcp(M,options,oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [lb,ub,eq_index] = get_complementarity_conditions(M);
 
diff --git a/matlab/lmmcp/dyn_lmmcp_func.m b/matlab/lmmcp/dyn_lmmcp_func.m
index 0da1f7565fd77c50fb476e6a056f8ba249af0cbd..dae610fe92c1b99ad1b6a6e7e7836cc3da23c580 100644
--- a/matlab/lmmcp/dyn_lmmcp_func.m
+++ b/matlab/lmmcp/dyn_lmmcp_func.m
@@ -18,7 +18,7 @@ function [F,A] = dyn_lmmcp_func(x, model_dynamic, Y0, YT, exo_simul, params, ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 Y = [Y0; x; YT];
 
diff --git a/matlab/lmmcp/get_complementarity_conditions.m b/matlab/lmmcp/get_complementarity_conditions.m
index 9cc6044eb402d035d4b3b3250dd183f6c38c8295..a22e61a15a4abc81777ddff8ba3ec448df57a055 100644
--- a/matlab/lmmcp/get_complementarity_conditions.m
+++ b/matlab/lmmcp/get_complementarity_conditions.m
@@ -27,7 +27,7 @@ function [lb,ub,eq_index] = get_complementarity_conditions(M_,ramsey_policy)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ub = inf(M_.endo_nbr,1);
 lb = -ub;
diff --git a/matlab/lnsrch1.m b/matlab/lnsrch1.m
index 780863848f11768451943239cdd5b017aa12075d..76204dd59e98ff8d7eaad0331221d6e2fa470339 100644
--- a/matlab/lnsrch1.m
+++ b/matlab/lnsrch1.m
@@ -39,7 +39,7 @@ function [x,f,fvec,check]=lnsrch1(xold, fold, g, p, stpmax, func, j1, j2, tolx,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 alf = 1e-4 ;
 alam = 1;
diff --git a/matlab/load_first_mh_history_file.m b/matlab/load_first_mh_history_file.m
index b99c8ccbfa724c1700917e992aee82b0abe60946..763e8bd0cd78499eb072b0d19c6e5db30a222a49 100644
--- a/matlab/load_first_mh_history_file.m
+++ b/matlab/load_first_mh_history_file.m
@@ -17,7 +17,7 @@ function info = load_first_mh_history_file(MetropolisFolder, ModelName)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % record is also a Matlab function.
 record = 0;
diff --git a/matlab/load_last_mh_history_file.m b/matlab/load_last_mh_history_file.m
index 2874dbffd22921c3a7223925e817ac5991ca5379..4b00c6abd376fdde4259b6d099db9d9fb1c3e3cc 100644
--- a/matlab/load_last_mh_history_file.m
+++ b/matlab/load_last_mh_history_file.m
@@ -25,7 +25,7 @@ function info = load_last_mh_history_file(MetropolisFolder, ModelName)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % record is also a Matlab function.
 record = 0;
diff --git a/matlab/load_m_file_data_legacy.m b/matlab/load_m_file_data_legacy.m
index 6b404774f38538eecf2a4e4f18292bae66f4b6f4..61e73e3b7cd884bb2a9f6c93d6e394df2cdead39 100644
--- a/matlab/load_m_file_data_legacy.m
+++ b/matlab/load_m_file_data_legacy.m
@@ -15,7 +15,7 @@ function o2WysrOISH  = load_m_file_data_legacy(datafile, U7ORsJ0vy3) % --*-- Uni
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 cXDHdrXnqo5KwwVpTRuc6OprAW = datafile(1:end-2);
 [pathtocXDHdrXnqo5KwwVpTRuc6OprAW,cXDHdrXnqo5KwwVpTRuc6OprAW,~] = fileparts(cXDHdrXnqo5KwwVpTRuc6OprAW);
diff --git a/matlab/load_mat_file_data_legacy.m b/matlab/load_mat_file_data_legacy.m
index f0c626864cde5483768b07f8d59012ca24de5572..9f802eeda85983d775b772d4fc213352dc79dffe 100644
--- a/matlab/load_mat_file_data_legacy.m
+++ b/matlab/load_mat_file_data_legacy.m
@@ -15,7 +15,7 @@ function data  = load_mat_file_data_legacy(datafile, varobs)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 data_file=load(datafile);
 
diff --git a/matlab/loadjson_.m b/matlab/loadjson_.m
index c92bf0f5cc9fe7f413aea13befb50eb52b09ea4d..49d79b2be3a0b32a81461e76f51cc75766a24d6a 100644
--- a/matlab/loadjson_.m
+++ b/matlab/loadjson_.m
@@ -28,7 +28,7 @@ function o = loadjson_(jsonfilename)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isoctave() || matlab_ver_less_than('9.1')
     o = loadjson(jsonfilename);
diff --git a/matlab/logarithmic_reduction.m b/matlab/logarithmic_reduction.m
index 4d7d0d1329caada83cc9ce179a58a0dd39445c80..cb0ba4099fa86d36ad603f498cfb56af1aff11ee 100644
--- a/matlab/logarithmic_reduction.m
+++ b/matlab/logarithmic_reduction.m
@@ -58,7 +58,7 @@ function [X1, info] = logarithmic_reduction(A,B,C,tol,maxit,check)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 
diff --git a/matlab/long_run_variance.m b/matlab/long_run_variance.m
index 944837f41ef0dd432d44e5e3df2115a8b1ff36f2..0707fccfc39b3de2dfc7cb3d389f5ae812ce6d41 100644
--- a/matlab/long_run_variance.m
+++ b/matlab/long_run_variance.m
@@ -26,7 +26,7 @@ function sigma = long_run_variance(data,band)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 verbose = 1;
 
diff --git a/matlab/lpdfgam.m b/matlab/lpdfgam.m
index 4a9230bb0e703d65a5fb02b4d3aa83d2aea4a035..0b292456c38390aa524497fd1b22da0cedd6c33c 100644
--- a/matlab/lpdfgam.m
+++ b/matlab/lpdfgam.m
@@ -29,7 +29,7 @@ function  [ldens,Dldens,D2ldens] = lpdfgam(x,a,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ldens = -Inf( size(x) ) ;
 idx = find( x>0 );
diff --git a/matlab/lpdfgbeta.m b/matlab/lpdfgbeta.m
index 7d8e189a250c9e30ea7cb03956b110f100347193..d9be7557bc69d6178accf1f8763581e1e15396f1 100644
--- a/matlab/lpdfgbeta.m
+++ b/matlab/lpdfgbeta.m
@@ -31,7 +31,7 @@ function [ldens,Dldens,D2ldens] = lpdfgbeta(x,a,b,aa,bb)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ldens = -Inf( size(x) ) ;
 idx = find( (x-aa)>0 & (x-bb)<0 ) ;
diff --git a/matlab/lpdfig1.m b/matlab/lpdfig1.m
index 8de3dbb7aa35f8ebbc6095987933a82c1b868440..0da9aa470e816f87f07004788e9eac3f3d006858 100644
--- a/matlab/lpdfig1.m
+++ b/matlab/lpdfig1.m
@@ -34,7 +34,7 @@ function [ldens,Dldens,D2ldens] = lpdfig1(x,s,nu)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ldens = -Inf( size(x) ) ;
 idx = find( x>0 ) ;
diff --git a/matlab/lpdfig2.m b/matlab/lpdfig2.m
index 162bc3eaf77e17a79ed56285feec50ec63b25a6a..c20dcc9c28713f77454c7297374b8a363e9710fe 100644
--- a/matlab/lpdfig2.m
+++ b/matlab/lpdfig2.m
@@ -34,7 +34,7 @@ function [ldens,Dldens,D2ldens] = lpdfig2(x,s,nu)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ldens = -Inf( size(x) ) ;
 idx = find( x>0 ) ;
diff --git a/matlab/lpdfnorm.m b/matlab/lpdfnorm.m
index 280771d7be3394407490cfd6c73a9fc5be70bc0c..6e4a29445f5f4b666195fc11598b65a4df1a8b06 100644
--- a/matlab/lpdfnorm.m
+++ b/matlab/lpdfnorm.m
@@ -29,7 +29,7 @@ function  [ldens,Dldens,D2ldens] = lpdfnorm(x,a,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3, b=1; end
 if nargin<2, a=0; end
diff --git a/matlab/lyapunov_solver.m b/matlab/lyapunov_solver.m
index 74a35bd3e46bfe494cec1ec7ad9ac3c4e6f1a9f4..be39d0d41e8289fbb3d3d638b9341735e4fc90a6 100644
--- a/matlab/lyapunov_solver.m
+++ b/matlab/lyapunov_solver.m
@@ -38,7 +38,7 @@ function P=lyapunov_solver(T,R,Q,DynareOptions) % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if DynareOptions.lyapunov_fp
     P = lyapunov_symm(T,R*Q*R',DynareOptions.lyapunov_fixed_point_tol,DynareOptions.qz_criterium,DynareOptions.lyapunov_complex_threshold, 3, DynareOptions.debug);
diff --git a/matlab/lyapunov_symm.m b/matlab/lyapunov_symm.m
index 53eaf9e4c1810645ffb91bd09fb67ed57794807c..e05df0b01a7ae3fff2cb2ce39538e0e250b9062d 100644
--- a/matlab/lyapunov_symm.m
+++ b/matlab/lyapunov_symm.m
@@ -40,7 +40,7 @@ function [x,u] = lyapunov_symm(a,b,lyapunov_fixed_point_tol,qz_criterium,lyapuno
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<6 || isempty(method)
     method = 0;
diff --git a/matlab/marginal_density.m b/matlab/marginal_density.m
index 1179fb50c1dd6f7062d1af2649b28341fdc25e1e..995df30a8e6489f69ca28bfcf35582b327210041 100644
--- a/matlab/marginal_density.m
+++ b/matlab/marginal_density.m
@@ -30,7 +30,7 @@ function [marginal,oo_] = marginal_density(M_, options_, estim_params_, oo_, bay
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 npar = estim_params_.np+estim_params_.nvn+estim_params_.ncx+estim_params_.ncn+estim_params_.nvx;
diff --git a/matlab/matlab_ver_less_than.m b/matlab/matlab_ver_less_than.m
index 10cd640d2461f32d25669e82e8dca04c307844ea..3070965dc5572f11006ff3a17c751b49d4782191 100644
--- a/matlab/matlab_ver_less_than.m
+++ b/matlab/matlab_ver_less_than.m
@@ -30,6 +30,6 @@ function r = matlab_ver_less_than(verstr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 r = verLessThan('matlab', verstr);
diff --git a/matlab/maximize_prior_density.m b/matlab/maximize_prior_density.m
index 9f79e44a4ab80a4d058fac6179ad391bfbe065af..f866bc5819ff20cdfcb57b2811df3d7e00b9e585 100644
--- a/matlab/maximize_prior_density.m
+++ b/matlab/maximize_prior_density.m
@@ -30,7 +30,7 @@ function [xparams,lpd,hessian_mat] = ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [xparams, lpd, exitflag, hessian_mat]=dynare_minimize_objective('minus_logged_prior_density', ...
                                                   iparams, DynareOptions.mode_compute, DynareOptions, [prior_inf_bound, prior_sup_bound], ...
diff --git a/matlab/mcforecast3.m b/matlab/mcforecast3.m
index 5689ddc8e438875d4bd189173126f40499819d91..47a0eab87c0cdc5aa6f3015190c17a250ce1217a 100644
--- a/matlab/mcforecast3.m
+++ b/matlab/mcforecast3.m
@@ -52,7 +52,7 @@ function [forcs, e]= mcforecast3(cL,H,mcValue,shocks,forcs,T,R,mv,mu)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if cL
     e = zeros(size(mcValue,1),cL);
diff --git a/matlab/mcompare.m b/matlab/mcompare.m
index f3f052f689ebec7d43ca67bba0dfc8d9b94c2c83..fb7ce14c3ea9569376a3bffa1a2a6370a8df7a8e 100644
--- a/matlab/mcompare.m
+++ b/matlab/mcompare.m
@@ -25,7 +25,7 @@ function mcompare(s1,s2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_
 global nvx nvy x y lag1
diff --git a/matlab/mcp_func.m b/matlab/mcp_func.m
index 30494b95a73fc20dc88aa9433d504562819f2ce6..bb0800cad03a4b794dad11cd66d16ee2afd91f9e 100644
--- a/matlab/mcp_func.m
+++ b/matlab/mcp_func.m
@@ -26,7 +26,7 @@ function [res,fjac,domer] = mcp_func(x,jacflag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global mcp_data
 
diff --git a/matlab/method_of_moments/method_of_moments.m b/matlab/method_of_moments/method_of_moments.m
index 87eb6f1a45ef6067ffc8e76a90f5ab2cc2bea2c6..e4f3a3ffb2992efb3c077428ec640088d3d02bc8 100644
--- a/matlab/method_of_moments/method_of_moments.m
+++ b/matlab/method_of_moments/method_of_moments.m
@@ -78,7 +78,7 @@ function [oo_, options_mom_, M_] = method_of_moments(bayestopt_, options_, oo_,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % -------------------------------------------------------------------------
 % Author(s): 
 % o Willi Mutschler (willi@mutschler.eu)
diff --git a/matlab/method_of_moments/method_of_moments_check_plot.m b/matlab/method_of_moments/method_of_moments_check_plot.m
index ceb1a15b75d988eb32c5835840afb9e7fa841cca..44ab05f465b7b6f489db50ae397c388fec581b94 100644
--- a/matlab/method_of_moments/method_of_moments_check_plot.m
+++ b/matlab/method_of_moments/method_of_moments_check_plot.m
@@ -17,7 +17,7 @@ function method_of_moments_check_plot(fun,xparam,SE_vec,options_,M_,estim_params
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 TeX = options_.TeX;
 if ~isempty(SE_vec)
diff --git a/matlab/method_of_moments/method_of_moments_data_moments.m b/matlab/method_of_moments/method_of_moments_data_moments.m
index ba4e39a7e21bc41dd9d25a088ef4e79c9f5628eb..cd145df2b74170cfd64a6899c90db505cdb372d8 100644
--- a/matlab/method_of_moments/method_of_moments_data_moments.m
+++ b/matlab/method_of_moments/method_of_moments_data_moments.m
@@ -31,7 +31,7 @@ function [dataMoments, m_data] = method_of_moments_data_moments(data, oo_, match
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % -------------------------------------------------------------------------
 % Author(s): 
 % o Willi Mutschler (willi@mutschler.eu)
diff --git a/matlab/method_of_moments/method_of_moments_objective_function.m b/matlab/method_of_moments/method_of_moments_objective_function.m
index 9aecc87a25363097946a8f89681d8442c674fa5f..cd9767c8685840e0e57173d6e14ee4bc99d0ba01 100644
--- a/matlab/method_of_moments/method_of_moments_objective_function.m
+++ b/matlab/method_of_moments/method_of_moments_objective_function.m
@@ -48,7 +48,7 @@ function [fval, info, exit_flag, df, junk1, oo_, M_, options_mom_] = method_of_m
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % -------------------------------------------------------------------------
 % Author(s): 
 % o Willi Mutschler (willi@mutschler.eu)
diff --git a/matlab/method_of_moments/method_of_moments_optimal_weighting_matrix.m b/matlab/method_of_moments/method_of_moments_optimal_weighting_matrix.m
index ad2db20f7c0bb32db11d699452b3288dbb77dabf..d722d9a8ade7e52469f92feaf87cff2e2e24612f 100644
--- a/matlab/method_of_moments/method_of_moments_optimal_weighting_matrix.m
+++ b/matlab/method_of_moments/method_of_moments_optimal_weighting_matrix.m
@@ -34,7 +34,7 @@ function W_opt = method_of_moments_optimal_weighting_matrix(m_data, moments, q_l
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % -------------------------------------------------------------------------
 % Author(s): 
 % o Willi Mutschler (willi@mutschler.eu)
diff --git a/matlab/method_of_moments/method_of_moments_standard_errors.m b/matlab/method_of_moments/method_of_moments_standard_errors.m
index ea302d52d57d7252e663ee4c18787844fc8daa80..f5de86162a35b20b261a5564fa6f9b43eaaa4cd9 100644
--- a/matlab/method_of_moments/method_of_moments_standard_errors.m
+++ b/matlab/method_of_moments/method_of_moments_standard_errors.m
@@ -43,7 +43,7 @@ function [SE_values, Asympt_Var] = method_of_moments_standard_errors(xparam, obj
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % -------------------------------------------------------------------------
 % Author(s): 
 % o Willi Mutschler (willi@mutschler.eu)
diff --git a/matlab/metropolis_draw.m b/matlab/metropolis_draw.m
index 94c4212783b81cc30ca46c926deaa63d96ca7000..7d788837430b92c3eb29e7bc8440a8eb0e7c52f8 100644
--- a/matlab/metropolis_draw.m
+++ b/matlab/metropolis_draw.m
@@ -39,7 +39,7 @@ function [xparams, logpost, options_]=metropolis_draw(init,options_,estim_params
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent mh_nblck NumberOfDraws BaseName FirstLine FirstMhFile MAX_nruns
 
diff --git a/matlab/metropolis_hastings_initialization.m b/matlab/metropolis_hastings_initialization.m
index e9d97a0ea26d956b4f89a22f388823e2ae8dc6ea..7803a4db11ffa9263551124a960ec67011acf01c 100644
--- a/matlab/metropolis_hastings_initialization.m
+++ b/matlab/metropolis_hastings_initialization.m
@@ -52,7 +52,7 @@ function [ ix2, ilogpo2, ModelName, MetropolisFolder, FirstBlock, FirstLine, npa
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %Initialize outputs
 ix2 = [];
diff --git a/matlab/metropolis_run_analysis.m b/matlab/metropolis_run_analysis.m
index acdfe3b337ca451e69ae5fc3b4e0a48905f91758..63c75fa94467d8b477d86a3e1a4798fd6cec5ace 100644
--- a/matlab/metropolis_run_analysis.m
+++ b/matlab/metropolis_run_analysis.m
@@ -28,7 +28,7 @@ function metropolis_run_analysis(M,basetopt,j)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 load([M.fname '/metropolis/' M.fname '_mh_history'])
 nblck = record.Nblck;
diff --git a/matlab/mex/k_order_perturbation.m b/matlab/mex/k_order_perturbation.m
index 25b1142e6589ec352a0ebdca705fd82681ec2a5f..b57b7c2bd6b1943c872099771131bd5b8322b2af 100644
--- a/matlab/mex/k_order_perturbation.m
+++ b/matlab/mex/k_order_perturbation.m
@@ -40,4 +40,4 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
diff --git a/matlab/mex/qmc_sequence.m b/matlab/mex/qmc_sequence.m
index 1b934927312f037ee5323a9130d9b6025b304d66..0aa4d3d476c230255f5c1f7037ee4beb86a849d2 100644
--- a/matlab/mex/qmc_sequence.m
+++ b/matlab/mex/qmc_sequence.m
@@ -70,7 +70,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %@test:1
 %$ t = ones(3,1);
diff --git a/matlab/mh_autocorrelation_function.m b/matlab/mh_autocorrelation_function.m
index 6312a32629fac869f47cad35676893b005a69b42..19754fcf1102cdff939aa0e1d1237b6371f58e9e 100644
--- a/matlab/mh_autocorrelation_function.m
+++ b/matlab/mh_autocorrelation_function.m
@@ -33,7 +33,7 @@ function mh_autocorrelation_function(options_,M_,estim_params_,type,blck,name1,n
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Cet the column index:
 if nargin<7
diff --git a/matlab/mh_optimal_bandwidth.m b/matlab/mh_optimal_bandwidth.m
index 0a827c5ac9c8ab6c376f8277651dee11ece972b5..34ed128a08a8c855df43a52440d8104616223474 100644
--- a/matlab/mh_optimal_bandwidth.m
+++ b/matlab/mh_optimal_bandwidth.m
@@ -39,7 +39,7 @@ function optimal_bandwidth = mh_optimal_bandwidth(data,number_of_draws,bandwidth
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Kernel specifications.
 if strcmpi(kernel_function,'gaussian')
diff --git a/matlab/minus_logged_prior_density.m b/matlab/minus_logged_prior_density.m
index 51a2839d523388c84aa798d626b24e33a91b6a65..27e7828937ae3b2f5725121abff5d17833de5863 100644
--- a/matlab/minus_logged_prior_density.m
+++ b/matlab/minus_logged_prior_density.m
@@ -28,7 +28,7 @@ function [fval,info,exit_flag,fake_1,fake_2] = minus_logged_prior_density(xparam
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fake_1 = 1;
 fake_2 = 1;
diff --git a/matlab/missing/contains/contains.m b/matlab/missing/contains/contains.m
index 7c64704947ed499517410414ad58edc5f54bef9b..87a6c71d1355b48af16bed8963b39f4fed471720 100644
--- a/matlab/missing/contains/contains.m
+++ b/matlab/missing/contains/contains.m
@@ -27,7 +27,7 @@ function tf = contains(string, pattern, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if mod(nargin,2) ~= 0
     error('contains: inputs should be a text, followed by the queried patterns, then Name-Value pair arguments.');
diff --git a/matlab/missing/datetime/datetime.m b/matlab/missing/datetime/datetime.m
index beace5272aaabbad98e03fdcc7dbaa7017fb45c3..4f8524c700516c5ccc428c240204c0c8539925b6 100644
--- a/matlab/missing/datetime/datetime.m
+++ b/matlab/missing/datetime/datetime.m
@@ -21,7 +21,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 function d = datetime()
     d = datestr(now, 'dd-mmm-yyyy HH:MM:SS');
diff --git a/matlab/missing/isfile/isfile.m b/matlab/missing/isfile/isfile.m
index e733f08dd9f1b33e784d282f856c63d0361ab592..3953426d830d08154cb4568e8192509ae97d8a70 100644
--- a/matlab/missing/isfile/isfile.m
+++ b/matlab/missing/isfile/isfile.m
@@ -42,7 +42,7 @@ function a = isfile(b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 stringarrayflag = false;
 cellofstringflag = false;
diff --git a/matlab/missing/issquare/issquare.m b/matlab/missing/issquare/issquare.m
index 0b28884a021c55fae95f1ff8de5ba32126b14b4e..b377edc4a29f45dc9aeb6390231c273d8ac338ac 100644
--- a/matlab/missing/issquare/issquare.m
+++ b/matlab/missing/issquare/issquare.m
@@ -42,7 +42,7 @@ function i = issquare(A)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 d = size(A);
 if (length(d)==2) && (d(1)==d(2))
diff --git a/matlab/missing/mex/disclyap_fast/disclyap_fast.m b/matlab/missing/mex/disclyap_fast/disclyap_fast.m
index 359cde1a4adc15777d0e4dccd7bb6f258909a4d7..25384fd01c6db4876262b98d49651fffb9c91f97 100644
--- a/matlab/missing/mex/disclyap_fast/disclyap_fast.m
+++ b/matlab/missing/mex/disclyap_fast/disclyap_fast.m
@@ -36,7 +36,7 @@ function [X,exitflag]=disclyap_fast(G,V,tol,check_flag,max_iter)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin <= 3 || isempty(check_flag)
     check_flag = 0;
diff --git a/matlab/missing/mex/gensylv/gensylv.m b/matlab/missing/mex/gensylv/gensylv.m
index 462e7b1ea0f0eaecaa1dc514c53cc8d73d6b1078..110757472f62dd73b8e31f57dd52041a83e43dd5 100644
--- a/matlab/missing/mex/gensylv/gensylv.m
+++ b/matlab/missing/mex/gensylv/gensylv.m
@@ -34,7 +34,7 @@ function E = gensylv(kron_prod,A,B,C0,D)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 C = C0;
 for i=1:(kron_prod-1)
     C  = kron(C0,C);
diff --git a/matlab/missing/mex/kronecker/A_times_B_kronecker_C.m b/matlab/missing/mex/kronecker/A_times_B_kronecker_C.m
index db615145a1685a75771f830e3a2ed1b99c69209b..39d0f48bb6e9576d9ca10bb26587613dcccbfa79 100644
--- a/matlab/missing/mex/kronecker/A_times_B_kronecker_C.m
+++ b/matlab/missing/mex/kronecker/A_times_B_kronecker_C.m
@@ -56,7 +56,7 @@ function D = A_times_B_kronecker_C(A,B,C)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/missing/mex/kronecker/sparse_hessian_times_B_kronecker_C.m b/matlab/missing/mex/kronecker/sparse_hessian_times_B_kronecker_C.m
index 7857e2571e9167cb2634d1813608d87a93c6b777..2efc313bf02228dcd1dbeb728b40595d2cfef380 100644
--- a/matlab/missing/mex/kronecker/sparse_hessian_times_B_kronecker_C.m
+++ b/matlab/missing/mex/kronecker/sparse_hessian_times_B_kronecker_C.m
@@ -58,7 +58,7 @@ function D = sparse_hessian_times_B_kronecker_C(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m b/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
index f272e5c27e778ec14dd78e3a8be3494e92f40217..56cba70ad460bc060b4ccae3bfb00fe9ac0c1664 100644
--- a/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
+++ b/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
@@ -73,7 +73,7 @@ function [y,y_] = local_state_space_iteration_2(yhat,epsilon,ghx,ghu,constant,gh
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 %           frederic DOT karame AT univ DASH evry DOT fr
diff --git a/matlab/missing/mex/mjdgges/mjdgges.m b/matlab/missing/mex/mjdgges/mjdgges.m
index a2555f2c7ef80dd38e7e42fcd3c6a01780e87958..3b66c1551a04a0676dba1e7a10501dee9fbaa3d7 100644
--- a/matlab/missing/mex/mjdgges/mjdgges.m
+++ b/matlab/missing/mex/mjdgges/mjdgges.m
@@ -33,7 +33,7 @@ function [ss, tt, zz, sdim, eigval, info] = mjdgges(e, d, qz_criterium, zhreshol
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin > 5 || nargin < 2 || nargout > 7 || nargout == 0
     error('MJDGGES: takes 2, 3 or 4 input arguments and between 1 and 7 output arguments.')
diff --git a/matlab/missing/mex/num_procs/num_procs.m b/matlab/missing/mex/num_procs/num_procs.m
index 832841c83f352c168e708e8a028e9b5a8f807729..0ea188506463e1066113fefe42159963ce21da73 100644
--- a/matlab/missing/mex/num_procs/num_procs.m
+++ b/matlab/missing/mex/num_procs/num_procs.m
@@ -24,6 +24,6 @@ function num_logical_cores=num_procs
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 num_logical_cores=1;
\ No newline at end of file
diff --git a/matlab/missing/rows_columns/columns.m b/matlab/missing/rows_columns/columns.m
index 9c69fdfb8dade69425f0e74b10dcdfbcff632573..53fb1bd5cde63deb00d265ab0d208264f97690d5 100644
--- a/matlab/missing/rows_columns/columns.m
+++ b/matlab/missing/rows_columns/columns.m
@@ -17,6 +17,6 @@ function c = columns(M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 c = size(M,2);
diff --git a/matlab/missing/rows_columns/rows.m b/matlab/missing/rows_columns/rows.m
index 97aadf84ec5ea912186ff813867deff59b256969..f0dcba05486ec84af4b385dad400319b94b5f535 100644
--- a/matlab/missing/rows_columns/rows.m
+++ b/matlab/missing/rows_columns/rows.m
@@ -17,6 +17,6 @@ function r = rows(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 r = size(x,1);
diff --git a/matlab/missing/splitlines/splitlines.m b/matlab/missing/splitlines/splitlines.m
index bc6d239899e44fb282431007a888b86291cf960b..13596830123f002909cdaa4523df19cfe75b5341 100644
--- a/matlab/missing/splitlines/splitlines.m
+++ b/matlab/missing/splitlines/splitlines.m
@@ -23,7 +23,7 @@ function s = splitlines(string)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 assert(ischar(string) && ndims(string)==2 && size(string,1)<=1, 'The first argument has to be a row char array!');
 
diff --git a/matlab/missing/stats/+gamrnd/ahrens_dieter.m b/matlab/missing/stats/+gamrnd/ahrens_dieter.m
index 811f91e72d43130e4dd86b768b87be33a875a42c..6735fe97374148107ff0332689bb696e14178dd9 100644
--- a/matlab/missing/stats/+gamrnd/ahrens_dieter.m
+++ b/matlab/missing/stats/+gamrnd/ahrens_dieter.m
@@ -24,7 +24,7 @@ function g = ahrens_dieter(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/berman.m b/matlab/missing/stats/+gamrnd/berman.m
index 91fe30761ecdea1d13babb68589e3778993b48b0..133c065bebeeaa531d151063083a1f04a05d8681 100644
--- a/matlab/missing/stats/+gamrnd/berman.m
+++ b/matlab/missing/stats/+gamrnd/berman.m
@@ -24,7 +24,7 @@ function g = berman(a,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/best_1978.m b/matlab/missing/stats/+gamrnd/best_1978.m
index 1934c71cb37338379e45808d4a7985e332320aea..2862ac5aa539d1df82ba4dacdf2212fde3bf7988 100644
--- a/matlab/missing/stats/+gamrnd/best_1978.m
+++ b/matlab/missing/stats/+gamrnd/best_1978.m
@@ -24,7 +24,7 @@ function  g = best_1978(a ,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/best_1983.m b/matlab/missing/stats/+gamrnd/best_1983.m
index a49d1cb4592f9b709526a965e215730d23f85ed3..722a6861dd5186433f1b976088111e265d544e90 100644
--- a/matlab/missing/stats/+gamrnd/best_1983.m
+++ b/matlab/missing/stats/+gamrnd/best_1983.m
@@ -24,7 +24,7 @@ function g = best_1983(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/cheng.m b/matlab/missing/stats/+gamrnd/cheng.m
index 64ce894d4a9b45e00b969cf28897d46608a59606..b8c0c13d463a346f8d83999c12574b5780866da8 100644
--- a/matlab/missing/stats/+gamrnd/cheng.m
+++ b/matlab/missing/stats/+gamrnd/cheng.m
@@ -27,7 +27,7 @@ function  g = cheng(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/johnk.m b/matlab/missing/stats/+gamrnd/johnk.m
index 45c5b1d7a6e07358386995b52f06e135ac020309..14f65e5a6cbda9d66aa03062c48842e666033d20 100644
--- a/matlab/missing/stats/+gamrnd/johnk.m
+++ b/matlab/missing/stats/+gamrnd/johnk.m
@@ -24,7 +24,7 @@ function g = johnk(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/knuth.m b/matlab/missing/stats/+gamrnd/knuth.m
index ed4ca4b518525cf07583650a8a6a91d12c6fcd9a..96d8ec279fe407fb68e589991b35f59c7f599a7b 100644
--- a/matlab/missing/stats/+gamrnd/knuth.m
+++ b/matlab/missing/stats/+gamrnd/knuth.m
@@ -24,7 +24,7 @@ function  g = knuth(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/+gamrnd/weibull_rejection.m b/matlab/missing/stats/+gamrnd/weibull_rejection.m
index d3fee614258caa03ff93fcfbf847f201a9f591d7..56971537dd49a483289ed1b6fff998a9e3db158c 100644
--- a/matlab/missing/stats/+gamrnd/weibull_rejection.m
+++ b/matlab/missing/stats/+gamrnd/weibull_rejection.m
@@ -24,7 +24,7 @@ function g = weibull_rejection(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(a);
 mm = nn;
diff --git a/matlab/missing/stats/betacdf.m b/matlab/missing/stats/betacdf.m
index d1ac509f789495695e172be064052e5e7139d5e8..e01d4cadb47a85a84533f088510c6741d9dba7a1 100644
--- a/matlab/missing/stats/betacdf.m
+++ b/matlab/missing/stats/betacdf.m
@@ -25,7 +25,7 @@ function cdf = betacdf (x, a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 3)
     error ('betacdf: you should provide three arguments');
diff --git a/matlab/missing/stats/betainv.m b/matlab/missing/stats/betainv.m
index a7300d1b19c8ffd298821e84b0519674e9a80f91..e3111e7296ce05298785e41c4af71a5854be6ab6 100644
--- a/matlab/missing/stats/betainv.m
+++ b/matlab/missing/stats/betainv.m
@@ -25,7 +25,7 @@ function inv = betainv (x, a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 3)
     error ('betainv: you must give three arguments');
diff --git a/matlab/missing/stats/betapdf.m b/matlab/missing/stats/betapdf.m
index ec666828d911db4f9e223d1aa76c8b5fd48ef676..cbf217ac919cc8476d475d27eaa08460710852f2 100644
--- a/matlab/missing/stats/betapdf.m
+++ b/matlab/missing/stats/betapdf.m
@@ -26,7 +26,7 @@ function pdf = betapdf (x, a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 3)
     error ('betapdf: you must give three arguments');
diff --git a/matlab/missing/stats/betarnd.m b/matlab/missing/stats/betarnd.m
index a2d0c9fe889fdf0ff2daef2765b21a14f934ae2d..42906d267657db47f4f738122661481ec647c294 100644
--- a/matlab/missing/stats/betarnd.m
+++ b/matlab/missing/stats/betarnd.m
@@ -28,7 +28,7 @@ function rnd = betarnd(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 2)
     error('betarnd: you must give two arguments');
diff --git a/matlab/missing/stats/chi2cdf.m b/matlab/missing/stats/chi2cdf.m
index 0a5db98827bbf11c3b6aef6a0244f4911cb1660a..1b89b5f967e43d87e645a7649c1afeec7d3cd3f0 100644
--- a/matlab/missing/stats/chi2cdf.m
+++ b/matlab/missing/stats/chi2cdf.m
@@ -19,7 +19,7 @@ function CDF = chi2cdf(x, n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 2)
     error ('chi2cdf: you must give two arguments');
diff --git a/matlab/missing/stats/chi2inv.m b/matlab/missing/stats/chi2inv.m
index 9d14af7b07b6cd103c2b1d0cbf91ed48e24f6b5e..678e95dac11c5b1faecbaf3781079ed631ce1cbb 100644
--- a/matlab/missing/stats/chi2inv.m
+++ b/matlab/missing/stats/chi2inv.m
@@ -24,7 +24,7 @@ function inv = chi2inv (x, n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 2)
     error ('chi2inv: you must give two arguments');
diff --git a/matlab/missing/stats/common_size.m b/matlab/missing/stats/common_size.m
index 2dff002c441570df915fa602b5fb63ea0f09a5e5..9462aa3dc1d90d064b8b20a656b0c7b4d49cbe8a 100644
--- a/matlab/missing/stats/common_size.m
+++ b/matlab/missing/stats/common_size.m
@@ -34,7 +34,7 @@ function [errorcode, varargout] = common_size (varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin < 2)
     error ('common_size: only makes sense if nargin >= 2');
diff --git a/matlab/missing/stats/corr.m b/matlab/missing/stats/corr.m
index 24c53c01077898c123a41d4e67e9b695ec4ed460..e6c993063bc352a276d80bff502a3c66e45fdb8e 100644
--- a/matlab/missing/stats/corr.m
+++ b/matlab/missing/stats/corr.m
@@ -54,7 +54,7 @@ function retval = corr(x, y) % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if (nargin < 1 || nargin > 2)
diff --git a/matlab/missing/stats/exprnd.m b/matlab/missing/stats/exprnd.m
index b59daf904990a85051a6f21bca270672e140a50f..bbcaaf1350324d15a8570237da9849fe705e3e2c 100644
--- a/matlab/missing/stats/exprnd.m
+++ b/matlab/missing/stats/exprnd.m
@@ -32,7 +32,7 @@ function rnd = exprnd(a)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 if any(a(:)<0)
     disp('exprnd:: The parameter of the exponential distribution has to be positive!')
     error;
diff --git a/matlab/missing/stats/gamcdf.m b/matlab/missing/stats/gamcdf.m
index f17fe2b63e0e8a90820ba948f94399efffd58671..332bd592d3632801125b8dbd62194dc0e6c2c4dc 100644
--- a/matlab/missing/stats/gamcdf.m
+++ b/matlab/missing/stats/gamcdf.m
@@ -25,7 +25,7 @@ function cdf = gamcdf (x, a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 3)
     error ('gamcdf: you must give three arguments');
diff --git a/matlab/missing/stats/gaminv.m b/matlab/missing/stats/gaminv.m
index 96c4a0a3f0974e96f7d1c0a52b9f1ae58361cdae..ae7fa7975bc1ac45f21080ba1e58006d6bde025d 100644
--- a/matlab/missing/stats/gaminv.m
+++ b/matlab/missing/stats/gaminv.m
@@ -25,7 +25,7 @@ function inv = gaminv (x, a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 3)
     error ('gaminv: you must give three arguments');
diff --git a/matlab/missing/stats/gampdf.m b/matlab/missing/stats/gampdf.m
index b01d736e86497af40373b5c3b9320de4f16ed334..d40891762a44945957bdd93701f27a4338d27a74 100644
--- a/matlab/missing/stats/gampdf.m
+++ b/matlab/missing/stats/gampdf.m
@@ -25,7 +25,7 @@ function pdf = gampdf (x, a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 3)
     error ('gampdf: you must give three arguments');
diff --git a/matlab/missing/stats/gamrnd.m b/matlab/missing/stats/gamrnd.m
index e7b39a7447fb167daf23fc14ab993780037a123c..da24cc2df8036e5d94293833d8e6aeae1d17b1b6 100644
--- a/matlab/missing/stats/gamrnd.m
+++ b/matlab/missing/stats/gamrnd.m
@@ -30,7 +30,7 @@ function rnd = gamrnd(a, b, method) % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %>
 %>  Set defaults
diff --git a/matlab/missing/stats/nanmean.m b/matlab/missing/stats/nanmean.m
index 9babd14601edbd37b2bc1eb51f0f2f2ae383cbe9..cd512a37dd43b58ea41f122aa62c7285e70e69bc 100644
--- a/matlab/missing/stats/nanmean.m
+++ b/matlab/missing/stats/nanmean.m
@@ -29,7 +29,7 @@ function y = nanmean(x, dim)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<2
     % By default dim is the first non singleton dimension
diff --git a/matlab/missing/stats/normcdf.m b/matlab/missing/stats/normcdf.m
index 3707c5d5476842004d0ecd7438eeaaad24d5802c..349264eaf7ff5f836c7a6abbb86dabb03d69759b 100644
--- a/matlab/missing/stats/normcdf.m
+++ b/matlab/missing/stats/normcdf.m
@@ -26,7 +26,7 @@ function cdf = normcdf (x, m, s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (~ ((nargin == 1) || (nargin == 3)))
     error ('normcdf: you must give one or three arguments');
diff --git a/matlab/missing/stats/norminv.m b/matlab/missing/stats/norminv.m
index a44fd101e2bc68877dffdf82007846aa7966b78e..da9c1dc82b39abb31c58f0add1ba1edbf9c8c8d3 100644
--- a/matlab/missing/stats/norminv.m
+++ b/matlab/missing/stats/norminv.m
@@ -26,7 +26,7 @@ function inv = norminv (x, m, s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 1 && nargin ~= 3)
     error ('norminv: you must give one or three arguments');
diff --git a/matlab/missing/stats/normpdf.m b/matlab/missing/stats/normpdf.m
index 5ee49e43a2cb6d24bc933e5811a1a910b451f907..7492735dfb7b3eecb25ad3f0c9f722ae636b0c4f 100644
--- a/matlab/missing/stats/normpdf.m
+++ b/matlab/missing/stats/normpdf.m
@@ -26,7 +26,7 @@ function pdf = normpdf (x, m, s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 1 && nargin ~= 3)
     error('normpdf: you must give one or three arguments');
diff --git a/matlab/missing/stats/quantile.m b/matlab/missing/stats/quantile.m
index 6a0050d7bb01285ee28773297b0b8aa753d4f0ea..8e6ace8a12f638abaa68e981142e109b965448e8 100644
--- a/matlab/missing/stats/quantile.m
+++ b/matlab/missing/stats/quantile.m
@@ -64,7 +64,7 @@ function [q,N] = quantile(X, p, dim, method, weights) % --*-- Unitary tests --*-
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Check input and make default assignments
 assert(isnumeric(X),'X must be a numeric');
diff --git a/matlab/missing/stats/stdnormal_cdf.m b/matlab/missing/stats/stdnormal_cdf.m
index 6e3426c5270094da5dd7ed136a9b82576e13994e..8c654ab7f081e30af5e224ba47769c822cbc1c2b 100644
--- a/matlab/missing/stats/stdnormal_cdf.m
+++ b/matlab/missing/stats/stdnormal_cdf.m
@@ -25,7 +25,7 @@ function cdf = stdnormal_cdf (x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 1)
     error('stdnormal_cdf: you should provide one argument');
diff --git a/matlab/missing/stats/stdnormal_inv.m b/matlab/missing/stats/stdnormal_inv.m
index 9859efde700496be0b49b88bb01a7228ad52ad31..64375675e32912f9d00c964c30cb0d3bf3022aa4 100644
--- a/matlab/missing/stats/stdnormal_inv.m
+++ b/matlab/missing/stats/stdnormal_inv.m
@@ -25,7 +25,7 @@ function inv = stdnormal_inv (x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 1)
     error('stdnormal_inv: you should provide one argument');
diff --git a/matlab/missing/stats/stdnormal_pdf.m b/matlab/missing/stats/stdnormal_pdf.m
index 2e00a2ae2b44cc55e5d87a8193de78f72c63a571..4d6c1629c863687e7ecd5ea23c41ee52aae2d108 100644
--- a/matlab/missing/stats/stdnormal_pdf.m
+++ b/matlab/missing/stats/stdnormal_pdf.m
@@ -25,7 +25,7 @@ function pdf = stdnormal_pdf (x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 1)
     error('stdnormal_pdf: you should provide one argument');
diff --git a/matlab/missing/stats/wblcdf.m b/matlab/missing/stats/wblcdf.m
index 6246a01cf99f69c86dd8ca120ff7ceb1e609d9bd..a1a5c0c597813cca360e0fb69ec1cdf534b0e2e9 100644
--- a/matlab/missing/stats/wblcdf.m
+++ b/matlab/missing/stats/wblcdf.m
@@ -25,7 +25,7 @@ function p = wblcdf(x, scale, shape)   % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % Check input arguments.
diff --git a/matlab/missing/stats/wblinv.m b/matlab/missing/stats/wblinv.m
index af537a7c380df89f8b7db1cf7b2bf93e21b7539a..5abbd6fd34f19461463a6a0e915876a198a44022 100644
--- a/matlab/missing/stats/wblinv.m
+++ b/matlab/missing/stats/wblinv.m
@@ -25,7 +25,7 @@ function t = wblinv(proba, scale, shape)   % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Check input arguments.
 
diff --git a/matlab/missing/stats/wblrnd.m b/matlab/missing/stats/wblrnd.m
index e2a6911d9a54e143a1932a1cc51d297ebafdd633..9d1746c6852802eb68bde9d69b03e3799706e8a0 100644
--- a/matlab/missing/stats/wblrnd.m
+++ b/matlab/missing/stats/wblrnd.m
@@ -23,7 +23,7 @@ function rnd = wblrnd(a, b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if (nargin ~= 2)
     error('Two input arguments required!');
diff --git a/matlab/missing/struct2array/struct2array.m b/matlab/missing/struct2array/struct2array.m
index 92aaab35fe5801fe68ec66cc5b3a12551d0a7882..479e0544e7114f49f43f805f988fa7a2712c0d4a 100644
--- a/matlab/missing/struct2array/struct2array.m
+++ b/matlab/missing/struct2array/struct2array.m
@@ -21,7 +21,7 @@ function a = struct2array(s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 assert(isstruct(s), 'struct2array:: Argument has to be a structure!')
 
diff --git a/matlab/missing/vec/vec.m b/matlab/missing/vec/vec.m
index fd9e36b7908168ee4431193742ff9e3731078738..ab8bf8e3d307a23ee4dde82841b737532b36b478 100644
--- a/matlab/missing/vec/vec.m
+++ b/matlab/missing/vec/vec.m
@@ -22,6 +22,6 @@ function Vector = vec(Matrix)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 Vector = Matrix(:);
diff --git a/matlab/missing_DiffuseKalmanSmootherH1_Z.m b/matlab/missing_DiffuseKalmanSmootherH1_Z.m
index e6c9335ee35ec89b013ed949d9d92fb44aec452f..0c2411d876b8a0b89c0c4a4cc92d7abc4be47f89 100644
--- a/matlab/missing_DiffuseKalmanSmootherH1_Z.m
+++ b/matlab/missing_DiffuseKalmanSmootherH1_Z.m
@@ -72,7 +72,7 @@ function [alphahat,epsilonhat,etahat,atilde,P,aK,PK,decomp,V,aalphahat,eetahat,d
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % modified by M. Ratto:
 % new output argument aK (1-step to k-step predictions)
diff --git a/matlab/missing_DiffuseKalmanSmootherH3_Z.m b/matlab/missing_DiffuseKalmanSmootherH3_Z.m
index 0765eacca74b6ecf080671cf19bf614642f3d2b4..9e9c8a81113fde110d560827c1d7ba06d0537797 100644
--- a/matlab/missing_DiffuseKalmanSmootherH3_Z.m
+++ b/matlab/missing_DiffuseKalmanSmootherH3_Z.m
@@ -79,7 +79,7 @@ function [alphahat,epsilonhat,etahat,a,P1,aK,PK,decomp,V, aalphahat,eetahat,d] =
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Modified by M. Ratto
 % New output argument aK: 1-step to nk-stpe ahed predictions)
diff --git a/matlab/mode_check.m b/matlab/mode_check.m
index 17a119f7d85d55e42244b38753065d770172bf3a..b45a2c9ecb782a9ae6923c3326e80d87b13daf37 100644
--- a/matlab/mode_check.m
+++ b/matlab/mode_check.m
@@ -55,7 +55,7 @@ function mode_check(fun,x,hessian_mat,DynareDataset,DatasetInfo,DynareOptions,Mo
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 TeX = DynareOptions.TeX;
 if ~isempty(hessian_mat)
diff --git a/matlab/model_comparison.m b/matlab/model_comparison.m
index 5fefd11236f1999a61feb5a2945583e98b6b45e2..f49320adf2eea7abab464903f3564b1bd359870d 100644
--- a/matlab/model_comparison.m
+++ b/matlab/model_comparison.m
@@ -35,7 +35,7 @@ function oo = model_comparison(ModelNames,ModelPriors,oo,options_,fname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 NumberOfModels = size(ModelNames,2);
 
diff --git a/matlab/model_diagnostics.m b/matlab/model_diagnostics.m
index 148f2198935f10cd4dd6339a83af3e504d800c31..1970eff19b82e933863cdb5f48358621f0b110ef 100644
--- a/matlab/model_diagnostics.m
+++ b/matlab/model_diagnostics.m
@@ -31,7 +31,7 @@ function model_diagnostics(M,options,oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global jacob
 
diff --git a/matlab/model_info.m b/matlab/model_info.m
index bf17ce18e71c808392cbafee51d1e8f277f97b6e..ee5cdd656c48527385e13eca731b35fd13f2d3c0 100644
--- a/matlab/model_info.m
+++ b/matlab/model_info.m
@@ -16,7 +16,7 @@ function model_info(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_;
 if sum(strcmp(varargin,'static')) > 0
diff --git a/matlab/model_inversion.m b/matlab/model_inversion.m
index dbae9337676ad58579657da6d28ec58f26de6fb1..4c3eeeba8015a877bc7f7cfbeef52c6162550b6d 100644
--- a/matlab/model_inversion.m
+++ b/matlab/model_inversion.m
@@ -30,7 +30,7 @@ function [endogenousvariables, exogenousvariables] = model_inversion(constraints
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isequal(nargin, 6)
     error('model_inversion: This routine require six input arguments!')
diff --git a/matlab/modules/dseries b/matlab/modules/dseries
index c21b3bd22ae5391efa93253805dd2d64b6b52145..e7e2630a0ac626a8cd600169b4946c0af508ebb0 160000
--- a/matlab/modules/dseries
+++ b/matlab/modules/dseries
@@ -1 +1 @@
-Subproject commit c21b3bd22ae5391efa93253805dd2d64b6b52145
+Subproject commit e7e2630a0ac626a8cd600169b4946c0af508ebb0
diff --git a/matlab/modules/reporting b/matlab/modules/reporting
index bf71d2152325fb5b743c5a61476da6944f73bfdf..63c9cd56949165d8fa3b7d1e63e86e7f6dc23007 160000
--- a/matlab/modules/reporting
+++ b/matlab/modules/reporting
@@ -1 +1 @@
-Subproject commit bf71d2152325fb5b743c5a61476da6944f73bfdf
+Subproject commit 63c9cd56949165d8fa3b7d1e63e86e7f6dc23007
diff --git a/matlab/moment_function.m b/matlab/moment_function.m
index 8b922963a1ae3e818c42685bf867bbbd8af0909b..c4de1a7338ffbff7bc058df8c5b4fce66e3db401 100644
--- a/matlab/moment_function.m
+++ b/matlab/moment_function.m
@@ -30,7 +30,7 @@ function [g,grad,hess,flag] = moment_function(xparams,sample_moments,dataset,opt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 persistent mainStream mainState
diff --git a/matlab/moments.m b/matlab/moments.m
index 9103321184923384f8d77aa11d96e6b1c1ba4fdd..5cc3653a3adda20837fd5d2dc12b101ac3e90d8e 100644
--- a/matlab/moments.m
+++ b/matlab/moments.m
@@ -29,7 +29,7 @@ function m = moments(X,order)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 switch order
   case 1
diff --git a/matlab/ms-sbvar/check_datafile_years_assigned.m b/matlab/ms-sbvar/check_datafile_years_assigned.m
index 36eb671d57dccc600b78c018ee2bef8630818fef..b788043cb493289dd173c6d46e9133f7df7563ef 100644
--- a/matlab/ms-sbvar/check_datafile_years_assigned.m
+++ b/matlab/ms-sbvar/check_datafile_years_assigned.m
@@ -23,7 +23,7 @@ function [final_year,final_subperiod]=check_datafile_years_assigned(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 final_year = options_.ms.final_year;
 final_subperiod = options_.ms.final_subperiod;
diff --git a/matlab/ms-sbvar/clean_files_for_second_type_of_mex.m b/matlab/ms-sbvar/clean_files_for_second_type_of_mex.m
index b1361a49b43e52672db6b29860e15dc7ea06d699..048653dc0ad48748a146d048493445dbd57bb6d3 100644
--- a/matlab/ms-sbvar/clean_files_for_second_type_of_mex.m
+++ b/matlab/ms-sbvar/clean_files_for_second_type_of_mex.m
@@ -26,7 +26,7 @@ function clean_files_for_second_type_of_mex(M_, options_, type)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 tagtouse = options_.ms.file_tag;
 if ~strcmp(tagtouse, options_.ms.output_file_tag)
diff --git a/matlab/ms-sbvar/clean_ms_estimation_files.m b/matlab/ms-sbvar/clean_ms_estimation_files.m
index aaf2e01a88b8480d82eb6bc71e6c0d8e033bad10..aad51d70d59c0d540f1aba166bdcfedc56332e24 100644
--- a/matlab/ms-sbvar/clean_ms_estimation_files.m
+++ b/matlab/ms-sbvar/clean_ms_estimation_files.m
@@ -26,7 +26,7 @@ function clean_ms_estimation_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_if_exists(['est_aux_' file_tag '.out']);
 delete_if_exists(['est_csminwel_' file_tag '.out']);
diff --git a/matlab/ms-sbvar/clean_ms_forecast_files.m b/matlab/ms-sbvar/clean_ms_forecast_files.m
index a7b27741faf52a1060dfb974b1ce6a50be5fcb7c..bbebdbecb41abcabdfcb551d887907de347931bf 100644
--- a/matlab/ms-sbvar/clean_ms_forecast_files.m
+++ b/matlab/ms-sbvar/clean_ms_forecast_files.m
@@ -26,7 +26,7 @@ function clean_ms_forecast_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_dir_if_exists([file_tag filesep 'Forecast']);
 delete_dir_if_exists([file_tag filesep 'Output' filesep 'Forecast']);
diff --git a/matlab/ms-sbvar/clean_ms_init_files.m b/matlab/ms-sbvar/clean_ms_init_files.m
index 13237b888b7dfa94af587514414e6f4c8a255114..9301919b19aaf20caafa6d04f350d4da89fa5b9d 100644
--- a/matlab/ms-sbvar/clean_ms_init_files.m
+++ b/matlab/ms-sbvar/clean_ms_init_files.m
@@ -26,7 +26,7 @@ function clean_ms_init_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_if_exists('g1.mat');
 delete_if_exists('H.dat');
diff --git a/matlab/ms-sbvar/clean_ms_irf_files.m b/matlab/ms-sbvar/clean_ms_irf_files.m
index f33ef332404752a78e9b52c751f77529e663d3b3..c6cbd63345a1716317ac64e3170fa1e24cf1a507 100644
--- a/matlab/ms-sbvar/clean_ms_irf_files.m
+++ b/matlab/ms-sbvar/clean_ms_irf_files.m
@@ -26,7 +26,7 @@ function clean_ms_irf_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_dir_if_exists([file_tag filesep 'IRF']);
 delete_dir_if_exists([file_tag filesep 'Output' filesep 'IRF']);
diff --git a/matlab/ms-sbvar/clean_ms_mdd_files.m b/matlab/ms-sbvar/clean_ms_mdd_files.m
index 30f36754029d06a5c19c52f9f6be8d0d741a52e0..0cb8e788371537a32c3f52b460c5ce95618ab56f 100644
--- a/matlab/ms-sbvar/clean_ms_mdd_files.m
+++ b/matlab/ms-sbvar/clean_ms_mdd_files.m
@@ -27,7 +27,7 @@ function clean_ms_mdd_files(file_tag, pt)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_if_exists(['mdd_t' num2str(pt) '_' file_tag '.out']);
 delete_if_exists(['proposal_t' num2str(pt) '_' file_tag '.out']);
diff --git a/matlab/ms-sbvar/clean_ms_probabilities_files.m b/matlab/ms-sbvar/clean_ms_probabilities_files.m
index ebcc9ee4e8c025f95c1b3fe3a15fbd527ef623a2..1aac039c26d392bab6f2475a691d45952b042e34 100644
--- a/matlab/ms-sbvar/clean_ms_probabilities_files.m
+++ b/matlab/ms-sbvar/clean_ms_probabilities_files.m
@@ -26,7 +26,7 @@ function clean_ms_probabilities_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_if_exists(['smoothed_' file_tag '.out']);
 delete_if_exists(['filtered_' file_tag '.out']);
diff --git a/matlab/ms-sbvar/clean_ms_simulation_files.m b/matlab/ms-sbvar/clean_ms_simulation_files.m
index 19ec8480bf2f660560027bea5e230d79696177cb..29c6a84b5c7aa953a862c19f60a518f2cc6b0538 100644
--- a/matlab/ms-sbvar/clean_ms_simulation_files.m
+++ b/matlab/ms-sbvar/clean_ms_simulation_files.m
@@ -26,7 +26,7 @@ function clean_ms_simulation_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_if_exists(['simulation_' file_tag '.out']);
 delete_if_exists(['simulation_info_' file_tag '.out']);
diff --git a/matlab/ms-sbvar/clean_ms_variance_decomposition_files.m b/matlab/ms-sbvar/clean_ms_variance_decomposition_files.m
index dfa04a2cc115c6e64904910fc79e4f489f0685a6..2054b550cd7267ac8598fc9a0112996301a18e88 100644
--- a/matlab/ms-sbvar/clean_ms_variance_decomposition_files.m
+++ b/matlab/ms-sbvar/clean_ms_variance_decomposition_files.m
@@ -26,7 +26,7 @@ function clean_ms_variance_decomposition_files(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_dir_if_exists([file_tag filesep 'Variance_Decomposition']);
 delete_dir_if_exists([file_tag filesep 'Output' filesep 'Variance_Decomposition']);
diff --git a/matlab/ms-sbvar/clean_sbvar_files.m b/matlab/ms-sbvar/clean_sbvar_files.m
index 15a49bf9e873b9a7254bdd80fb1dedd159dd2250..6e5b6b11d9958ba3f70813ba74efee84cbb76b10 100644
--- a/matlab/ms-sbvar/clean_sbvar_files.m
+++ b/matlab/ms-sbvar/clean_sbvar_files.m
@@ -26,7 +26,7 @@ function clean_sbvar_files()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 delete_if_exists('outm.mat');
 delete_if_exists('g1.mat');
diff --git a/matlab/ms-sbvar/create_dir.m b/matlab/ms-sbvar/create_dir.m
index 8cca576da3c04966a104343a5a9b9b5e544d1e2d..1b83bb3128bdaaba0bcb87f7f34aa65f9180a4e3 100644
--- a/matlab/ms-sbvar/create_dir.m
+++ b/matlab/ms-sbvar/create_dir.m
@@ -26,7 +26,7 @@ function create_dir(dirname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~exist(dirname, 'dir')
     mkdir(dirname);
diff --git a/matlab/ms-sbvar/delete_dir_if_exists.m b/matlab/ms-sbvar/delete_dir_if_exists.m
index b2c67579e6198563ffbd2f31cca4692c0a83fd0e..99b18b24bb2c264a0e49a6e40ad1c66aaf670ec5 100644
--- a/matlab/ms-sbvar/delete_dir_if_exists.m
+++ b/matlab/ms-sbvar/delete_dir_if_exists.m
@@ -26,7 +26,7 @@ function delete_dir_if_exists(dirname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isoctave
     confirm_recursive_rmdir(false)
diff --git a/matlab/ms-sbvar/delete_if_exists.m b/matlab/ms-sbvar/delete_if_exists.m
index 7610b207bdba9dc367bd64fa879b0313c61528b2..6e159b46b808aea8bc2e045b7708a32333510723 100644
--- a/matlab/ms-sbvar/delete_if_exists.m
+++ b/matlab/ms-sbvar/delete_if_exists.m
@@ -26,7 +26,7 @@ function delete_if_exists(fname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if exist(fname, 'file') == 2
     delete(fname);
diff --git a/matlab/ms-sbvar/dyn_save_graph.m b/matlab/ms-sbvar/dyn_save_graph.m
index 46623f7c94ee7c8656cd877bb3674459fbfac5e2..65f8fa784bc1efaac0fed057010bb95a40f3532f 100644
--- a/matlab/ms-sbvar/dyn_save_graph.m
+++ b/matlab/ms-sbvar/dyn_save_graph.m
@@ -28,7 +28,7 @@ function dyn_save_graph(dirname,graph_name,graph_formats,TeX,names,texnames,capt
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 create_dir(dirname);
 graph_name = [dirname filesep regexprep(graph_name,' ','_')];
diff --git a/matlab/ms-sbvar/identification/exclusions.m b/matlab/ms-sbvar/identification/exclusions.m
index 5361c2ef4c1cea22e7143c12b622a08124f809b0..535570107e7c502b3286127f698ea683f6269023 100644
--- a/matlab/ms-sbvar/identification/exclusions.m
+++ b/matlab/ms-sbvar/identification/exclusions.m
@@ -31,7 +31,7 @@ function [Ui,Vi,n0,np,ixmC0Pres,Qi,Ri] = exclusions(nvar,nexo,options_ms)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 indxC0Pres = options_ms.cross_restrictions;
 nlags = options_ms.nlags;
diff --git a/matlab/ms-sbvar/identification/lower_cholesky.m b/matlab/ms-sbvar/identification/lower_cholesky.m
index a88954091d2083bed726e83e17af13862560540c..e2b4d2754c11366c8c7b7b11c8e8f3b4b4b5a4fb 100644
--- a/matlab/ms-sbvar/identification/lower_cholesky.m
+++ b/matlab/ms-sbvar/identification/lower_cholesky.m
@@ -31,7 +31,7 @@ function [Ui,Vi,n0,np,ixmC0Pres] = lower_cholesky(nvar,nexo,options_ms)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 lags = options_ms.nlags;
 indxC0Pres = options_ms.cross_restrictions;
diff --git a/matlab/ms-sbvar/identification/upper_cholesky.m b/matlab/ms-sbvar/identification/upper_cholesky.m
index 8645214b183e2d08f1acc034035e18bfae48ccb5..da32ab9689cd5c9b77fd1ac9723cd836eb9f69ac 100644
--- a/matlab/ms-sbvar/identification/upper_cholesky.m
+++ b/matlab/ms-sbvar/identification/upper_cholesky.m
@@ -31,7 +31,7 @@ function [Ui,Vi,n0,np,ixmC0Pres] = upper_cholesky(nvar,nexo,options_ms)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 lags = options_ms.nlags;
 indxC0Pres = options_ms.cross_restrictions;
diff --git a/matlab/ms-sbvar/initialize_ms_sbvar_options.m b/matlab/ms-sbvar/initialize_ms_sbvar_options.m
index ec91ad1e3009a87f52591879d60e3a989540f98f..ded5b619045c9ede3d9c48c04165181028caa7f2 100644
--- a/matlab/ms-sbvar/initialize_ms_sbvar_options.m
+++ b/matlab/ms-sbvar/initialize_ms_sbvar_options.m
@@ -27,7 +27,7 @@ function options_=initialize_ms_sbvar_options(M_, options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % MS SBVAR
 % all mex functions
diff --git a/matlab/ms-sbvar/load_flat_file.m b/matlab/ms-sbvar/load_flat_file.m
index b9c7f65c78de56b7228ed151a7c3e002f29c38c1..b4d0a3274a056f7c27c34abcbf2a85f552db369b 100644
--- a/matlab/ms-sbvar/load_flat_file.m
+++ b/matlab/ms-sbvar/load_flat_file.m
@@ -29,7 +29,7 @@ function [Q, A0, Aplus, Zeta] = load_flat_file(file_tag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 Q = [];
 A0 = [];
diff --git a/matlab/ms-sbvar/ms_compute_mdd.m b/matlab/ms-sbvar/ms_compute_mdd.m
index 43372a6e0a68851c1f6cade107cfb865513b9f3c..ce1df22e935a046f456065f971988c9f90ffcaaa 100644
--- a/matlab/ms-sbvar/ms_compute_mdd.m
+++ b/matlab/ms-sbvar/ms_compute_mdd.m
@@ -29,7 +29,7 @@ function [options_, oo_]=ms_compute_mdd(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Marginal Data Density');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_compute_probabilities.m b/matlab/ms-sbvar/ms_compute_probabilities.m
index 9a5b91de891a82f4a46846f2e928b61fab03a381..33dc9e76a5317b793d7d4b97102c1f977a49c13d 100644
--- a/matlab/ms-sbvar/ms_compute_probabilities.m
+++ b/matlab/ms-sbvar/ms_compute_probabilities.m
@@ -29,7 +29,7 @@ function [options_, oo_]=ms_compute_probabilities(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Compute Regime Probabilities');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_estimation.m b/matlab/ms-sbvar/ms_estimation.m
index 2a8510a2a440f95777fba32bb95bf95a658ab880..3b9fd932eb427d4f68286fec04c5a08579364929 100644
--- a/matlab/ms-sbvar/ms_estimation.m
+++ b/matlab/ms-sbvar/ms_estimation.m
@@ -29,7 +29,7 @@ function [options_, oo_]=ms_estimation(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Estimation');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_forecast.m b/matlab/ms-sbvar/ms_forecast.m
index b6e25aa847fc3f063b648422b7fff1f9463ce0e9..4d3f73fb15d4692943186ecbd59a6c0af5d2d1e7 100644
--- a/matlab/ms-sbvar/ms_forecast.m
+++ b/matlab/ms-sbvar/ms_forecast.m
@@ -29,7 +29,7 @@ function [options_, oo_]=ms_forecast(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Forecasts');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_irf.m b/matlab/ms-sbvar/ms_irf.m
index d06a1149c0cead1e6abbea90fd6a8abd4a0ab1ab..71040f6305f7b98910b302faca33956e7cd4bba4 100644
--- a/matlab/ms-sbvar/ms_irf.m
+++ b/matlab/ms-sbvar/ms_irf.m
@@ -30,7 +30,7 @@ function [options_, oo_]=ms_irf(varlist, M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Impulse Response Function');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_mardd.m b/matlab/ms-sbvar/ms_mardd.m
index bd522807d1cd116d0da96af0410fce2fdc5209e5..48482eaac29c77099b0ffe52426da3917238660e 100644
--- a/matlab/ms-sbvar/ms_mardd.m
+++ b/matlab/ms-sbvar/ms_mardd.m
@@ -21,7 +21,7 @@ function ms_mardd(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 msstart2     % start the program in which everyhting is initialized through msstart2.m
 if ~options_.ms.indxestima
diff --git a/matlab/ms-sbvar/ms_sbvar_setup.m b/matlab/ms-sbvar/ms_sbvar_setup.m
index 062eaca728236b39f9b27b7a98c34734882d3f79..bdb8752d974c2c8ce78f1a131d64dd182923c334 100644
--- a/matlab/ms-sbvar/ms_sbvar_setup.m
+++ b/matlab/ms-sbvar/ms_sbvar_setup.m
@@ -26,7 +26,7 @@ function ms_sbvar_setup(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options_.data = read_variables(options_.datafile, ...
                                options_.varobs, [], options_.xls_sheet, options_.xls_range);
diff --git a/matlab/ms-sbvar/ms_simulation.m b/matlab/ms-sbvar/ms_simulation.m
index d311733b80c9712197c95c09d1f39a81d6bca2a3..7af99e3c02efc6b913ce0624164cf76dcaa0ed02 100644
--- a/matlab/ms-sbvar/ms_simulation.m
+++ b/matlab/ms-sbvar/ms_simulation.m
@@ -29,7 +29,7 @@ function [options_, oo_]=ms_simulation(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Simulation');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_variance_decomposition.m b/matlab/ms-sbvar/ms_variance_decomposition.m
index 746facf2ca322051f28c3929161dff391ff85417..56634309929a3dfc5b390bf018e3cfa9f6dba85b 100644
--- a/matlab/ms-sbvar/ms_variance_decomposition.m
+++ b/matlab/ms-sbvar/ms_variance_decomposition.m
@@ -29,7 +29,7 @@ function [options_, oo_]=ms_variance_decomposition(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 disp('MS-SBVAR Variance Decomposition');
 options_ = set_file_tags(options_);
diff --git a/matlab/ms-sbvar/ms_write_markov_file.m b/matlab/ms-sbvar/ms_write_markov_file.m
index ec6507fd6f21c9195e821ec1f6570089e657b805..5752afcdbc178b597d6d30067a6a9954ebb0b957 100644
--- a/matlab/ms-sbvar/ms_write_markov_file.m
+++ b/matlab/ms-sbvar/ms_write_markov_file.m
@@ -25,7 +25,7 @@ function ms_write_markov_file(fname, options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n_chains = length(options.ms.ms_chain);
 nvars = length(options.varobs);
diff --git a/matlab/ms-sbvar/ms_write_mhm_input.m b/matlab/ms-sbvar/ms_write_mhm_input.m
index 26ec655cd9c23e0bf68355c4a5390d19aacacdd7..5baf1e94f464fb39132629b4130404922d72a0ae 100644
--- a/matlab/ms-sbvar/ms_write_mhm_input.m
+++ b/matlab/ms-sbvar/ms_write_mhm_input.m
@@ -26,7 +26,7 @@ function ms_write_mhm_input(fname, options_ms)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 fh = fopen(fname,'w');
 
diff --git a/matlab/ms-sbvar/msstart2.m b/matlab/ms-sbvar/msstart2.m
index d02a2338dcd49aa8e65391f2f2aa0c31d0f9b916..0fafff1616bb8b2d87ba416fb9841647eac7d944 100644
--- a/matlab/ms-sbvar/msstart2.m
+++ b/matlab/ms-sbvar/msstart2.m
@@ -27,7 +27,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % ** ONLY UNDER UNIX SYSTEM
 %path(path,'/usr2/f1taz14/mymatlab')
diff --git a/matlab/ms-sbvar/msstart_setup.m b/matlab/ms-sbvar/msstart_setup.m
index b32b92da41a074345282998f7e71e9688a912a9d..46d3b2573e8da76e4a18ba1ba040b5b5224040ce 100644
--- a/matlab/ms-sbvar/msstart_setup.m
+++ b/matlab/ms-sbvar/msstart_setup.m
@@ -15,7 +15,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % ** ONLY UNDER UNIX SYSTEM
 %path(path,'/usr2/f1taz14/mymatlab')
diff --git a/matlab/ms-sbvar/plot_ms_forecast.m b/matlab/ms-sbvar/plot_ms_forecast.m
index 86508562259473e66dec581cd924105a0446d50d..4bc5e0c59afdead39e96d86337166076a14a772e 100644
--- a/matlab/ms-sbvar/plot_ms_forecast.m
+++ b/matlab/ms-sbvar/plot_ms_forecast.m
@@ -30,7 +30,7 @@ function plot_ms_forecast(M_, options_, forecast, figure_name)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nc = 2;
 nr = 2;
diff --git a/matlab/ms-sbvar/plot_ms_irf.m b/matlab/ms-sbvar/plot_ms_irf.m
index 9b4373d3273a4b2d0aa3ad2a4e448b7c2dd381be..487f9ffe5c7ec2b06baa05fba5e4081090974043 100644
--- a/matlab/ms-sbvar/plot_ms_irf.m
+++ b/matlab/ms-sbvar/plot_ms_irf.m
@@ -30,7 +30,7 @@ function plot_ms_irf(M_, options_, irf, figure_name, varlist)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin < 4
     figure_name = '';
diff --git a/matlab/ms-sbvar/plot_ms_probabilities.m b/matlab/ms-sbvar/plot_ms_probabilities.m
index b0e8ec7ca22867c12e2a3b7eecce8eb247eef929..dfe2263e924a78046d86c12f1488770af8cb80e6 100644
--- a/matlab/ms-sbvar/plot_ms_probabilities.m
+++ b/matlab/ms-sbvar/plot_ms_probabilities.m
@@ -26,7 +26,7 @@ function plot_ms_probabilities(computed_probabilities, options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [T,num_grand_regimes] = size(computed_probabilities);
 num_chains = length(options_.ms.ms_chain);
diff --git a/matlab/ms-sbvar/plot_ms_variance_decomposition.m b/matlab/ms-sbvar/plot_ms_variance_decomposition.m
index 81ca0aa1f32f9e14efe904a3797b9cb71125af55..40a70b59dfed59c7fda5c1830b9d5549a22bc8eb 100644
--- a/matlab/ms-sbvar/plot_ms_variance_decomposition.m
+++ b/matlab/ms-sbvar/plot_ms_variance_decomposition.m
@@ -37,7 +37,7 @@ function plot_ms_variance_decomposition(M_, options_, vd, figure_name, varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if length(size(vd)) == 3
     plot_ms_variance_decomposition_error_bands(M_, options_, vd, figure_name);
diff --git a/matlab/ms-sbvar/plot_ms_variance_decomposition_error_bands.m b/matlab/ms-sbvar/plot_ms_variance_decomposition_error_bands.m
index f267fb505115259e6341be600647b225f6492602..dae577c2234bf70abf05a1340d7c1a06cd088c67 100644
--- a/matlab/ms-sbvar/plot_ms_variance_decomposition_error_bands.m
+++ b/matlab/ms-sbvar/plot_ms_variance_decomposition_error_bands.m
@@ -30,7 +30,7 @@ function plot_ms_variance_decomposition_error_bands(M_, options_, vddata, figure
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvars = M_.endo_nbr;
 endo_names = M_.endo_names;
diff --git a/matlab/ms-sbvar/reshape_ascii_forecast_data.m b/matlab/ms-sbvar/reshape_ascii_forecast_data.m
index 6c2c06ff40b7cd6977ff4705eebfba0df2657347..1c609e387c8018fe419628d4dc7663c3c4240567 100644
--- a/matlab/ms-sbvar/reshape_ascii_forecast_data.m
+++ b/matlab/ms-sbvar/reshape_ascii_forecast_data.m
@@ -28,7 +28,7 @@ function forecast_data=reshape_ascii_forecast_data(endo_nbr, psize, horizon, asc
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if psize <= 1
     forecast_data = ascii_data;
diff --git a/matlab/ms-sbvar/reshape_ascii_irf_data.m b/matlab/ms-sbvar/reshape_ascii_irf_data.m
index 3d9629b224cc3cdbd2f90fc54517c0065da5b72f..dc742cc52c06c08c04d0aec0e248b806ce4b6f96 100644
--- a/matlab/ms-sbvar/reshape_ascii_irf_data.m
+++ b/matlab/ms-sbvar/reshape_ascii_irf_data.m
@@ -28,7 +28,7 @@ function irf_data=reshape_ascii_irf_data(endo_nbr, psize, horizon, ascii_data)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if psize <= 1
     irf_data = ascii_data;
diff --git a/matlab/ms-sbvar/reshape_ascii_variance_decomposition_data.m b/matlab/ms-sbvar/reshape_ascii_variance_decomposition_data.m
index a96833fd56153cbc613b41d874349467c8b88361..549391f15bcd4a720e3f1cb1975f704cf948258b 100644
--- a/matlab/ms-sbvar/reshape_ascii_variance_decomposition_data.m
+++ b/matlab/ms-sbvar/reshape_ascii_variance_decomposition_data.m
@@ -28,7 +28,7 @@ function vd_data=reshape_ascii_variance_decomposition_data(endo_nbr, psize, hori
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if psize <= 1
     vd_data = ascii_data;
diff --git a/matlab/ms-sbvar/sbvar.m b/matlab/ms-sbvar/sbvar.m
index 874fd12babaf7dff330ed729583f12970cf43f9a..9c828bb2757e768cc6e0c0917451e0b851fad4ec 100644
--- a/matlab/ms-sbvar/sbvar.m
+++ b/matlab/ms-sbvar/sbvar.m
@@ -30,7 +30,7 @@ function sbvar(M, options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 clean_sbvar_files();
 options.data = read_variables(options.datafile,options.varobs,[],options.xls_sheet,options.xls_range);
diff --git a/matlab/ms-sbvar/set_file_tags.m b/matlab/ms-sbvar/set_file_tags.m
index 6945f4ca22ff45a93eebf2b13f759df90b1b4936..4dbc17bd468eb069585f0fc83757ff275cf03928 100644
--- a/matlab/ms-sbvar/set_file_tags.m
+++ b/matlab/ms-sbvar/set_file_tags.m
@@ -26,7 +26,7 @@ function [options_]=set_file_tags(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(options_.ms.output_file_tag)
     options_.ms.output_file_tag = options_.ms.file_tag;
diff --git a/matlab/ms-sbvar/set_ms_estimation_file.m b/matlab/ms-sbvar/set_ms_estimation_file.m
index 38a9ac82d585639d7a7337cb820f0769dbfe0351..6a2e23d3deeae14628f4047bc53190dc42e454e7 100644
--- a/matlab/ms-sbvar/set_ms_estimation_file.m
+++ b/matlab/ms-sbvar/set_ms_estimation_file.m
@@ -32,7 +32,7 @@ function [options_, oo_]=set_ms_estimation_file(file_tag, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options_.ms.free_param_file = ['est_free_' file_tag '.out'];
 if ~exist(options_.ms.free_param_file,'file')
diff --git a/matlab/ms-sbvar/set_ms_simulation_file.m b/matlab/ms-sbvar/set_ms_simulation_file.m
index b65427c42ec2c39b6c9c4f613f6817fd77ee9241..8bf12199595b8cabe82073cab138bb6fe57f6cd2 100644
--- a/matlab/ms-sbvar/set_ms_simulation_file.m
+++ b/matlab/ms-sbvar/set_ms_simulation_file.m
@@ -26,7 +26,7 @@ function options_=set_ms_simulation_file(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(options_.ms.simulation_file_tag)
     options_.ms.simulation_file_tag = options_.ms.file_tag;
diff --git a/matlab/ms-sbvar/svar_global_identification_check.m b/matlab/ms-sbvar/svar_global_identification_check.m
index 07397d18dca4d1a56e868d597c09c83b1859b627..05ccf79cef6075da47903826cf368f3cd6d92635 100644
--- a/matlab/ms-sbvar/svar_global_identification_check.m
+++ b/matlab/ms-sbvar/svar_global_identification_check.m
@@ -31,7 +31,7 @@ function indent = svar_global_identification_check(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ident = false;
 
diff --git a/matlab/mult_elimination.m b/matlab/mult_elimination.m
index 5ff1418c3e336148f648d3685d5d46dcf53c3191..ac528965796fc98bc262106523e5905e79d91fab 100644
--- a/matlab/mult_elimination.m
+++ b/matlab/mult_elimination.m
@@ -27,7 +27,7 @@ function dr=mult_elimination(varlist,M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 dr = oo_.dr;
 
diff --git a/matlab/multivariate_sample_autocovariance.m b/matlab/multivariate_sample_autocovariance.m
index 40af070157d4b7e2c8708812d281350c6a39719a..aadc00e9c081ac981e3b9e0ca7cee32a7cdce3d5 100644
--- a/matlab/multivariate_sample_autocovariance.m
+++ b/matlab/multivariate_sample_autocovariance.m
@@ -26,7 +26,7 @@ function autocov = multivariate_sample_autocovariance(data,q)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [T,m] = size(data);
 
diff --git a/matlab/my_subplot.m b/matlab/my_subplot.m
index 0e01f71f93155db3b3246bfa657256d9bee7a93a..bfb4d48637a9204f973fc4aaf0c20f273a77d53f 100644
--- a/matlab/my_subplot.m
+++ b/matlab/my_subplot.m
@@ -32,7 +32,7 @@ function my_subplot(i,imax,irow,icol,fig_title)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nfig_max = irow*icol;
 if imax < nfig_max
diff --git a/matlab/myboxplot.m b/matlab/myboxplot.m
index b3490a4b39eb77da5c61a500f5850e6b8cf9c43f..77a000cc460ad701bce602a773784f104c594f9a 100644
--- a/matlab/myboxplot.m
+++ b/matlab/myboxplot.m
@@ -19,7 +19,7 @@ function sout = myboxplot (data,notched,symbol,vertical,maxwhisker)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % % % % endif
 if nargin < 5 || isempty(maxwhisker), maxwhisker = 1.5; end
diff --git a/matlab/mydelete.m b/matlab/mydelete.m
index c28d5ad94679cff69731559e3c865837c08f0814..425fded731a3f747511cb28ce7ce97b51e4daa88 100644
--- a/matlab/mydelete.m
+++ b/matlab/mydelete.m
@@ -16,7 +16,7 @@ function mydelete(fname,pname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin ==0
     disp('mydelete(fname)')
diff --git a/matlab/name2index.m b/matlab/name2index.m
index 3f75b5c8a0965538bf71189fa5bd1323efcf1269..4afc5dd203d8385a4a7560e3070fff98cfff6556 100644
--- a/matlab/name2index.m
+++ b/matlab/name2index.m
@@ -31,7 +31,7 @@ function i = name2index(options_, M_, estim_params_, type, name1, name2 )
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvx     = estim_params_.nvx;
 nvn     = estim_params_.nvn;
diff --git a/matlab/non_linear_dsge_likelihood.m b/matlab/non_linear_dsge_likelihood.m
index e69c9eea9c883c9e19db8cdb8029d391f4bdd795..1fc2ebad9dacc0d32f3b9521caaa23b769f80609 100644
--- a/matlab/non_linear_dsge_likelihood.m
+++ b/matlab/non_linear_dsge_likelihood.m
@@ -41,7 +41,7 @@ function [fval,info,exit_flag,DLIK,Hess,ys,trend_coeff,Model,DynareOptions,Bayes
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Initialization of the returned arguments.
 fval            = [];
diff --git a/matlab/octave_ver_less_than.m b/matlab/octave_ver_less_than.m
index 0f4fc1fa29900a1fed3671c6d74c2e77d01876ce..0bf1a2af637ed78675a7fc94b4d1633dd421cffd 100644
--- a/matlab/octave_ver_less_than.m
+++ b/matlab/octave_ver_less_than.m
@@ -30,7 +30,7 @@ function r = octave_ver_less_than(verstr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 r = compare_versions(version(), verstr, "<");
 
diff --git a/matlab/ols/common_parsing.m b/matlab/ols/common_parsing.m
index 0ebc4a2605724a91329b4a7510fdaf677bc40d8b..185ecc98c5f28b6e529bab61212aebbe1dcc18ee 100644
--- a/matlab/ols/common_parsing.m
+++ b/matlab/ols/common_parsing.m
@@ -40,7 +40,7 @@ function [Y, lhssub, X, startdates, enddates, residnames] = common_parsing(ds, a
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/ols/create_sur_report.m b/matlab/ols/create_sur_report.m
index 86152866b16e177b6fdd53938e3a7b985962e0db..e96fd1beba5a280f55945dd575328ec96ee83919 100644
--- a/matlab/ols/create_sur_report.m
+++ b/matlab/ols/create_sur_report.m
@@ -26,7 +26,7 @@ function create_sur_report()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_
 
diff --git a/matlab/ols/dyn_ols.m b/matlab/ols/dyn_ols.m
index 2a726a03dbe25a1f42fe60e4835a1e9b6e319cab..027804ffeb54d6e4981215308fbcdad111a52bf7 100644
--- a/matlab/ols/dyn_ols.m
+++ b/matlab/ols/dyn_ols.m
@@ -43,7 +43,7 @@ function ds = dyn_ols(ds, fitted_names_dict, eqtags, model_name, param_names, ds
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/ols/getEquationsByTags.m b/matlab/ols/getEquationsByTags.m
index 7addcc116b4fb8b2a3c486ad962ee2f1547ad510..dfcf4c92903f7b9f39c413407e68147f3ecb7ffa 100644
--- a/matlab/ols/getEquationsByTags.m
+++ b/matlab/ols/getEquationsByTags.m
@@ -32,7 +32,7 @@ function [ast] = getEquationsByTags(ast, tagname, tagvalue)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin ~= 3
     error('Incorrect number of arguments passed to function')
diff --git a/matlab/ols/get_ast.m b/matlab/ols/get_ast.m
index 833bef4d8ef502b3c1a49d0ad3e70c443ccbfc3e..cd482e9c81cfe1e96171ef54c13a47391d5dcf15 100644
--- a/matlab/ols/get_ast.m
+++ b/matlab/ols/get_ast.m
@@ -29,7 +29,7 @@ function [ast, jsonmodel] = get_ast(eqtags)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/ols/handle_constant_eqs.m b/matlab/ols/handle_constant_eqs.m
index bd69679e4d74194cfd6e59c71c8fb38bbb583caa..72409cf6857fef68fa7fd36050699bb791fe0874 100644
--- a/matlab/ols/handle_constant_eqs.m
+++ b/matlab/ols/handle_constant_eqs.m
@@ -28,7 +28,7 @@ function ast = handle_constant_eqs(ast)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin ~= 1
     error('Incorrect number of arguments to function')
diff --git a/matlab/ols/parse_ols_style_equation.m b/matlab/ols/parse_ols_style_equation.m
index bbe063ec9dd925a47fb76a5bf74f3d6d85d16d37..3c38327512e68a0606e3f5c4ba74a39dbd532cc4 100644
--- a/matlab/ols/parse_ols_style_equation.m
+++ b/matlab/ols/parse_ols_style_equation.m
@@ -33,7 +33,7 @@ function [Y, lhssub, X, residual, fp, lp] = parse_ols_style_equation(ds, ast)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %% Check inputs
 if nargin ~= 2
diff --git a/matlab/ols/pooled_fgls.m b/matlab/ols/pooled_fgls.m
index ef0fd1cc5fe4f9ca596753fa19278eb23f19ee1f..d00dced64281f5d38203e223c940a246cdb13371 100644
--- a/matlab/ols/pooled_fgls.m
+++ b/matlab/ols/pooled_fgls.m
@@ -38,7 +38,7 @@ function pooled_fgls(ds, param_common, param_regex, eqtags, model_name, param_na
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/ols/pooled_ols.m b/matlab/ols/pooled_ols.m
index df51efd2577ab681ead1dcf92aba1c5c3462a025..3785bc25d7a6af37788698c5c103261deaa79f1a 100644
--- a/matlab/ols/pooled_ols.m
+++ b/matlab/ols/pooled_ols.m
@@ -42,7 +42,7 @@ function varargout = pooled_ols(ds, param_common, param_regex, overlapping_dates
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/ols/put_in_sur_form.m b/matlab/ols/put_in_sur_form.m
index 40cb0ed08d6285493c08180ff8b037922e139eac..1ca7a44a0f15ec336e05c414bd0661f2800be17b 100644
--- a/matlab/ols/put_in_sur_form.m
+++ b/matlab/ols/put_in_sur_form.m
@@ -30,7 +30,7 @@ function [Yvec, lhssubvec, Xmat, constrained] = put_in_sur_form(Y, lhssub, X)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %% Check inputs
 if nargin ~= 3
diff --git a/matlab/ols/sur.m b/matlab/ols/sur.m
index 8002d13bf5b2ba0586ea9264f928ac8b725cfbd3..15dc52b4dfdff0d516548ebe3d562024b8cb757e 100644
--- a/matlab/ols/sur.m
+++ b/matlab/ols/sur.m
@@ -33,7 +33,7 @@ function varargout = sur(ds, param_names, eqtags, model_name, noniterative, ds_r
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/ols/write_param_init_inc_file.m b/matlab/ols/write_param_init_inc_file.m
index 2ce84f0bad0030bcde78500687f56ad67d6bac2c..419a0692e53d6bb2fd0c25380dc6a98535aed950 100644
--- a/matlab/ols/write_param_init_inc_file.m
+++ b/matlab/ols/write_param_init_inc_file.m
@@ -29,7 +29,7 @@ function write_param_init_inc_file(subfolder, fnameroot, idxs, estimated_params)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/olsgibbs.m b/matlab/olsgibbs.m
index 336551582517f1a5d4816aff2d58c7b37f89aa01..9c6385d4a201f9ae175f93942edaa4f6ee68bf15 100644
--- a/matlab/olsgibbs.m
+++ b/matlab/olsgibbs.m
@@ -45,7 +45,7 @@ function ds = olsgibbs(ds, eqtag, BetaPriorExpectation, BetaPriorVariance, s2, n
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/one_sided_hp_filter.m b/matlab/one_sided_hp_filter.m
index 6ffbdc54b784c9b42b820185ec9b5f9dba16b557..3d71b812a1757b80ff496bc8faac2bc522b89b81 100644
--- a/matlab/one_sided_hp_filter.m
+++ b/matlab/one_sided_hp_filter.m
@@ -53,7 +53,7 @@ function [ytrend,ycycle]=one_sided_hp_filter(y,lambda,x_user,P_user,discard)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin < 2 || isempty(lambda)
     lambda = 1600; %If the user didn't provide a value for lambda, set it to the default value 1600
diff --git a/matlab/optimization/analytic_gradient_wrapper.m b/matlab/optimization/analytic_gradient_wrapper.m
index 8ef31deaff85f1815695bab04a9f6396d969a7a8..4dba5fedda5e8306c2ae7fe7efc5a3705147bfef 100644
--- a/matlab/optimization/analytic_gradient_wrapper.m
+++ b/matlab/optimization/analytic_gradient_wrapper.m
@@ -29,7 +29,7 @@ function [fval, grad, hess, exit_flag]=analytic_gradient_wrapper(x, fcn, varargi
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [fval, info, exit_flag, grad, hess] = fcn(x, varargin{:});
 if size(grad,2)==1
diff --git a/matlab/optimization/apprgrdn.m b/matlab/optimization/apprgrdn.m
index 2d79f0489f831cd49a0fb436e864f416e2260fce..8a4862fdc6e0d6a41330a58440ec81db264bcf9e 100644
--- a/matlab/optimization/apprgrdn.m
+++ b/matlab/optimization/apprgrdn.m
@@ -32,7 +32,7 @@ function g = apprgrdn(x,f,fun,deltax,obj,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n=max(size(x)); ee=ones(size(x));
 di=abs(x); idx=find(di<5e-15); di(idx)=5e-15*ee(idx);
diff --git a/matlab/optimization/bfgsi1.m b/matlab/optimization/bfgsi1.m
index 7a76a89b230e8bfaee48e249e057772bee339b84..e45ff2e16f2ba4dc0bc9c30dcf73a921f34267c2 100644
--- a/matlab/optimization/bfgsi1.m
+++ b/matlab/optimization/bfgsi1.m
@@ -31,7 +31,7 @@ function H = bfgsi1(H0,dg,dx,Verbose,Save_files)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if size(dg,2)>1
     dg=dg';
diff --git a/matlab/optimization/cmaes.m b/matlab/optimization/cmaes.m
index dba7a368c828d8caab99cc8d558721eba9cc49ac..8ffb2f39df044447c1aa308e8bb54bf4b6ecacdf 100644
--- a/matlab/optimization/cmaes.m
+++ b/matlab/optimization/cmaes.m
@@ -173,7 +173,7 @@ function [xmin, ...      % minimum search point of last iteration
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 cmaVersion = '3.60.beta';
diff --git a/matlab/optimization/csminit1.m b/matlab/optimization/csminit1.m
index ec088edc724ec08ee1461ff22b0e08c6896ad034..b0fbb2f2435347178e76c08b9d4198c3b409efb6 100644
--- a/matlab/optimization/csminit1.m
+++ b/matlab/optimization/csminit1.m
@@ -53,7 +53,7 @@ function [fhat,xhat,fcount,retcode] = csminit1(fcn,x0,penalty,f0,g0,badg,H0,Verb
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %tailstr = ')';
 %for i=nargin-6:-1:1
diff --git a/matlab/optimization/csminwel1.m b/matlab/optimization/csminwel1.m
index 9cc6cddc2e074f9946622a28f76fa9ac314420c2..35e6dffd8688d2a373d042d089ca2f55352b621d 100644
--- a/matlab/optimization/csminwel1.m
+++ b/matlab/optimization/csminwel1.m
@@ -57,7 +57,7 @@ function [fh,xh,gh,H,itct,fcount,retcodeh] = csminwel1(fcn,x0,H0,grad,crit,nit,m
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % initialize variable penalty
 penalty = 1e8;
diff --git a/matlab/optimization/dynare_minimize_objective.m b/matlab/optimization/dynare_minimize_objective.m
index 2b9c50d90bd4d34b2733e45acc1e6b098c01c468..0311e91c5c11fd17d913e34e3d72193f6785d116 100644
--- a/matlab/optimization/dynare_minimize_objective.m
+++ b/matlab/optimization/dynare_minimize_objective.m
@@ -41,7 +41,7 @@ function [opt_par_values,fval,exitflag,hessian_mat,options_,Scale,new_rat_hess_i
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 %% set bounds and parameter names if not already set
diff --git a/matlab/optimization/gauss_newton.m b/matlab/optimization/gauss_newton.m
index 28b8ee62997b34f3841fbab015d998c3a80cecb8..0e819e9a49265b4f0067879f963ac47f9e199766 100644
--- a/matlab/optimization/gauss_newton.m
+++ b/matlab/optimization/gauss_newton.m
@@ -32,7 +32,7 @@ function [x, objectivevalue, errorflag] = gauss_newton(fun, x0)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 maxIter = 100;           % Maximum number of iteration.
 h = sqrt(eps(1.0));      % Pertubation size for numerical computation of the Jacobian matrix
diff --git a/matlab/optimization/gmhmaxlik.m b/matlab/optimization/gmhmaxlik.m
index 339526efa6458bc5884d0325ed793f6221468276..77b4f8f290eb74bacdb3255f8ba1ace1f462cf86 100644
--- a/matlab/optimization/gmhmaxlik.m
+++ b/matlab/optimization/gmhmaxlik.m
@@ -15,7 +15,7 @@ function [PostMode, HessianMatrix, Scale, ModeValue] = gmhmaxlik(fun, xinit, Hin
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set default options
 
diff --git a/matlab/optimization/gmhmaxlik_core.m b/matlab/optimization/gmhmaxlik_core.m
index bfa99441d5d4254840f93ab86c381c33b939e791..34e24f3558df10b5f4e6047a2b3b963a09297712 100644
--- a/matlab/optimization/gmhmaxlik_core.m
+++ b/matlab/optimization/gmhmaxlik_core.m
@@ -71,7 +71,7 @@ function [PostMod,PostVar,Scale,PostMean] = gmhmaxlik_core(ObjFun,xparam1,mh_bou
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global bayestopt_ estim_params_ options_
 
diff --git a/matlab/optimization/mr_gstep.m b/matlab/optimization/mr_gstep.m
index 0486014845b3844cf4bdbb17242c87bbec8cf809..4c7e81bc87c9445194b0071f0bfde2f85d6b317a 100644
--- a/matlab/optimization/mr_gstep.m
+++ b/matlab/optimization/mr_gstep.m
@@ -26,7 +26,7 @@ function [f0, x, ig] = mr_gstep(h1,x,bounds,func0,penalty,htol0,Verbose,Save_fil
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n=size(x,1);
 if isempty(h1)
diff --git a/matlab/optimization/mr_hessian.m b/matlab/optimization/mr_hessian.m
index 1012ee2fdc88f672528a5e2ea8f2eecfe38a4809..34df1146a8e4409d88fd25269f97f34ba7e8a407 100644
--- a/matlab/optimization/mr_hessian.m
+++ b/matlab/optimization/mr_hessian.m
@@ -63,7 +63,7 @@ function [hessian_mat, gg, htol1, ihh, hh_mat0, hh1, hess_info] = mr_hessian(x,f
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n=size(x,1);
 
diff --git a/matlab/optimization/newrat.m b/matlab/optimization/newrat.m
index 0d7ece4fee471b34a1619010dffb171713e86dfd..d4f7c8b3a94c9a5fa9857a745344c5bae604ec17 100644
--- a/matlab/optimization/newrat.m
+++ b/matlab/optimization/newrat.m
@@ -60,7 +60,7 @@ function [xparam1, hh, gg, fval, igg, hess_info] = newrat(func0, x, bounds, anal
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % initialize variable penalty
 penalty = 1e8;
diff --git a/matlab/optimization/numgrad2.m b/matlab/optimization/numgrad2.m
index a0f2552aacef890c8199f6d0ff8d251f808b7938..ea2ed75371926693024e88d440747242af7bc29d 100644
--- a/matlab/optimization/numgrad2.m
+++ b/matlab/optimization/numgrad2.m
@@ -19,7 +19,7 @@ function [g, badg] = numgrad2(fcn,f0,x,penalty,epsilon,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 right_derivative = 1;
 
diff --git a/matlab/optimization/numgrad3.m b/matlab/optimization/numgrad3.m
index 2ff94bc072c09c343366726186d1e8244022c447..d91ceedfc8ed8ba0c8ed7fc7e8107b48c39ba212 100644
--- a/matlab/optimization/numgrad3.m
+++ b/matlab/optimization/numgrad3.m
@@ -26,7 +26,7 @@ function [g, badg] = numgrad3(fcn,f0,x,penalty,epsilon,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 h = epsilon;
 n = length(x);
diff --git a/matlab/optimization/numgrad3_.m b/matlab/optimization/numgrad3_.m
index a59fa6ae6bfea0b0296e6efff44955d42c5e9379..226904230401ea63f81fdc3cf1306c43ba54818e 100644
--- a/matlab/optimization/numgrad3_.m
+++ b/matlab/optimization/numgrad3_.m
@@ -26,7 +26,7 @@ function [g, badg] = numgrad3_(fcn,f0,x,penalty,epsilon,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 rescale_step_length = 0;
 
diff --git a/matlab/optimization/numgrad5.m b/matlab/optimization/numgrad5.m
index f8b8d33e0387e70de323ba59821e182eecafc48a..cd23968656a3fbd85ae8068f6824139f15e72ec5 100644
--- a/matlab/optimization/numgrad5.m
+++ b/matlab/optimization/numgrad5.m
@@ -28,7 +28,7 @@ function [g, badg] = numgrad5(fcn,f0,x,penalty,epsilon,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 h = epsilon;
 n = length(x);
diff --git a/matlab/optimization/numgrad5_.m b/matlab/optimization/numgrad5_.m
index 9fbdc9b8e4b7fde6b0a7109e206f4f6f8012ad43..3d69469ec2fd38caa4b9aacf0feb56915e9a71c8 100644
--- a/matlab/optimization/numgrad5_.m
+++ b/matlab/optimization/numgrad5_.m
@@ -28,7 +28,7 @@ function [g, badg] = numgrad5_(fcn,f0,x,penalty,epsilon,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 rescale_step_length = 0;
 
diff --git a/matlab/optimization/penalty_objective_function.m b/matlab/optimization/penalty_objective_function.m
index e0c24925123eaeeae03c06d9eeca8972fa2fe8d1..4e7101077da62020eaad8cabbadcb744b69f1074 100644
--- a/matlab/optimization/penalty_objective_function.m
+++ b/matlab/optimization/penalty_objective_function.m
@@ -28,7 +28,7 @@ function [fval, exit_flag, arg1, arg2] = penalty_objective_function(x, fcn, base
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [fval, info, exit_flag, arg1, arg2] = fcn(x, varargin{:});
 
diff --git a/matlab/optimization/simplex_optimization_routine.m b/matlab/optimization/simplex_optimization_routine.m
index 9626bf4614277024fde7ff58427227410df6bc8f..85d7966926e2474401b9fcff762f3320c23c538e 100644
--- a/matlab/optimization/simplex_optimization_routine.m
+++ b/matlab/optimization/simplex_optimization_routine.m
@@ -44,7 +44,7 @@ function [x,fval,exitflag] = simplex_optimization_routine(objective_function,x,o
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set verbose mode
 verbose = options.verbosity;
diff --git a/matlab/optimization/simpsa.m b/matlab/optimization/simpsa.m
index baf07c1d93a10a643c1cfa7eadb030905501f205..19a89208b24ec8db8984d0049980be7773507a59 100644
--- a/matlab/optimization/simpsa.m
+++ b/matlab/optimization/simpsa.m
@@ -73,7 +73,7 @@ function [X,FVAL,EXITFLAG,OUTPUT] = simpsa(FUN,X0,LB,UB,OPTIONS,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % handle variable input arguments
 
diff --git a/matlab/optimization/simpsaget.m b/matlab/optimization/simpsaget.m
index 96eb36dc98f2f10fa8216ccae667ac5e8de39aa6..70ded5b16d891b5766122426999606d7b07dc63c 100644
--- a/matlab/optimization/simpsaget.m
+++ b/matlab/optimization/simpsaget.m
@@ -33,7 +33,7 @@ function o = simpsaget(options,name,default,flag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % undocumented usage for fast access with no error checking
diff --git a/matlab/optimization/simpsaset.m b/matlab/optimization/simpsaset.m
index 1d63c7bdc9bc94572de13a2cfe60892d03b51f75..b3f4d067efc33d0f1bf60bcf34f890702486e335 100644
--- a/matlab/optimization/simpsaset.m
+++ b/matlab/optimization/simpsaset.m
@@ -43,7 +43,7 @@ function options = simpsaset(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/optimization/simulated_annealing.m b/matlab/optimization/simulated_annealing.m
index 7088685b3a8e66c0a6f754a32a353c43a2f991f8..24b814cb02313e2e1837bfe10fbc4e8555d41203 100644
--- a/matlab/optimization/simulated_annealing.m
+++ b/matlab/optimization/simulated_annealing.m
@@ -178,7 +178,7 @@ function [xopt, fopt,exitflag, n_accepted_draws, n_total_draws, n_out_of_bounds_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 c=optim.step_length_c;
 t=optim.initial_temperature;
diff --git a/matlab/optimization/solvopt.m b/matlab/optimization/solvopt.m
index fb23371f60e3d784e29c77093117991a5cf08fdf..9d4ca0467e2e5f216797a087615bc25ca33dde01 100644
--- a/matlab/optimization/solvopt.m
+++ b/matlab/optimization/solvopt.m
@@ -73,7 +73,7 @@ function [x,f,exitflag,n_f_evals,n_grad_evals,n_constraint_evals,n_constraint_gr
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/optimize_prior.m b/matlab/optimize_prior.m
index adf4d9c0ed1a632b79595bdaac73a801dbe2c818..e1790b6584829d009d8fcb404afc126f57f29f52 100644
--- a/matlab/optimize_prior.m
+++ b/matlab/optimize_prior.m
@@ -17,7 +17,7 @@ function optimize_prior(DynareOptions, ModelInfo, DynareResults, BayesInfo, Esti
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Initialize to the prior mean
 DynareResults.dr = set_state_space(DynareResults.dr,ModelInfo,DynareOptions);
diff --git a/matlab/options2cell.m b/matlab/options2cell.m
index 697c24b87f9baa7e9b841df6bde932c19a15d2bb..97beb6fe444b29bc8140a8b7bdfb39b183e667b6 100644
--- a/matlab/options2cell.m
+++ b/matlab/options2cell.m
@@ -23,7 +23,7 @@ function c = options2cell(o)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 s = fieldnames(o);
 c = {};
diff --git a/matlab/osr.m b/matlab/osr.m
index 3a0d463f2271c3f0947c9744a28205ab3149e122..149d4c4b8bbdf63f730558917d302b3a65c335bb 100644
--- a/matlab/osr.m
+++ b/matlab/osr.m
@@ -36,7 +36,7 @@ function osr_res = osr(var_list, params, i_var,W)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/osr1.m b/matlab/osr1.m
index 673f69bdc91f4365ff1dbae922de170f6d40c699..fbb87dc935e0a0959f02be6c2595845d208b04f1 100644
--- a/matlab/osr1.m
+++ b/matlab/osr1.m
@@ -31,7 +31,7 @@ function osr_res = osr1(i_params,i_var,weights)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_ it_
 
diff --git a/matlab/osr_obj.m b/matlab/osr_obj.m
index 76db1da69c80b9230dfe74fd6daffa2889937aeb..820e640b35f8aa235377278418931b04ddd8b2ca 100644
--- a/matlab/osr_obj.m
+++ b/matlab/osr_obj.m
@@ -32,7 +32,7 @@ function [loss,info,exit_flag,vx,junk]=osr_obj(x,i_params,i_var,weights)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_ optimal_Q_ it_
 %  global ys_ Sigma_e_ endo_nbr exo_nbr optimal_Q_ it_ ykmin_ options_
diff --git a/matlab/pac-tools/a2alpha.m b/matlab/pac-tools/a2alpha.m
index 2e2b319378065e111ca5ba223ceb659efa910a34..af211fecb4364966092104e11931729c488beab8 100644
--- a/matlab/pac-tools/a2alpha.m
+++ b/matlab/pac-tools/a2alpha.m
@@ -37,7 +37,7 @@ function alpha = a2alpha(a)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Return an error if the input is not a vector
 if ~isvector(a)
diff --git a/matlab/pac-tools/buildGmatrix.m b/matlab/pac-tools/buildGmatrix.m
index 6685aedfa5efb1e7516c2618ceb9c86aa610d48d..2dbd9b786d20247997acc3781e14ab691f4b8774 100644
--- a/matlab/pac-tools/buildGmatrix.m
+++ b/matlab/pac-tools/buildGmatrix.m
@@ -24,7 +24,7 @@ function G = buildGmatrix(alpha, beta)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<2
     error('Two input arguments are required (vector of alpha parameters and beta discount parameter)!')
diff --git a/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m b/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m
index 1565bd5006b9eeb9b9849096028258974c614814..cc1f142ba9d70c671ce018e787afe95d0a722ab4 100644
--- a/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m
+++ b/matlab/pac-tools/buildGmatrixWithAlphaAndBeta.m
@@ -25,7 +25,7 @@ function [G, alpha, beta] = buildGmatrixWithAlphaAndBeta(params)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Return an error if the input is not a vector.
 if ~isvector(params) || ~isnumeric(params) || ~isreal(params)
diff --git a/matlab/pac-tools/geteqtag.m b/matlab/pac-tools/geteqtag.m
index e9120480354eaed4fcd8882eb4d919cf6b3603de..26a8eb589e2035e3289d74a5ba74a2fafbdcaf60 100644
--- a/matlab/pac-tools/geteqtag.m
+++ b/matlab/pac-tools/geteqtag.m
@@ -25,6 +25,6 @@ function eqtag = geteqtag(eqname, pacname, Model)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 eqtag = Model.pac.(pacname).tag_map{strcmp(eqname, Model.pac.(pacname).tag_map(:,1)),2};
\ No newline at end of file
diff --git a/matlab/pac-tools/hVectors.m b/matlab/pac-tools/hVectors.m
index f057d7fa0aeabe3653079eef74aa59e5d36558c1..7d44a47a23814230fc0c06119534b7be04e9e976 100644
--- a/matlab/pac-tools/hVectors.m
+++ b/matlab/pac-tools/hVectors.m
@@ -32,7 +32,7 @@ function [h0, h1, longruncorrectionparameter] = hVectors(params, H, ids, idns, a
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargout>1 && nargin<4
     error('Wrong number of Inputs/Outputs!')
diff --git a/matlab/pac-tools/iota.m b/matlab/pac-tools/iota.m
index e7613f07294be8385cd6c4ebea0c9ed326378a32..98c4e5a4b29ab969b3899a0e1a679c169172e47d 100644
--- a/matlab/pac-tools/iota.m
+++ b/matlab/pac-tools/iota.m
@@ -24,7 +24,7 @@ function i = iota(n, idx)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isscalar(n) || ~isvector(idx)
     error('First input has to be a scalar and second input a vector!')
diff --git a/matlab/parallel/AnalyseComputationalEnvironment.m b/matlab/parallel/AnalyseComputationalEnvironment.m
index e680a46b76933851aab0180b936dc515c1cc7512..26b3fe80eb2532dc92e29600657fa7291bbb2910 100644
--- a/matlab/parallel/AnalyseComputationalEnvironment.m
+++ b/matlab/parallel/AnalyseComputationalEnvironment.m
@@ -98,7 +98,7 @@ dynareParallelMkDir(RemoteTmpFolder,DataInput);
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 ErrorCode=0;
diff --git a/matlab/parallel/CreateTimeString.m b/matlab/parallel/CreateTimeString.m
index e78f8836aeb6ebf353eb625e815029175a86d662..441264c34668055197519f3d37695977cd6a44b7 100644
--- a/matlab/parallel/CreateTimeString.m
+++ b/matlab/parallel/CreateTimeString.m
@@ -23,7 +23,7 @@ function [TiSt] = CreateTimeString()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/parallel/GiveCPUnumber.m b/matlab/parallel/GiveCPUnumber.m
index f7e6caf04d8f6d3d1a1c19d3157cfdb9888cd77c..6a133d2a60f8c2f44546d199e515933aed9cd84e 100644
--- a/matlab/parallel/GiveCPUnumber.m
+++ b/matlab/parallel/GiveCPUnumber.m
@@ -28,7 +28,7 @@ function [nCPU]= GiveCPUnumber (ComputerInformations, Environment)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 nCPU='';
diff --git a/matlab/parallel/InitializeComputationalEnvironment.m b/matlab/parallel/InitializeComputationalEnvironment.m
index 18ce19f113331bfb87e7e5c325c8b331685e6db9..c08e9d3aa79497c26d73d4f12fdd888f3f7de07d 100644
--- a/matlab/parallel/InitializeComputationalEnvironment.m
+++ b/matlab/parallel/InitializeComputationalEnvironment.m
@@ -25,7 +25,7 @@ function InitializeComputationalEnvironment()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % This is simple and check!
diff --git a/matlab/parallel/closeSlave.m b/matlab/parallel/closeSlave.m
index 49c14deb3eac395502e8979b8e87b1275f7d12bc..678889da1a6937e468b7d4de64269181e532b140 100644
--- a/matlab/parallel/closeSlave.m
+++ b/matlab/parallel/closeSlave.m
@@ -30,7 +30,7 @@ function closeSlave(Parallel,TmpFolder,partial)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     partial=0;
diff --git a/matlab/parallel/distributeJobs.m b/matlab/parallel/distributeJobs.m
index c0c41925f7db2b3b96005d8741d81799ecbcdb89..e32c79a751ec83e1f775485eb69a6d7734af3866 100644
--- a/matlab/parallel/distributeJobs.m
+++ b/matlab/parallel/distributeJobs.m
@@ -36,7 +36,7 @@ function [nCPU, totCPU, nBlockPerCPU, totSLAVES] = distributeJobs(Parallel, fBlo
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % The Parallel vector has already been sorted
diff --git a/matlab/parallel/dynareParallelDelete.m b/matlab/parallel/dynareParallelDelete.m
index abbfd05d392658fe69a582a245b21659ea73a088..3ea4550f2ca6608262636f3a0cd665c41415bcec 100644
--- a/matlab/parallel/dynareParallelDelete.m
+++ b/matlab/parallel/dynareParallelDelete.m
@@ -26,7 +26,7 @@ function dynareParallelDelete(fname,pname,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin ~= 3
     disp('dynareParallelDelete(fname,pname,Parallel)')
diff --git a/matlab/parallel/dynareParallelDeleteNewFiles.m b/matlab/parallel/dynareParallelDeleteNewFiles.m
index 34fdab44be274f5434a34401ca4c8fe42196c6df..44f281608cc8511ccda5b10f9a48c6b3a0cfb6fe 100644
--- a/matlab/parallel/dynareParallelDeleteNewFiles.m
+++ b/matlab/parallel/dynareParallelDeleteNewFiles.m
@@ -30,7 +30,7 @@ function dynareParallelDeleteNewFiles(PRCDir,Parallel,PRCDirSnapshot,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 NewFilesFromSlaves={};
 
diff --git a/matlab/parallel/dynareParallelDir.m b/matlab/parallel/dynareParallelDir.m
index 0625dd8e7b97b7588fb3e16f1c444ae8a44e870d..02a4defb6617f08c797e95fa24bb86d47cb0ff4b 100644
--- a/matlab/parallel/dynareParallelDir.m
+++ b/matlab/parallel/dynareParallelDir.m
@@ -25,7 +25,7 @@ function dirlist = dynareParallelDir(filename,PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 dirlist=[];
 for indPC=1:length(Parallel)
diff --git a/matlab/parallel/dynareParallelFindNewFiles.m b/matlab/parallel/dynareParallelFindNewFiles.m
index d8cb6a9d71609ded5d3e3fa62b06a8a49170cebc..3b6838b9d571741ee60ae06265654b8e9eaad6da 100644
--- a/matlab/parallel/dynareParallelFindNewFiles.m
+++ b/matlab/parallel/dynareParallelFindNewFiles.m
@@ -30,7 +30,7 @@ function [NewFilesFrom, NewFileList]=dynareParallelFindNewFiles(FileList,Paralle
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 NewFilesFrom={};
diff --git a/matlab/parallel/dynareParallelGetFiles.m b/matlab/parallel/dynareParallelGetFiles.m
index 6669f21a85f0e5315540d9afaf8fc0663ed8fb06..30afaea81142c2b05585bce09707f7f601d2844b 100644
--- a/matlab/parallel/dynareParallelGetFiles.m
+++ b/matlab/parallel/dynareParallelGetFiles.m
@@ -29,7 +29,7 @@ function dynareParallelGetFiles(NamFileInput,PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 NamFileInput0=NamFileInput;
 
diff --git a/matlab/parallel/dynareParallelGetNewFiles.m b/matlab/parallel/dynareParallelGetNewFiles.m
index 8d42bd3759f3379e7785e481c288b7e9757c8e18..155e8ab77d22fc0830efac76ff8e7e0d1e3b2cb4 100644
--- a/matlab/parallel/dynareParallelGetNewFiles.m
+++ b/matlab/parallel/dynareParallelGetNewFiles.m
@@ -30,7 +30,7 @@ function [PRCDirSnapshot]=dynareParallelGetNewFiles(PRCDir,Parallel,PRCDirSnapsh
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 NewFilesFromSlaves={};
diff --git a/matlab/parallel/dynareParallelListAllFiles.m b/matlab/parallel/dynareParallelListAllFiles.m
index eab7134223aff237ddd42c190908943dbbdba5b1..8be7ba17ee7594cd3eda0b11bc649eba9bc268cb 100644
--- a/matlab/parallel/dynareParallelListAllFiles.m
+++ b/matlab/parallel/dynareParallelListAllFiles.m
@@ -29,7 +29,7 @@ function fileList = dynareParallelListAllFiles(dirName,PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/parallel/dynareParallelMkDir.m b/matlab/parallel/dynareParallelMkDir.m
index e85d1af3a206dfd49315efc4bd86788c354b8b0a..a6540c98e7ede692cebd88e4dd1d920fcf8d8051 100644
--- a/matlab/parallel/dynareParallelMkDir.m
+++ b/matlab/parallel/dynareParallelMkDir.m
@@ -25,7 +25,7 @@ function dynareParallelMkDir(PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/parallel/dynareParallelRmDir.m b/matlab/parallel/dynareParallelRmDir.m
index 64f3c4fdecba38b0c93514aa9fbe408f242f3ad9..caff7bbc4768606bc310ce8fba9781a122c146d7 100644
--- a/matlab/parallel/dynareParallelRmDir.m
+++ b/matlab/parallel/dynareParallelRmDir.m
@@ -26,7 +26,7 @@ function dynareParallelRmDir(PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 
diff --git a/matlab/parallel/dynareParallelSendFiles.m b/matlab/parallel/dynareParallelSendFiles.m
index 6a3c8904cee2a34223d225c211c441b57b5afb6b..53c5bc52800c01ac9c00faa95fc353c9a4879958 100644
--- a/matlab/parallel/dynareParallelSendFiles.m
+++ b/matlab/parallel/dynareParallelSendFiles.m
@@ -29,7 +29,7 @@ function dynareParallelSendFiles(NamFileInput,PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if ischar(NamFileInput)
diff --git a/matlab/parallel/dynareParallelSnapshot.m b/matlab/parallel/dynareParallelSnapshot.m
index 8566ebfe05b61bc7646456acaae5d98a34cdd6a4..3f80e538ae223246f2c8d0fd4e2df396245d0350 100644
--- a/matlab/parallel/dynareParallelSnapshot.m
+++ b/matlab/parallel/dynareParallelSnapshot.m
@@ -29,7 +29,7 @@ function [PRCDirSnapshot]=dynareParallelSnapshot(PRCDir,Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 PRCDirSnapshot={};
 
diff --git a/matlab/parallel/fMessageStatus.m b/matlab/parallel/fMessageStatus.m
index 2c9f8ab5f4a5643f16e7e7ae78c7c696bdf4cf8d..14b87508edd5208c83fad16234fd00a2a0b9cf9b 100644
--- a/matlab/parallel/fMessageStatus.m
+++ b/matlab/parallel/fMessageStatus.m
@@ -29,7 +29,7 @@ function fMessageStatus(prtfrc, njob, waitbarString, waitbarTitle, Parallel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global funcName
 
diff --git a/matlab/parallel/fParallel.m b/matlab/parallel/fParallel.m
index 4bce41008496693d7b03c4b2e5376a344ea38898..874be7fd5aea5bc39f5517427850460fc7cbdd9b 100644
--- a/matlab/parallel/fParallel.m
+++ b/matlab/parallel/fParallel.m
@@ -33,7 +33,7 @@ function fParallel(fblck,nblck,whoiam,ThisMatlab,fname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global funcName
 
diff --git a/matlab/parallel/masterParallel.m b/matlab/parallel/masterParallel.m
index 89581db984a0e549782db7d643503cf139b9cdf1..5aaab9a18dce04b66ad46e1ad4ccee22684b0f71 100644
--- a/matlab/parallel/masterParallel.m
+++ b/matlab/parallel/masterParallel.m
@@ -77,7 +77,7 @@ function [fOutVar,nBlockPerCPU, totCPU] = masterParallel(Parallel,fBlock,nBlock,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % If islocal==0, create a new directory for remote computation.
diff --git a/matlab/parallel/slaveParallel.m b/matlab/parallel/slaveParallel.m
index 5e3fe460cea6960cba4c62f478bc18c41162e000..5ea3331706dd2489d2f325ea73387e38aee31251 100644
--- a/matlab/parallel/slaveParallel.m
+++ b/matlab/parallel/slaveParallel.m
@@ -30,7 +30,7 @@ function slaveParallel(whoiam,ThisMatlab)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global funcName
 
diff --git a/matlab/parallel/storeGlobalVars.m b/matlab/parallel/storeGlobalVars.m
index 79b86aa35198cb1d143f962f88345b2afe83b8c7..62192872c83a6851aae39e4684ae91219bf2225b 100644
--- a/matlab/parallel/storeGlobalVars.m
+++ b/matlab/parallel/storeGlobalVars.m
@@ -27,7 +27,7 @@ function storeGlobalVars(fname,append)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 GlobalNames = who('global');
diff --git a/matlab/parallel/struct2local.m b/matlab/parallel/struct2local.m
index d45bc12b8c47bd55935f71b287546981f4942763..1266883edc861099bc11b47d250d0dd7b8c4d700 100644
--- a/matlab/parallel/struct2local.m
+++ b/matlab/parallel/struct2local.m
@@ -25,7 +25,7 @@ function struct2local(S)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 vnam = fieldnames(S);
diff --git a/matlab/partial_information/PCL_Part_info_irf.m b/matlab/partial_information/PCL_Part_info_irf.m
index e4a5bc465dcd9f92c51de2f487e48392b9f2a0c7..6dbcbd98b74a8b3f15cd229438cf23ec4a672c99 100644
--- a/matlab/partial_information/PCL_Part_info_irf.m
+++ b/matlab/partial_information/PCL_Part_info_irf.m
@@ -20,7 +20,7 @@ function  y=PCL_Part_info_irf( H, varobs, ivar, M_, dr, irfpers,ii)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % Recall that the state space is given by the
diff --git a/matlab/partial_information/PCL_Part_info_moments.m b/matlab/partial_information/PCL_Part_info_moments.m
index d5a3c63152ce768fa9a6cdcb29a23a7d3b5e472a..f2c2efb9006ac07cde0ee07fa611bc2b594b6177 100644
--- a/matlab/partial_information/PCL_Part_info_moments.m
+++ b/matlab/partial_information/PCL_Part_info_moments.m
@@ -20,7 +20,7 @@ function  AutoCOR_YRk=PCL_Part_info_moments( H, varobs, dr,ivar)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Recall that the state space is given by the
 % predetermined variables s(t-1), x(t-1)
diff --git a/matlab/partial_information/PCL_resol.m b/matlab/partial_information/PCL_resol.m
index 52e418e2ed5d10b02747af8ff3fdbf81fa38e9cb..39dd0f9e0af1aac737fa947e8c2af5a1a7c50722 100644
--- a/matlab/partial_information/PCL_resol.m
+++ b/matlab/partial_information/PCL_resol.m
@@ -40,7 +40,7 @@ function [dr,info]=PCL_resol(ys,check_flag)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 global it_
diff --git a/matlab/partial_information/PI_gensys.m b/matlab/partial_information/PI_gensys.m
index 92d4831667528ab19592335f867d35907cad3556..7a69ed50b42967a617608d523f8418e7c351750a 100644
--- a/matlab/partial_information/PI_gensys.m
+++ b/matlab/partial_information/PI_gensys.m
@@ -31,7 +31,7 @@ function [G1pi,C,impact,nmat,TT1,TT2,gev,eu, DD, E2, E5, GAMMA, FL_RANK ]=PI_gen
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 lastwarn('','');
diff --git a/matlab/partial_information/PI_gensys_singularC.m b/matlab/partial_information/PI_gensys_singularC.m
index b0c085fafcf3a6e98106f871b2a657805ce389c7..028a8c92a37cfb3641a862e7457886301ddb866f 100644
--- a/matlab/partial_information/PI_gensys_singularC.m
+++ b/matlab/partial_information/PI_gensys_singularC.m
@@ -22,7 +22,7 @@ function [C1,C2,C3,C4, C5, F1, F2, F3, F4, F5, M1, M2, UAVinv, FL_RANK, V01, V02
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 level=level+1
 if level>100
diff --git a/matlab/partial_information/add_auxiliary_variables_to_steadystate.m b/matlab/partial_information/add_auxiliary_variables_to_steadystate.m
index 35bd84bb33e794c93508f4d5d92074dd0596a52d..3286a7167d0a9471d545cbb8d0440864f62cb74b 100644
--- a/matlab/partial_information/add_auxiliary_variables_to_steadystate.m
+++ b/matlab/partial_information/add_auxiliary_variables_to_steadystate.m
@@ -17,7 +17,7 @@ function ys1 = add_auxiliary_variables_to_steadystate(ys,aux_vars,fname, ...
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 n = length(aux_vars);
 ys1 = [ys;zeros(n,1)];
 
diff --git a/matlab/partial_information/disc_riccati_fast.m b/matlab/partial_information/disc_riccati_fast.m
index c97da7a12603e43a53b3915f4ac52ebc94bee830..243a9838ccff7e7522de1a8aaf70deb78c198fcd 100644
--- a/matlab/partial_information/disc_riccati_fast.m
+++ b/matlab/partial_information/disc_riccati_fast.m
@@ -26,7 +26,7 @@ function Z=disc_riccati_fast(F,D,R,H,ch)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin == 4 || isempty( ch ) == 1
     flag_ch = 0;
diff --git a/matlab/partial_information/dr1_PI.m b/matlab/partial_information/dr1_PI.m
index 39d57b818df2a8686370b05a17041420570bd8d6..a8cbc93d986ba8ad6d1a365a776c383eb7ddbc90 100644
--- a/matlab/partial_information/dr1_PI.m
+++ b/matlab/partial_information/dr1_PI.m
@@ -55,7 +55,7 @@ function [dr,info,M_,options_,oo_] = dr1_PI(dr,task,M_,options_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global lq_instruments;
 info = 0;
diff --git a/matlab/partial_information/qzdiv.m b/matlab/partial_information/qzdiv.m
index ba5206efabe623624f8155494f1d82600e88d6ce..7f40686a742ff662033f202dbb5798efa9aea512 100644
--- a/matlab/partial_information/qzdiv.m
+++ b/matlab/partial_information/qzdiv.m
@@ -25,7 +25,7 @@ function [A,B,Q,Z] = qzdiv(stake,A,B,Q,Z)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [n, jnk] = size(A);
 root = abs([diag(A) diag(B)]);
diff --git a/matlab/partial_information/qzswitch.m b/matlab/partial_information/qzswitch.m
index eeb73c6811c5a7543ce60b1341b0eb7c55ac96e4..28898b4c753ea5289e57a0ba914fd90c5713b85d 100644
--- a/matlab/partial_information/qzswitch.m
+++ b/matlab/partial_information/qzswitch.m
@@ -29,7 +29,7 @@ function [A,B,Q,Z] = qzswitch(i,A,B,Q,Z)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 realsmall=sqrt(eps)*10;
 %realsmall=1e-3;
diff --git a/matlab/particles b/matlab/particles
index 41320041c3a5ba45e434b4118de75b0b271bf0d0..99aa1fc04b08c7917ba1198af4c186f4dcc278e5 160000
--- a/matlab/particles
+++ b/matlab/particles
@@ -1 +1 @@
-Subproject commit 41320041c3a5ba45e434b4118de75b0b271bf0d0
+Subproject commit 99aa1fc04b08c7917ba1198af4c186f4dcc278e5
diff --git a/matlab/perfect-foresight-models/det_cond_forecast.m b/matlab/perfect-foresight-models/det_cond_forecast.m
index 8c50b1e96753c879c99e0f4116572efefce23686..126dc13ceb3e7c06263771c5ae416a87bbb88cda 100644
--- a/matlab/perfect-foresight-models/det_cond_forecast.m
+++ b/matlab/perfect-foresight-models/det_cond_forecast.m
@@ -27,7 +27,7 @@ function data_set = det_cond_forecast(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_
 pp = 2;
diff --git a/matlab/perfect-foresight-models/linear_approximation_accuracy.m b/matlab/perfect-foresight-models/linear_approximation_accuracy.m
index 691ca19b3daf6774576e5979887a6e79ce8f74bf..770302a12653816e47687a07600ae12e7e1c40e4 100644
--- a/matlab/perfect-foresight-models/linear_approximation_accuracy.m
+++ b/matlab/perfect-foresight-models/linear_approximation_accuracy.m
@@ -25,7 +25,7 @@ function err = linear_approximation_accuracy(options_, M_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 lead_lag_incidence = M_.lead_lag_incidence;
 
diff --git a/matlab/perfect-foresight-models/linear_perfect_foresight_problem.m b/matlab/perfect-foresight-models/linear_perfect_foresight_problem.m
index f2a84744a2f4ae5a06a335da2e1cfe77c87d22b2..35f1bd6a8a9174d925a6393bc7a466a37fb86d79 100644
--- a/matlab/perfect-foresight-models/linear_perfect_foresight_problem.m
+++ b/matlab/perfect-foresight-models/linear_perfect_foresight_problem.m
@@ -31,7 +31,7 @@ function [residuals,JJacobian] = linear_perfect_foresight_problem(y, dynamicjaco
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 YY = [Y0; y; YT];
diff --git a/matlab/perfect-foresight-models/make_ex_.m b/matlab/perfect-foresight-models/make_ex_.m
index 3c8922f8062c8df3b36fc5481d4b901fa73c6cee..6f3e7dfa9a05ba7baab628f16634298e87754244 100644
--- a/matlab/perfect-foresight-models/make_ex_.m
+++ b/matlab/perfect-foresight-models/make_ex_.m
@@ -25,7 +25,7 @@ function oo_ = make_ex_(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global ex0_
 
diff --git a/matlab/perfect-foresight-models/make_y_.m b/matlab/perfect-foresight-models/make_y_.m
index 585b69fe89488353db8b43b43a9afb748e2f4a4b..ec53f466dad1a6e9ac9cf89f9c0817d29a883f00 100644
--- a/matlab/perfect-foresight-models/make_y_.m
+++ b/matlab/perfect-foresight-models/make_y_.m
@@ -25,7 +25,7 @@ function oo_=make_y_(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global ys0_
 
diff --git a/matlab/perfect-foresight-models/perfect_foresight_mcp_problem.m b/matlab/perfect-foresight-models/perfect_foresight_mcp_problem.m
index eea045e1ff68ca3effbb1123fd17cad3ec0372c1..e35e1a789995c444a95b0383c55a71967de38a35 100644
--- a/matlab/perfect-foresight-models/perfect_foresight_mcp_problem.m
+++ b/matlab/perfect-foresight-models/perfect_foresight_mcp_problem.m
@@ -59,7 +59,7 @@ function [residuals,JJacobian] = perfect_foresight_mcp_problem(y, dynamic_functi
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 YY = [Y0; y; YT];
diff --git a/matlab/perfect-foresight-models/perfect_foresight_setup.m b/matlab/perfect-foresight-models/perfect_foresight_setup.m
index 9a8877e872cc79260e1ec114b3c20f81ed9840b8..b3002fd412002181f2026777546258909f69fb48 100644
--- a/matlab/perfect-foresight-models/perfect_foresight_setup.m
+++ b/matlab/perfect-foresight-models/perfect_foresight_setup.m
@@ -27,7 +27,7 @@ function perfect_foresight_setup()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/perfect-foresight-models/perfect_foresight_simulation.m b/matlab/perfect-foresight-models/perfect_foresight_simulation.m
index 568e9de243f6677e30c94fdb6d10d793a3b7f87f..44a145e49cc56b8921c2bef28b2db85ff4c3799b 100644
--- a/matlab/perfect-foresight-models/perfect_foresight_simulation.m
+++ b/matlab/perfect-foresight-models/perfect_foresight_simulation.m
@@ -33,7 +33,7 @@ function info = perfect_foresight_simulation(compute_linear_solution,steady_stat
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ it_ oo_
 
diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver.m b/matlab/perfect-foresight-models/perfect_foresight_solver.m
index 37bf898f98e918fb4657914c6598b38715030b53..0ffe5187687372e4aa771b866e23389bd7e0d684 100644
--- a/matlab/perfect-foresight-models/perfect_foresight_solver.m
+++ b/matlab/perfect-foresight-models/perfect_foresight_solver.m
@@ -27,7 +27,7 @@ function perfect_foresight_solver()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m
index a1896890e1325a3a565560dc96ff82b3b89ac1b5..7cc039d6b399c0bfa3d7c62ade91cd85a82b75e2 100644
--- a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m
+++ b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m
@@ -26,7 +26,7 @@ function [oo_, maxerror] = perfect_foresight_solver_core(M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if options_.lmmcp.status
     options_.stack_solve_algo=7;
diff --git a/matlab/perfect-foresight-models/private/check_input_arguments.m b/matlab/perfect-foresight-models/private/check_input_arguments.m
index 42b1b697e7a604ef3363f87bd71284a657ac4406..a57d8e0c423a5e587dd56b58de44a64ca3abcf62 100644
--- a/matlab/perfect-foresight-models/private/check_input_arguments.m
+++ b/matlab/perfect-foresight-models/private/check_input_arguments.m
@@ -18,7 +18,7 @@ function check_input_arguments(DynareOptions, DynareModel, DynareResults)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if DynareOptions.stack_solve_algo < 0 || DynareOptions.stack_solve_algo > 7
     error('perfect_foresight_solver:ArgCheck','PERFECT_FORESIGHT_SOLVER: stack_solve_algo must be between 0 and 7')
diff --git a/matlab/perfect-foresight-models/private/initialize_stacked_problem.m b/matlab/perfect-foresight-models/private/initialize_stacked_problem.m
index 1a7092854369c6a9a147aa2eb7f0335bb4a08a9d..6068d6e1aca035d1c6d301a34716879d73e8e9b7 100644
--- a/matlab/perfect-foresight-models/private/initialize_stacked_problem.m
+++ b/matlab/perfect-foresight-models/private/initialize_stacked_problem.m
@@ -45,7 +45,7 @@ function [options, y0, yT, z, i_cols, i_cols_J1, i_cols_T, i_cols_j, i_cols_1, i
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 periods = options.periods;
 if (options.solve_algo == 10)
diff --git a/matlab/perfect-foresight-models/sim1.m b/matlab/perfect-foresight-models/sim1.m
index 9ad3027ac92c8f18952f183820086c0968ec06ab..d6382a0fbb16771a2a7ad8f9a9860378c1b2775d 100644
--- a/matlab/perfect-foresight-models/sim1.m
+++ b/matlab/perfect-foresight-models/sim1.m
@@ -28,7 +28,7 @@ function [endogenousvariables, info] = sim1(endogenousvariables, exogenousvariab
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 verbose = options.verbosity && ~options.noprint;
 
diff --git a/matlab/perfect-foresight-models/sim1_lbj.m b/matlab/perfect-foresight-models/sim1_lbj.m
index f46adf370a1ad559c7a662b7bebfc99ead2591e8..b72fc613f57c3576c3282d10b250e4f8d9312eb8 100644
--- a/matlab/perfect-foresight-models/sim1_lbj.m
+++ b/matlab/perfect-foresight-models/sim1_lbj.m
@@ -30,7 +30,7 @@ function [endogenousvariables, info] = sim1_lbj(endogenousvariables, exogenousva
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 lead_lag_incidence = M.lead_lag_incidence;
 
diff --git a/matlab/perfect-foresight-models/sim1_linear.m b/matlab/perfect-foresight-models/sim1_linear.m
index 2fa146c5d4a3483749011b83226af9f9ecb9046f..a355480185804823cc7db6c43bd5e67db970ff85 100644
--- a/matlab/perfect-foresight-models/sim1_linear.m
+++ b/matlab/perfect-foresight-models/sim1_linear.m
@@ -53,7 +53,7 @@ function [endogenousvariables, info] = sim1_linear(endogenousvariables, exogenou
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 verbose = options.verbosity;
 
diff --git a/matlab/perfect-foresight-models/sim1_purely_backward.m b/matlab/perfect-foresight-models/sim1_purely_backward.m
index 06e5f005c5ae7747fd7cbb808756c61c44f06b53..0641b55a12333c72f7f86db3c3dade08065f3b68 100644
--- a/matlab/perfect-foresight-models/sim1_purely_backward.m
+++ b/matlab/perfect-foresight-models/sim1_purely_backward.m
@@ -17,7 +17,7 @@ function [endogenousvariables, info] = sim1_purely_backward(endogenousvariables,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ny0 = nnz(M.lead_lag_incidence(2,:));    % Number of variables at current period
 iyb = M.lead_lag_incidence(1,:)>0;       % Logical vector (for lagged variables)
diff --git a/matlab/perfect-foresight-models/sim1_purely_forward.m b/matlab/perfect-foresight-models/sim1_purely_forward.m
index 459efc02e731fab8d0c4e11b6c6fccdad228b73c..130989fe184e37ff3ca559a35b4b55c9fd1a21ec 100644
--- a/matlab/perfect-foresight-models/sim1_purely_forward.m
+++ b/matlab/perfect-foresight-models/sim1_purely_forward.m
@@ -16,7 +16,7 @@ function [endogenousvariables, info] = sim1_purely_forward(endogenousvariables,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ny0 = nnz(M.lead_lag_incidence(1,:));    % Number of variables at current period
 iyf = find(M.lead_lag_incidence(2,:)>0); % Indices of variables at next period
diff --git a/matlab/perfect-foresight-models/sim1_purely_static.m b/matlab/perfect-foresight-models/sim1_purely_static.m
index ec03a848a6cef9986b62fbc1e03dfd22d0a86b52..b1bf5591f112876a7e4f3f381e88c10fc9efc040 100644
--- a/matlab/perfect-foresight-models/sim1_purely_static.m
+++ b/matlab/perfect-foresight-models/sim1_purely_static.m
@@ -17,7 +17,7 @@ function [endogenousvariables, info] = sim1_purely_static(endogenousvariables, e
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nnz(M.lead_lag_incidence(1,:)) ~= M.endo_nbr
     error('All endogenous variables must appear at the current period!')
diff --git a/matlab/perfect-foresight-models/solve_block_decomposed_problem.m b/matlab/perfect-foresight-models/solve_block_decomposed_problem.m
index be248f27f2a5ff2a34c38e965936807996f9671d..d694698857e042dd742dc6cf7a699d59bff44d00 100644
--- a/matlab/perfect-foresight-models/solve_block_decomposed_problem.m
+++ b/matlab/perfect-foresight-models/solve_block_decomposed_problem.m
@@ -16,7 +16,7 @@ function oo_ = solve_block_decomposed_problem(options_, M_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 cutoff = 1e-15;
 
diff --git a/matlab/perfect-foresight-models/solve_stacked_linear_problem.m b/matlab/perfect-foresight-models/solve_stacked_linear_problem.m
index 6e161a6f2534e0af048c1ef781d398ec82af35c0..ca54b95310488f41cd0833057f92572212aa9651 100644
--- a/matlab/perfect-foresight-models/solve_stacked_linear_problem.m
+++ b/matlab/perfect-foresight-models/solve_stacked_linear_problem.m
@@ -15,7 +15,7 @@ function [endogenousvariables, info] = solve_stacked_linear_problem(endogenousva
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [options, y0, yT, z, i_cols, i_cols_J1, i_cols_T, i_cols_j, i_cols_1, i_cols_0, i_cols_J0, dynamicmodel] = ...
     initialize_stacked_problem(endogenousvariables, options, M, steadystate_y);
diff --git a/matlab/perfect-foresight-models/solve_stacked_problem.m b/matlab/perfect-foresight-models/solve_stacked_problem.m
index e52a833092abb71dbc77a8b3c73569c26684d505..53054c4f5f94e9040302ab7aab3a098671d86c76 100644
--- a/matlab/perfect-foresight-models/solve_stacked_problem.m
+++ b/matlab/perfect-foresight-models/solve_stacked_problem.m
@@ -28,7 +28,7 @@ function [endogenousvariables, info] = solve_stacked_problem(endogenousvariables
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [options, y0, yT, z, i_cols, i_cols_J1, i_cols_T, i_cols_j, i_cols_1, i_cols_0, i_cols_J0, dynamicmodel] = ...
     initialize_stacked_problem(endogenousvariables, options, M, steadystate);
diff --git a/matlab/plot_contributions.m b/matlab/plot_contributions.m
index a1e6c902d06dd66a2144325bf7ba107a45101f8c..0cb4530a1ef8ef3febbffb5e965b9099ff9c81fb 100644
--- a/matlab/plot_contributions.m
+++ b/matlab/plot_contributions.m
@@ -37,7 +37,7 @@ function plot_contributions(equationname, ds1, ds0)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/plot_icforecast.m b/matlab/plot_icforecast.m
index 1c7dcdc775435e0e9f986f80d279c7f69581329f..3a40a49410cb4b99e71b9894129ce105e3baf5d3 100644
--- a/matlab/plot_icforecast.m
+++ b/matlab/plot_icforecast.m
@@ -28,7 +28,7 @@ function plot_icforecast(Variables,periods,options_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isfield(oo_, 'conditional_forecast')
     error('Can''t find conditional forecasts');
diff --git a/matlab/plot_identification.m b/matlab/plot_identification.m
index 82c5cea21a10a413b7812a777f3360ffab04f13e..5fa7227178a905022a47a25896335980f16dd2a7 100644
--- a/matlab/plot_identification.m
+++ b/matlab/plot_identification.m
@@ -34,7 +34,7 @@ function plot_identification(params, idemoments, idehess, idemodel, idelre, adva
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/plot_priors.m b/matlab/plot_priors.m
index 881585a4d2f25eb3152a9db2a7cca088a4b33122..341308a975d6fca7c25a25ba3776fac8994495ba 100644
--- a/matlab/plot_priors.m
+++ b/matlab/plot_priors.m
@@ -30,7 +30,7 @@ function plot_priors(bayestopt_,M_,estim_params_,options_,optional_title)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 TeX = options_.TeX;
 if nargin<5
diff --git a/matlab/plot_shock_decomposition.m b/matlab/plot_shock_decomposition.m
index 68c142bd3e61f19822d6966ebd8ed7998f7ea53c..ac8a8cbb1deb537175ad4417737f03f008e598a3 100644
--- a/matlab/plot_shock_decomposition.m
+++ b/matlab/plot_shock_decomposition.m
@@ -26,7 +26,7 @@ function [out, steady_state] = plot_shock_decomposition(M_,oo_,options_,varlist)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options_.nodisplay = options_.plot_shock_decomp.nodisplay;
 options_.graph_format = options_.plot_shock_decomp.graph_format;
diff --git a/matlab/pltorg.m b/matlab/pltorg.m
index e7f6807725817baac573cde9154b86d0b2260ad7..8e174ce6a59a0ce0b3c86bbf4b913ce2c2e43b79 100644
--- a/matlab/pltorg.m
+++ b/matlab/pltorg.m
@@ -15,7 +15,7 @@ function [nbplt,nr,nc,lr,lc,nstar] = pltorg(number)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nrstar = 3;
 ncstar = 3;
diff --git a/matlab/pm3.m b/matlab/pm3.m
index 94d38221beb914ade80821dbf21e13b71ea0526d..b357c9d0addd650e649481cbc6b995d50fc18061 100644
--- a/matlab/pm3.m
+++ b/matlab/pm3.m
@@ -39,7 +39,7 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ M_ oo_
 
diff --git a/matlab/pm3_core.m b/matlab/pm3_core.m
index a820f6ad452698fef15bd86a92ad3fd163b92c8a..1cb17d4abe1bd26c89679da33fdbf9447b9db0f0 100644
--- a/matlab/pm3_core.m
+++ b/matlab/pm3_core.m
@@ -28,7 +28,7 @@ function myoutput=pm3_core(myinputs,fpar,nvar,whoiam, ThisMatlab)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     whoiam=0;
diff --git a/matlab/posterior_analysis.m b/matlab/posterior_analysis.m
index 6f537e43b6c378415d82982326b29d5a50441e7a..742526a88f82a102a934d8d2dad494453aa3d89d 100644
--- a/matlab/posterior_analysis.m
+++ b/matlab/posterior_analysis.m
@@ -15,7 +15,7 @@ function oo_ = posterior_analysis(type,arg1,arg2,arg3,options_,M_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = check_posterior_analysis_data(type,M_);
 SampleSize = options_.sub_draws;
diff --git a/matlab/posterior_moments.m b/matlab/posterior_moments.m
index 915827328f5ffb8d386f93c0de33df723a3e8c15..5d96ea8cac4c2c066849daa51e85d53e212ee4a8 100644
--- a/matlab/posterior_moments.m
+++ b/matlab/posterior_moments.m
@@ -36,7 +36,7 @@ function [post_mean, post_median, post_var, hpd_interval, post_deciles, density]
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     number_of_grid_points = 2^9;      % 2^9 = 512 !... Must be a power of two.
diff --git a/matlab/posterior_sampler.m b/matlab/posterior_sampler.m
index cef949a5737e1f0142a96d5d31ea95a9fec73db4..52defb5646b0a7802971fb8c44fbb1ab188888d0 100644
--- a/matlab/posterior_sampler.m
+++ b/matlab/posterior_sampler.m
@@ -52,7 +52,7 @@ function posterior_sampler(TargetFun,ProposalFun,xparam1,sampler_options,mh_boun
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 vv = sampler_options.invhess;
 % Initialization of the sampler
diff --git a/matlab/posterior_sampler_core.m b/matlab/posterior_sampler_core.m
index 7504fd13284e558c5f56b349537c11bf11aef706..f79c1b3085e35ac9b10c136bcb3f50fdee861b18 100644
--- a/matlab/posterior_sampler_core.m
+++ b/matlab/posterior_sampler_core.m
@@ -51,7 +51,7 @@ function myoutput = posterior_sampler_core(myinputs,fblck,nblck,whoiam, ThisMatl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     whoiam=0;
diff --git a/matlab/posterior_sampler_initialization.m b/matlab/posterior_sampler_initialization.m
index 89e32fddc60699973eccfd158fbfb3e47f6e48ee..e2c5438f8303db1196672f6fdf19d74482c629bc 100644
--- a/matlab/posterior_sampler_initialization.m
+++ b/matlab/posterior_sampler_initialization.m
@@ -53,7 +53,7 @@ function [ ix2, ilogpo2, ModelName, MetropolisFolder, FirstBlock, FirstLine, npa
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %Initialize outputs
 ix2 = [];
diff --git a/matlab/posterior_sampler_iteration.m b/matlab/posterior_sampler_iteration.m
index e524748228cbe8610000f0bf27a97044a270f360..23db1cdb034e1fc80539e8f189b0d13b76b9abf3 100644
--- a/matlab/posterior_sampler_iteration.m
+++ b/matlab/posterior_sampler_iteration.m
@@ -41,7 +41,7 @@ function  [par, logpost, accepted, neval] = posterior_sampler_iteration(TargetFu
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 posterior_sampling_method = sampler_options.posterior_sampling_method;
diff --git a/matlab/print_bytecode_dynamic_model.m b/matlab/print_bytecode_dynamic_model.m
index 09613f6e3582573e88eb9ade7297c5e8edf56f68..bdcb4232179bb1b0ee1fde9607c1822580f93582 100644
--- a/matlab/print_bytecode_dynamic_model.m
+++ b/matlab/print_bytecode_dynamic_model.m
@@ -26,7 +26,7 @@ function print_bytecode_dynamic_model()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 if options_.bytecode
     bytecode('print','dynamic');
diff --git a/matlab/print_bytecode_static_model.m b/matlab/print_bytecode_static_model.m
index 5eb1427bd1f47de5e58288f0050774aa611be727..110d5a4fb5438bc7abb2aa931833133db5a7b3ce 100644
--- a/matlab/print_bytecode_static_model.m
+++ b/matlab/print_bytecode_static_model.m
@@ -26,7 +26,7 @@ function print_bytecode_static_model()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 if options_.bytecode
     bytecode('print','static');
diff --git a/matlab/print_equations.m b/matlab/print_equations.m
index 256c110fefbcae6b37bb1ca85cdfd96b2ff75768..0bf9b60f8117d0101ca77dc1d80dcbca80c2cef3 100644
--- a/matlab/print_equations.m
+++ b/matlab/print_equations.m
@@ -24,7 +24,7 @@ function print_equations(variable_name, withexpansion)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/print_expectations.m b/matlab/print_expectations.m
index f0a4b42980216cd98ff4a3eee5fe48fbee292254..a4697dddd23e88cda8fbe4f3f3114b71a6943c03 100644
--- a/matlab/print_expectations.m
+++ b/matlab/print_expectations.m
@@ -37,7 +37,7 @@ function print_expectations(eqname, expectationmodelname, expectationmodelkind,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/print_info.m b/matlab/print_info.m
index 7fa109391acd245e45acf5234e3b331047e9cfb4..4129d4a4f01b31da62e11e877d4e7b12bbad5a74 100644
--- a/matlab/print_info.m
+++ b/matlab/print_info.m
@@ -26,7 +26,7 @@ function print_info(info, noprint, DynareOptions)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 if ~noprint
     message = get_error_message(info, DynareOptions);
     error(message);
diff --git a/matlab/print_moments_implied_prior.m b/matlab/print_moments_implied_prior.m
index 21a6d6a814e3113c06aec3dff9b433a096c36167..5aae04d33fcb1afad42550c3310d4adbae6ffa58 100644
--- a/matlab/print_moments_implied_prior.m
+++ b/matlab/print_moments_implied_prior.m
@@ -29,7 +29,7 @@ function print_moments_implied_prior(ModelInfo, mm, vm, mv, vv)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % First order moments.
 
diff --git a/matlab/print_table_prior.m b/matlab/print_table_prior.m
index e4c7894a863f95de4ea3bd4be3ddbb40a60152e4..680517e1336c18d167796966d786062391c0c6c2 100644
--- a/matlab/print_table_prior.m
+++ b/matlab/print_table_prior.m
@@ -17,7 +17,7 @@ function print_table_prior(lb, ub, DynareOptions, ModelInfo, BayesInfo, Estimati
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 PriorNames = 'Beta';
 PriorNames = strvcat(PriorNames,'Gamma');
diff --git a/matlab/printline.m b/matlab/printline.m
index 29d4ec1c306266cdef8df9fb684d156627102fc2..63929edaf9f09ff593a834939e8098cf3945fb35 100644
--- a/matlab/printline.m
+++ b/matlab/printline.m
@@ -25,7 +25,7 @@ function varargout = printline(n, s, fid)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<3
     f = 1;
diff --git a/matlab/prior_analysis.m b/matlab/prior_analysis.m
index 3a621a9a8237dd88486f392926c8e0e7128de91f..02d769bdbfb6570dc6d644d90ce1828243b37284 100644
--- a/matlab/prior_analysis.m
+++ b/matlab/prior_analysis.m
@@ -14,7 +14,7 @@ function oo_ = prior_analysis(type,arg1,arg2,arg3,options_,M_,oo_,estim_params_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = check_prior_analysis_data(type,M_);
 SampleSize = options_.prior_mc;
diff --git a/matlab/prior_bounds.m b/matlab/prior_bounds.m
index c3548a61209cce86810c16a545673c62a1299705..cac8d0f2c3f2e223bfc00e78f57e5cc19d4ce955 100644
--- a/matlab/prior_bounds.m
+++ b/matlab/prior_bounds.m
@@ -62,7 +62,7 @@ function bounds = prior_bounds(bayestopt, prior_trunc)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 pshape = bayestopt.pshape;
 p3 = bayestopt.p3;
diff --git a/matlab/prior_draw.m b/matlab/prior_draw.m
index 58763b5d9ccec7f8915c3e8cb3ceabe5d0062158..740fa950ad3608350e55c511b203b7b1f47b4b42 100644
--- a/matlab/prior_draw.m
+++ b/matlab/prior_draw.m
@@ -41,7 +41,7 @@ function pdraw = prior_draw(BayesInfo, prior_trunc, uniform) % --*-- Unitary tes
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent p6 p7 p3 p4 lb ub
 persistent uniform_index gaussian_index gamma_index beta_index inverse_gamma_1_index inverse_gamma_2_index weibull_index
diff --git a/matlab/prior_posterior_statistics.m b/matlab/prior_posterior_statistics.m
index c52dd7701028207be9f9abef1dab327d876ec197..15355631e56ac73ee8365fc1714ff3733ef204c3 100644
--- a/matlab/prior_posterior_statistics.m
+++ b/matlab/prior_posterior_statistics.m
@@ -34,7 +34,7 @@ function prior_posterior_statistics(type,dataset,dataset_info)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ estim_params_ oo_ M_ bayestopt_
 
diff --git a/matlab/prior_posterior_statistics_core.m b/matlab/prior_posterior_statistics_core.m
index 8d35ba124b8512550bf06c5eaaaf3f67d3cdbbfa..c4777edee44271fd41ac43fc1eac587416e3d179 100644
--- a/matlab/prior_posterior_statistics_core.m
+++ b/matlab/prior_posterior_statistics_core.m
@@ -45,7 +45,7 @@ function myoutput=prior_posterior_statistics_core(myinputs,fpar,B,whoiam, ThisMa
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_ bayestopt_ estim_params_
 
diff --git a/matlab/prior_sampler.m b/matlab/prior_sampler.m
index c09ff8c66de7a427480afed64aa86efcd24ef48a..a30d5bfe00924c20daf6cc756a3324a05415819c 100644
--- a/matlab/prior_sampler.m
+++ b/matlab/prior_sampler.m
@@ -28,7 +28,7 @@ function results = prior_sampler(drsave,M_,bayestopt_,options_,oo_,estim_params_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Initialization.
 prior_draw(bayestopt_, options_.prior_trunc);
diff --git a/matlab/priordens.m b/matlab/priordens.m
index 1d402397a053adf72ff38870cd6352cf22df50a4..6ea8577f85e0a5fa596fa1b9abcb04e8657c1aff 100644
--- a/matlab/priordens.m
+++ b/matlab/priordens.m
@@ -30,7 +30,7 @@ function [logged_prior_density, dlprior, d2lprior, info] = priordens(x, pshape,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 persistent id1 id2 id3 id4 id5 id6 id8
 persistent tt1 tt2 tt3 tt4 tt5 tt6 tt8
diff --git a/matlab/prodmom.m b/matlab/prodmom.m
index a6e28d667523dd18a6934127cefe86bdc2584de1..1728f9d694ab3195147ad557411ffba363cd452a 100644
--- a/matlab/prodmom.m
+++ b/matlab/prodmom.m
@@ -36,7 +36,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 function y = prodmom(V,ii,nu);
 if nargin<3
diff --git a/matlab/prodmom_deriv.m b/matlab/prodmom_deriv.m
index c154df8a72f05ff94d5fbe2671baeb0319ed42b7..511cc0103bd27203a3b62dbb9648c79b63a23396 100644
--- a/matlab/prodmom_deriv.m
+++ b/matlab/prodmom_deriv.m
@@ -49,7 +49,7 @@ function [y,dy] = prodmom_deriv(V,ii,nu,dV,dC)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 if nargin<3
     nu = ones(size(ii));
diff --git a/matlab/pruned_state_space_system.m b/matlab/pruned_state_space_system.m
index c4022c7dbbb39cd28b7bd7ee38aee628d5b6114d..ef44676b9dc9404884efe415274f1fcecdcaa876 100644
--- a/matlab/pruned_state_space_system.m
+++ b/matlab/pruned_state_space_system.m
@@ -110,7 +110,7 @@ function pruned_state_space = pruned_state_space_system(M, options, dr, indy, nl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 %% MAIN IDEA:
diff --git a/matlab/qr2.m b/matlab/qr2.m
index bdd1c0dea0d78997d8bed3f23d41dae42f8b2fcd..2731907692d1963a1ebe035d7ba6c2bb4ae1f018 100644
--- a/matlab/qr2.m
+++ b/matlab/qr2.m
@@ -32,7 +32,7 @@ function [Q,R] = qr2(varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [Q,R] = qr(varargin{:});
 indx = find(diag(R)<0);
diff --git a/matlab/quadratic_matrix_equation_solver.m b/matlab/quadratic_matrix_equation_solver.m
index 40342085e9f779a0c20e5748f3df387a50e2e1f3..a8a46f40294f7a8edac4a5798ee1d7ef071b49e0 100644
--- a/matlab/quadratic_matrix_equation_solver.m
+++ b/matlab/quadratic_matrix_equation_solver.m
@@ -62,7 +62,7 @@ function [X,info] = quadratic_matrix_equation_solver(A,B,C,tol,maxit,line_search
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 provide_initial_condition_to_fastgensylv = 0;
 
diff --git a/matlab/quadruplication.m b/matlab/quadruplication.m
index 2d47fe740fd928681929d312b3182fc040e615db..1cb09f869e02eba822e1c31313f7c9e75ad0f0a6 100644
--- a/matlab/quadruplication.m
+++ b/matlab/quadruplication.m
@@ -37,7 +37,7 @@ function [QP,QPinv] = quadruplication(p)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 np = p*(p+1)*(p+2)*(p+3)/24;
 QP = spalloc(p^4,np,p^4);
diff --git a/matlab/ramsey_policy.m b/matlab/ramsey_policy.m
index 69b2a03b608764ccc773b803d2bcd7e600017fb8..6250cdbcda1c2da63a9209c1c6b938a70abc973c 100644
--- a/matlab/ramsey_policy.m
+++ b/matlab/ramsey_policy.m
@@ -15,7 +15,7 @@ function info = ramsey_policy(var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ oo_ M_
 
diff --git a/matlab/read_key_value_string.m b/matlab/read_key_value_string.m
index c66bc7d500857904fecf96243977c4975cf4345e..ee2926ac5fb164344963b33f38338ae9ad014092 100644
--- a/matlab/read_key_value_string.m
+++ b/matlab/read_key_value_string.m
@@ -19,7 +19,7 @@ function c = read_key_value_string(s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Remove unnecessary spaces after commas.
 s = regexprep(s, ',\s*', ',');
diff --git a/matlab/read_variables.m b/matlab/read_variables.m
index 354adf85506aebadf0a6a96bb9e95386fadd9497..86c0aece268ff230dfa91ba285ab4427f84538ac 100644
--- a/matlab/read_variables.m
+++ b/matlab/read_variables.m
@@ -32,7 +32,7 @@ function dyn_data_01=read_variables(file_name_01,var_names_01,dyn_data_01,xls_sh
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 old_pwd = pwd;
diff --git a/matlab/realtime_shock_decomposition.m b/matlab/realtime_shock_decomposition.m
index ab29c861fe7c153ace50584103c9a5fce14e8b67..23cc5919b4b2e4b9369fd42fb247b045159b6fc0 100644
--- a/matlab/realtime_shock_decomposition.m
+++ b/matlab/realtime_shock_decomposition.m
@@ -37,7 +37,7 @@ function oo_ = realtime_shock_decomposition(M_,oo_,options_,varlist,bayestopt_,e
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if isfield(oo_,'shock_decomposition_info') && isfield(oo_.shock_decomposition_info,'i_var')
diff --git a/matlab/recursive_moments.m b/matlab/recursive_moments.m
index 4d38d9b1bf366a29274c625decebc536380d802c..6c5d6e08c77449bae33b538eaacfa5f8b014a9a4 100644
--- a/matlab/recursive_moments.m
+++ b/matlab/recursive_moments.m
@@ -34,7 +34,7 @@ function [mu,sigma,offset] = recursive_moments(m0,s0,data,offset)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [T,n] = size(data);
 
diff --git a/matlab/reduced_rank_cholesky.m b/matlab/reduced_rank_cholesky.m
index fe9edbacef6c5f44f1e1c84a917cd891a0168edb..85202c1885a5ef75bf72300ea51465928b07faab 100644
--- a/matlab/reduced_rank_cholesky.m
+++ b/matlab/reduced_rank_cholesky.m
@@ -51,7 +51,7 @@ function T = reduced_rank_cholesky(X)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [T,X_is_not_positive_definite] = chol(X);
 
diff --git a/matlab/resid.m b/matlab/resid.m
index d28fd7655c4fe6ad194e7690213acd50258fe781..b5d4e0d63b12560b5243f95a9b10676bb973e53b 100644
--- a/matlab/resid.m
+++ b/matlab/resid.m
@@ -27,7 +27,7 @@ function z = resid(junk)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/resol.m b/matlab/resol.m
index 030141df222cd620e011ae546b68ad770b0b756b..c98c0d9ccb9d1b5cec76a6b158b80d378d009dc9 100644
--- a/matlab/resol.m
+++ b/matlab/resol.m
@@ -48,7 +48,7 @@ function [dr, info, M, options, oo] = resol(check_flag, M, options, oo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isfield(oo,'dr')
     if isfield(oo.dr,'kstate')
diff --git a/matlab/restricted_steadystate.m b/matlab/restricted_steadystate.m
index 7ef1002935200bf7b3acef1cf608303d99dd334b..cbd4ce5f093474f4144a179fef863b3059511529 100644
--- a/matlab/restricted_steadystate.m
+++ b/matlab/restricted_steadystate.m
@@ -15,7 +15,7 @@ function [sR,sG] = restricted_steadystate(y,x,indx)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ M_ oo_
 
diff --git a/matlab/reversed_extended_path.m b/matlab/reversed_extended_path.m
index 748423d992c879d4c05e120da2c9a44f2bc962c6..156b03b30ad8ea5cbe30867531fd17bc3d85db34 100644
--- a/matlab/reversed_extended_path.m
+++ b/matlab/reversed_extended_path.m
@@ -29,7 +29,7 @@ function innovation_paths = reversed_extended_path(controlled_variable_names, co
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/rotated_slice_sampler.m b/matlab/rotated_slice_sampler.m
index 6dbfded0f461b2492fc4e64e5ecb32bee4f3014e..095a8f450f38ef93dff7983305292ee6ceb8334f 100644
--- a/matlab/rotated_slice_sampler.m
+++ b/matlab/rotated_slice_sampler.m
@@ -39,7 +39,7 @@ function [theta, fxsim, neval] = rotated_slice_sampler(objective_function,theta,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 theta=theta(:);
 npar = length(theta);
diff --git a/matlab/row_header_width.m b/matlab/row_header_width.m
index ec72236b8367c41d8e5a440b650b13d3b4494940..ca181cb11ecc10fb5516b57b93eb45a422855e21 100644
--- a/matlab/row_header_width.m
+++ b/matlab/row_header_width.m
@@ -28,7 +28,7 @@ function w=row_header_width(M_,estim_params_,bayestopt_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 np = estim_params_.np;
 nvx = estim_params_.nvx;
diff --git a/matlab/rplot.m b/matlab/rplot.m
index 5adf956aeb3cdd84f1a6bb4a0eaf801b805e78ed..e42d76bcd4d82ccc993cca01d2aef9d2d1c0be77 100644
--- a/matlab/rplot.m
+++ b/matlab/rplot.m
@@ -29,7 +29,7 @@ function rplot(s1)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/sample_autocovariance.m b/matlab/sample_autocovariance.m
index 3ae17e1a0e0588018c38b686c0709ec9cc73aa30..da4ca57369c8704ed7ff8193353b2292d0821028 100644
--- a/matlab/sample_autocovariance.m
+++ b/matlab/sample_autocovariance.m
@@ -28,7 +28,7 @@ function [autocov,autocor] = sample_autocovariance(data,q)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 autocov = zeros(q+1,1);
 
diff --git a/matlab/sample_hp_filter.m b/matlab/sample_hp_filter.m
index 381086b3deaca2487ec41676e02703a49b6ba98e..b154301c0628f66ff0d0ffa40c590ac54362816e 100644
--- a/matlab/sample_hp_filter.m
+++ b/matlab/sample_hp_filter.m
@@ -27,7 +27,7 @@ function [hptrend,hpcycle] = sample_hp_filter(y,s)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [T,n] = size(y);
 
diff --git a/matlab/save_params_and_steady_state.m b/matlab/save_params_and_steady_state.m
index 70e08b60f0cd30830b1b562c384618d40890f2d3..9667409426a1542831b8348a221a2d492de93c33 100644
--- a/matlab/save_params_and_steady_state.m
+++ b/matlab/save_params_and_steady_state.m
@@ -37,7 +37,7 @@ function save_params_and_steady_state(filename)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/save_results.m b/matlab/save_results.m
index 263ac6b0182072b4091ad89ce823c25467945758..ce0d57fbff4f60206a94a4cf61e0dccb99928314 100644
--- a/matlab/save_results.m
+++ b/matlab/save_results.m
@@ -29,7 +29,7 @@ function save_results(x,s_name,names)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global oo_
 
diff --git a/matlab/selec_posterior_draws.m b/matlab/selec_posterior_draws.m
index dd336f2fb4fabc6d03ba0c0b24e77a37f8a7e41c..80df5ac9e119441f3301aab89641bfd01eb2d300 100644
--- a/matlab/selec_posterior_draws.m
+++ b/matlab/selec_posterior_draws.m
@@ -35,7 +35,7 @@ function SampleAddress = selec_posterior_draws(SampleSize,drsize)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ estim_params_ oo_
 
diff --git a/matlab/select_from_table.m b/matlab/select_from_table.m
index 1584cb9500c21d534bb7905186fb05efda8a7933..b7b0bc44588098d5a5306d46376777b2d2853a86 100644
--- a/matlab/select_from_table.m
+++ b/matlab/select_from_table.m
@@ -14,7 +14,7 @@ function [indices] = select_from_table(table,key,value)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 candidates = table(strmatch(key,table(:,2),'exact'),:);
 if nargin == 2
     indices = cell2mat( candidates(:,1) );
diff --git a/matlab/select_qz_criterium_value.m b/matlab/select_qz_criterium_value.m
index 574b022b271374eb26eaf4b70223b229faa5fb48..41ad6a6afddb240f1e94b8322ac516c3301d8822 100644
--- a/matlab/select_qz_criterium_value.m
+++ b/matlab/select_qz_criterium_value.m
@@ -26,7 +26,7 @@ function options_=select_qz_criterium_value(options_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 % If options_.lik_init == 1
diff --git a/matlab/selif.m b/matlab/selif.m
index 6a79f486c5e77707a035b9f01713413e4264f163..6138924a5eb6d0c1ac00b2cf1d9b860601899ac4 100644
--- a/matlab/selif.m
+++ b/matlab/selif.m
@@ -15,7 +15,7 @@ function x = selif(a,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if size(b,2) ~= 1
     error ('The second argument in SELIF must be à column vector') ;
diff --git a/matlab/send_endogenous_variables_to_workspace.m b/matlab/send_endogenous_variables_to_workspace.m
index 9d7872f5e34096002159e03edd73b3a12d4296af..d547e6446a277fae9a7c0c48d4b5e1c621f5c32b 100644
--- a/matlab/send_endogenous_variables_to_workspace.m
+++ b/matlab/send_endogenous_variables_to_workspace.m
@@ -16,7 +16,7 @@ function send_endogenous_variables_to_workspace()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global M_ oo_
 
 for idx = 1:M_.endo_nbr
diff --git a/matlab/set_all_parameters.m b/matlab/set_all_parameters.m
index 2f4fcc28e65e53bff1423721194ee7e99e2fc425..a525d642a5aaa8805bc0d6832be7a66c72c4da67 100644
--- a/matlab/set_all_parameters.m
+++ b/matlab/set_all_parameters.m
@@ -48,7 +48,7 @@ function M = set_all_parameters(xparam1,estim_params,M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvx = estim_params.nvx;
 ncx = estim_params.ncx;
diff --git a/matlab/set_default_initial_condition_decomposition_options.m b/matlab/set_default_initial_condition_decomposition_options.m
index f354db07da953ab365c2ddaa85be9c3306fe773d..6aaa79fe73ffc52a97bdc1393ebec4e7a807defe 100644
--- a/matlab/set_default_initial_condition_decomposition_options.m
+++ b/matlab/set_default_initial_condition_decomposition_options.m
@@ -26,7 +26,7 @@ function options = set_default_initial_condition_decomposition_options(options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options.initial_condition_decomp.colormap = '';
 options.initial_condition_decomp.nodisplay = false;
diff --git a/matlab/set_default_option.m b/matlab/set_default_option.m
index a388ca94e31d67bc5d64633cfe7723c1067e65e0..e91891365c06bf972748e1f40bf99aa177836b27 100644
--- a/matlab/set_default_option.m
+++ b/matlab/set_default_option.m
@@ -29,7 +29,7 @@ function options=set_default_option(options,field,default)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isfield(options,field)
     options.(field) = default;
diff --git a/matlab/set_default_plot_shock_decomposition_options.m b/matlab/set_default_plot_shock_decomposition_options.m
index 385884e970d80d8e7ee311084bb4b223eb4b52a1..ce734126c6ecc6df80f6fb1baebeae3c73d3dd2c 100644
--- a/matlab/set_default_plot_shock_decomposition_options.m
+++ b/matlab/set_default_plot_shock_decomposition_options.m
@@ -26,7 +26,7 @@ function options = set_default_plot_shock_decomposition_options(options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 options.plot_shock_decomp.use_shock_groups = '';
 options.plot_shock_decomp.colormap = '';
diff --git a/matlab/set_dynare_random_generator_state.m b/matlab/set_dynare_random_generator_state.m
index 03df1cb51fbd4e5dad80a0921d413541ccc3b5bd..28b020e9f72647fa5bf69844cdf5b27fcbb2d3b3 100644
--- a/matlab/set_dynare_random_generator_state.m
+++ b/matlab/set_dynare_random_generator_state.m
@@ -21,7 +21,7 @@ function [state_u,state_n] = set_dynare_random_generator_state(state_u,state_n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isoctave
     s = RandStream.getGlobalStream();
diff --git a/matlab/set_dynare_seed.m b/matlab/set_dynare_seed.m
index dd6b117f2f3e63f38cb9496b68c8e69640c3a3de..4c6a995a07192493f56abef0f3b640d6b4448eee 100644
--- a/matlab/set_dynare_seed.m
+++ b/matlab/set_dynare_seed.m
@@ -17,7 +17,7 @@ function set_dynare_seed(a,b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 
 if ~nargin
diff --git a/matlab/set_dynare_threads.m b/matlab/set_dynare_threads.m
index 753a2b271993552ee4dbcac52c8cac9baf826517..793e898c0ed92a1768813389525c7e835fbf5152 100644
--- a/matlab/set_dynare_threads.m
+++ b/matlab/set_dynare_threads.m
@@ -24,7 +24,7 @@ function set_dynare_threads(mexname,n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 global options_
 
 if ~ischar(mexname)
diff --git a/matlab/set_exogenous_variables_for_simulation.m b/matlab/set_exogenous_variables_for_simulation.m
index 4b06580b254729fe6352b415116a086c2914a6bf..3683c21d4129fe0d9c66109fc5735a4c23b8eb27 100644
--- a/matlab/set_exogenous_variables_for_simulation.m
+++ b/matlab/set_exogenous_variables_for_simulation.m
@@ -26,7 +26,7 @@ function DynareModel = set_exogenous_variables_for_simulation(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isfield(DynareModel, 'exo_partitions')
     if isfield(DynareModel.exo_partitions, 'used')
diff --git a/matlab/set_historical_values.m b/matlab/set_historical_values.m
index 237d84dadea9fc41f46cfdf49337f17fb7bc33ea..b016b0a9bc59ac080356d4f2473e558f8dc74aae 100644
--- a/matlab/set_historical_values.m
+++ b/matlab/set_historical_values.m
@@ -24,7 +24,7 @@ function set_historical_values(ds, initialperiod)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/set_local_param_value.m b/matlab/set_local_param_value.m
index 090341dfebd305511051ec33a31c5e0a0edd0d36..cff1c477cc38a13fd43b5350c44b05c610fab7a6 100644
--- a/matlab/set_local_param_value.m
+++ b/matlab/set_local_param_value.m
@@ -15,7 +15,7 @@ function M = set_local_param_value(pname,value,M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 i = strmatch(pname, M.param_names, 'exact');
diff --git a/matlab/set_measurement_errors.m b/matlab/set_measurement_errors.m
index c51d7c4772db0fa1ce37e4610bb183d83ccea85c..dfe236ac599649dd0f4a7903482a0d90924454c9 100644
--- a/matlab/set_measurement_errors.m
+++ b/matlab/set_measurement_errors.m
@@ -30,7 +30,7 @@ function M_ = set_measurement_errors(xparam1,estim_params_,M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 H = M_.H;
 Correlation_matrix_ME = M_.Correlation_matrix_ME;
diff --git a/matlab/set_observed_exogenous_variables.m b/matlab/set_observed_exogenous_variables.m
index c9e350f78d585560c6cb0e543a5ae4a11a8fecc5..b4e1640e07900873c5a1b4971fa55da62b038419 100644
--- a/matlab/set_observed_exogenous_variables.m
+++ b/matlab/set_observed_exogenous_variables.m
@@ -26,7 +26,7 @@ function DynareModel = set_observed_exogenous_variables(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isfield(DynareModel, 'exo_partitions')
     if isfield(DynareModel.exo_partitions, 'status')
diff --git a/matlab/set_parameters.m b/matlab/set_parameters.m
index 99be93213ea46b4f008a6686905981c0569b87b2..102c94091bfea6b4fde0e77bd3d59fb01ceb79c2 100644
--- a/matlab/set_parameters.m
+++ b/matlab/set_parameters.m
@@ -29,7 +29,7 @@ function set_parameters(xparam1)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/set_parameters_locally.m b/matlab/set_parameters_locally.m
index 008abc3a0498192daed277ba0d586a5daf6612b3..3570099a86890fc60c39c9390409d1a0f7ca08a6 100644
--- a/matlab/set_parameters_locally.m
+++ b/matlab/set_parameters_locally.m
@@ -31,7 +31,7 @@ function M_=set_parameters_locally(M_,xparam1)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global estim_params_
 
diff --git a/matlab/set_prior.m b/matlab/set_prior.m
index 38a545661f57de8c1c6266b385b309987dfb35ca..f77b3c5c9c24a82cd1093a863c1cda2135d6d245 100644
--- a/matlab/set_prior.m
+++ b/matlab/set_prior.m
@@ -33,7 +33,7 @@ function [xparam1, estim_params_, bayestopt_, lb, ub, M_]=set_prior(estim_params
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nvx = size(estim_params_.var_exo,1);
 nvn = size(estim_params_.var_endo,1);
diff --git a/matlab/set_state_space.m b/matlab/set_state_space.m
index 16ebb5502d9ca52360e5f4d74ed1fd26454c498d..c7769c6325134c9588e5cf8ffcae73ab2c22b4e0 100644
--- a/matlab/set_state_space.m
+++ b/matlab/set_state_space.m
@@ -49,7 +49,7 @@ function dr=set_state_space(dr,DynareModel,DynareOptions)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 max_lead = DynareModel.maximum_endo_lead;
 max_lag = DynareModel.maximum_endo_lag;
diff --git a/matlab/setup_solvers.m b/matlab/setup_solvers.m
index 71b49167b465e7f8bfa812f0e047bcfdd1b38faf..13aac7b5326fdadd1e1bba2c50298b0f0cc4578d 100644
--- a/matlab/setup_solvers.m
+++ b/matlab/setup_solvers.m
@@ -24,7 +24,7 @@ function Model = setup_solvers(Model)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 cannot_use_solve_algo_12_14 = false;
 
diff --git a/matlab/shiftS.m b/matlab/shiftS.m
index 56f7c1642e7b586bb67b99db18ba9b9a9afdbe72..952d209230e1619f7935605a51bd4f643a3980a5 100644
--- a/matlab/shiftS.m
+++ b/matlab/shiftS.m
@@ -18,7 +18,7 @@ function S = shiftS(S,n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if length(S) >= n+1
     S = S(n+1:end);
diff --git a/matlab/shock_decomposition.m b/matlab/shock_decomposition.m
index 3ecd08531d6526a34cdada1b674f9cf5ea5e4955..51b03542c4c2e5c758455b25e1d6a1ffffed53e4 100644
--- a/matlab/shock_decomposition.m
+++ b/matlab/shock_decomposition.m
@@ -38,7 +38,7 @@ function [oo_,M_] = shock_decomposition(M_,oo_,options_,varlist,bayestopt_,estim
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % indices of endogenous variables
 
diff --git a/matlab/simul_static_model.m b/matlab/simul_static_model.m
index fb19123f3a6f1ebf5b84cdfafb08172d02100aca..97c3726b10f8632eaebd4bcf66ba508bff68dabb 100644
--- a/matlab/simul_static_model.m
+++ b/matlab/simul_static_model.m
@@ -30,7 +30,7 @@ function simulation = simul_static_model(samplesize, innovations)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/simulated_moment_uncertainty.m b/matlab/simulated_moment_uncertainty.m
index 152ac6b5cb13cb39be2baf5db8c881719c7e9a8d..73b607a2658fc32536e01ba25193ad403c5d315f 100644
--- a/matlab/simulated_moment_uncertainty.m
+++ b/matlab/simulated_moment_uncertainty.m
@@ -27,7 +27,7 @@ function [cmm, mm] = simulated_moment_uncertainty(indx, periods, replic,options_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 mm=zeros(length(indx),replic);
 
diff --git a/matlab/simult.m b/matlab/simult.m
index f96827f75b2f727448934e7c4d79f4fc1a57ae4d..c03fb78db4eb507c34b38b6fc6fc66c30825b2ab 100644
--- a/matlab/simult.m
+++ b/matlab/simult.m
@@ -60,7 +60,7 @@ function [y_out,DynareResults] =simult(y0, dr,DynareModel,DynareOptions,DynareRe
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 order = DynareOptions.order;
 replic = DynareOptions.simul_replic;
diff --git a/matlab/simult_.m b/matlab/simult_.m
index 1ab1729cfebcc9780e6c2dde88ec6f36a431a4a6..999af80fa45e379d02c7d668fb8e6cfb96962afa 100644
--- a/matlab/simult_.m
+++ b/matlab/simult_.m
@@ -32,7 +32,7 @@ function y_=simult_(M_,options_,y0,dr,ex_,iorder)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 iter = size(ex_,1);
 endo_nbr = M_.endo_nbr;
diff --git a/matlab/simultxdet.m b/matlab/simultxdet.m
index 7725829911fd3dbeb9e4cc1f875b3e5bc7a6eb16..d33acefa9447ceec1a7c4edc92fdacccd3c6d890 100644
--- a/matlab/simultxdet.m
+++ b/matlab/simultxdet.m
@@ -37,7 +37,7 @@ function [y_,int_width,int_width_ME]=simultxdet(y0,ex,ex_det, iorder,var_list,M_
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 dr = oo_.dr;
 ykmin = M_.maximum_lag;
diff --git a/matlab/size_of_the_reduced_form_model.m b/matlab/size_of_the_reduced_form_model.m
index 536ca2181e6eb0f8ef798cf566f1a9c535dea508..09a0309b0cdd3a5971a1241cf85f735f69b622a2 100644
--- a/matlab/size_of_the_reduced_form_model.m
+++ b/matlab/size_of_the_reduced_form_model.m
@@ -16,7 +16,7 @@ function mega = size_of_the_reduced_form_model(dr)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 names = fieldnames(dr);
 number_of_scalars = 0;
diff --git a/matlab/skipline.m b/matlab/skipline.m
index f148997b8be74c08fbc8e1fb908ba68e356cd158..575787dadb5cb3571be23c52d374dadefd9116e9 100644
--- a/matlab/skipline.m
+++ b/matlab/skipline.m
@@ -25,7 +25,7 @@ function skipline(n, fid)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin < 2
     fid = 1;
diff --git a/matlab/slice_sampler.m b/matlab/slice_sampler.m
index 827fdc5e4753601be5c4b8acc2671fd60cd6c5ae..d8806f55e62f74b35fc139dfc9a9e70ba3a0dccc 100644
--- a/matlab/slice_sampler.m
+++ b/matlab/slice_sampler.m
@@ -39,7 +39,7 @@ function [theta, fxsim, neval] = slice_sampler(objective_function,theta,thetapri
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if sampler_options.rotated %&& ~isempty(sampler_options.V1),
     [theta, fxsim, neval] = rotated_slice_sampler(objective_function,theta,thetaprior,sampler_options,varargin{:});
diff --git a/matlab/smoother2histval.m b/matlab/smoother2histval.m
index 0ce98a01d1d2ad0b30ebd154c6d262c38d1e6f3f..84865a1ac8ae53ab5947777aaf861400bae845c8 100644
--- a/matlab/smoother2histval.m
+++ b/matlab/smoother2histval.m
@@ -39,7 +39,7 @@ function smoother2histval(opts)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 
diff --git a/matlab/solve1.m b/matlab/solve1.m
index fa2f188057e9efc7009189b3f4c9fcc72ac04eaa..73dca70b2b16535bfeeec985a17c9f00ffb85d30 100644
--- a/matlab/solve1.m
+++ b/matlab/solve1.m
@@ -38,7 +38,7 @@ function [x,check] = solve1(func,x,j1,j2,jacobian_flag,gstep,tolf,tolx,maxit,deb
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 nn = length(j1);
 g = zeros(nn,1) ;
diff --git a/matlab/solve_one_boundary.m b/matlab/solve_one_boundary.m
index f4009b077f29dc95fa67dbd523a632b8a17d74ba..bc7e276aa67081e01fc6ec87a89d9794683d6029 100644
--- a/matlab/solve_one_boundary.m
+++ b/matlab/solve_one_boundary.m
@@ -68,7 +68,7 @@ function [y, T, oo_, info] = solve_one_boundary(fname, y, x, params, steady_stat
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 Blck_size=size(y_index_eq,2);
diff --git a/matlab/solve_perfect_foresight_model.m b/matlab/solve_perfect_foresight_model.m
index 93c5fb26fbcaae6e6d9614e9c82ea5151cf07e2f..9f3de3c382535f423681c739aaf2d9f1c2bfa312 100644
--- a/matlab/solve_perfect_foresight_model.m
+++ b/matlab/solve_perfect_foresight_model.m
@@ -15,7 +15,7 @@ function [flag,endo_simul,err] = solve_perfect_foresight_model(endo_simul,exo_si
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 flag = 0;
 err = 0;
diff --git a/matlab/solve_two_boundaries.m b/matlab/solve_two_boundaries.m
index 25524a0173fcc4a9a92d9893f8e864de965ca733..20e69c1b031f23db9f21ffeb9c6b634bf51313cd 100644
--- a/matlab/solve_two_boundaries.m
+++ b/matlab/solve_two_boundaries.m
@@ -62,7 +62,7 @@ function [y, T, oo]= solve_two_boundaries(fname, y, x, params, steady_state, T,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 verbose = options.verbosity;
 
diff --git a/matlab/squeeze_shock_decomposition.m b/matlab/squeeze_shock_decomposition.m
index 0dd9f965732c11215029a882b688b017cb67ebc2..885eb9fafcee7d6923c40570cd584f9ae5960687 100644
--- a/matlab/squeeze_shock_decomposition.m
+++ b/matlab/squeeze_shock_decomposition.m
@@ -27,7 +27,7 @@ function oo_ = squeeze_shock_decomposition(M_,oo_,options_,var_list_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~options_.shock_decomp.with_epilogue
     endo_names = M_.endo_names;
diff --git a/matlab/static_model_for_inversion.m b/matlab/static_model_for_inversion.m
index 9e3ba56bbd861c778138aed55a52883d98d76a89..53d69b41c894d7ebd8fade95bd27ae7e0b10d9b5 100644
--- a/matlab/static_model_for_inversion.m
+++ b/matlab/static_model_for_inversion.m
@@ -15,7 +15,7 @@ function [r, J] = static_model_for_inversion(z, dynamicmodel, ycur, x, params, M
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set up y
 y = zeros(ModelInversion.nyfree+ModelInversion.nyctrl, 1);
diff --git a/matlab/static_model_inversion.m b/matlab/static_model_inversion.m
index e47d05f29755caeead1621a5688a4d614f868656..9993d0503cbba2a1cba0846f9a6374c239c3223e 100644
--- a/matlab/static_model_inversion.m
+++ b/matlab/static_model_inversion.m
@@ -28,7 +28,7 @@ function [endogenousvariables, exogenousvariables] = static_model_inversion(cons
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Get indices for the calibrated and free innovations.
 freeinnovations_id = zeros(length(freeinnovations), 1);
diff --git a/matlab/steady.m b/matlab/steady.m
index b875d66988ebfe68684fe5bdc9119c40eff7f3cd..c844f5ed08a8396a5acd9d4fbf227da2448e59d7 100644
--- a/matlab/steady.m
+++ b/matlab/steady.m
@@ -26,7 +26,7 @@ function steady()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/steady_.m b/matlab/steady_.m
index 1e7096ef26d4e374d80a2c19c23a3966a5fdf30c..c66a5bbb3438440f5ccdab262f13d753d31b62ab 100644
--- a/matlab/steady_.m
+++ b/matlab/steady_.m
@@ -33,7 +33,7 @@ function [steady_state,params,info] = steady_(M_,options_,oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if options_.solve_algo < 0 || options_.solve_algo > 14
     error('STEADY: solve_algo must be between 0 and 14')
diff --git a/matlab/step_length_correction.m b/matlab/step_length_correction.m
index 89710637be0dd3e1e44168650c297edfe2e52482..fe4448bc889511aa4b4080d2e70bdda1b561691f 100644
--- a/matlab/step_length_correction.m
+++ b/matlab/step_length_correction.m
@@ -15,7 +15,7 @@ function c = step_length_correction(x,scale,i)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(scale)
     c = 10^round(log10(abs(x)));
diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m
index 69c0ae521aaae3738ce783730bb6f32e579ebbfc..7e144a27db484eb494974012a505f493c815e5bd 100644
--- a/matlab/stoch_simul.m
+++ b/matlab/stoch_simul.m
@@ -15,7 +15,7 @@ function [info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Test if the order of approximation is nonzero (the preprocessor tests if order is non negative).
 if isequal(options_.order,0)
diff --git a/matlab/stochastic_solvers.m b/matlab/stochastic_solvers.m
index 6759a3b87afee31a084e89bb81edfb1e54767892..3b8d770fc239123ce81a458e4f1bddb5600d7ed1 100644
--- a/matlab/stochastic_solvers.m
+++ b/matlab/stochastic_solvers.m
@@ -39,7 +39,7 @@ function [dr, info] = stochastic_solvers(dr, task, M_, options_, oo_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = 0;
 
diff --git a/matlab/store_smoother_results.m b/matlab/store_smoother_results.m
index b53283412888242bdead1eb75d649d068bd2c433..a187e93b34f5048022b51ba56cf10626a120836a 100644
--- a/matlab/store_smoother_results.m
+++ b/matlab/store_smoother_results.m
@@ -70,7 +70,7 @@ function [oo_, yf]=store_smoother_results(M_,oo_,options_,bayestopt_,dataset_,da
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 gend=dataset_.nobs;
 if nargin<16
diff --git a/matlab/subset.m b/matlab/subset.m
index f58eba16b4187f46f1bc6e98bfc9aa2d2282280d..9432f79c55ea746527207966768553a2d4947829 100644
--- a/matlab/subset.m
+++ b/matlab/subset.m
@@ -15,7 +15,7 @@ function jndx = subset()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global options_ estim_params_ M_
 
diff --git a/matlab/surgibbs.m b/matlab/surgibbs.m
index 6edc223312a04b65dedecd32d09baf3e590aebbf..c7abc07c6177cdd97b3243807574524843727f73 100644
--- a/matlab/surgibbs.m
+++ b/matlab/surgibbs.m
@@ -42,7 +42,7 @@ function ds = surgibbs(ds, param_names, beta0, A, ndraws, discarddraws, thin, eq
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/sylvester3.m b/matlab/sylvester3.m
index 29812c694e68c07f0f0501c8809c6181a5ccbf62..195777980c48ca94b8f58ed68fc549e6bd7f49c8 100644
--- a/matlab/sylvester3.m
+++ b/matlab/sylvester3.m
@@ -16,7 +16,7 @@ function x=sylvester3(a,b,c,d)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n = size(a,1);
 m = size(c,1);
diff --git a/matlab/sylvester3a.m b/matlab/sylvester3a.m
index cddcbc1ef3e63cbef320b52a044dd3acc1f94e4c..e9326e77c0253a7881f26018e052679831acaf66 100644
--- a/matlab/sylvester3a.m
+++ b/matlab/sylvester3a.m
@@ -16,7 +16,7 @@ function [x0, flag]=sylvester3a(x0,a,b,c,dd)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 a_1 = inv(a);
 b = a_1*b;
diff --git a/matlab/symmetric_matrix_index.m b/matlab/symmetric_matrix_index.m
index 60b2afe700ab920795077558b28a2a4f32dc4511..1583ba536ed6217614425d5f2e53222a3596ae16 100644
--- a/matlab/symmetric_matrix_index.m
+++ b/matlab/symmetric_matrix_index.m
@@ -26,6 +26,6 @@ function k = symmetric_matrix_index(i,j,n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 k = (i-1)*n+j-i*(i-1)/2;
\ No newline at end of file
diff --git a/matlab/test_for_deep_parameters_calibration.m b/matlab/test_for_deep_parameters_calibration.m
index 224db60efeee1624869d91ec2f373d17f576b9b3..8f3c2ef4a3c702d3f83b2baf9782d622bade2333 100644
--- a/matlab/test_for_deep_parameters_calibration.m
+++ b/matlab/test_for_deep_parameters_calibration.m
@@ -28,7 +28,7 @@ function info=test_for_deep_parameters_calibration(M_)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 plist = list_of_parameters_calibrated_as_NaN(M_);
 if ~isempty(plist)
     info=1;
diff --git a/matlab/th_autocovariances.m b/matlab/th_autocovariances.m
index 29b70ff503fea7a6c2d5de2975452cba6d7c9903..d64b843a72c6dfe39dff98f55c4b48b864e65bbe 100644
--- a/matlab/th_autocovariances.m
+++ b/matlab/th_autocovariances.m
@@ -57,7 +57,7 @@ function [Gamma_y,stationary_vars] = th_autocovariances(dr,ivar,M_,options_,node
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<5
     nodecomposition = 0;
diff --git a/matlab/trace_plot.m b/matlab/trace_plot.m
index ec5d282a44b3f5a940a666797cd30576ee2ba612..68e7337d9881e309027e7201f44e42836edb579a 100644
--- a/matlab/trace_plot.m
+++ b/matlab/trace_plot.m
@@ -33,7 +33,7 @@ function trace_plot(options_,M_,estim_params_,type,blck,name1,name2)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Cet the column index:
 if strcmpi(type,'PosteriorDensity')
diff --git a/matlab/trust_region.m b/matlab/trust_region.m
index a8a254625aa6ca7e3fe8b3913bd5b91014cb8d33..d5446803c66c73b63a0517168c002b7c19c0e5fa 100644
--- a/matlab/trust_region.m
+++ b/matlab/trust_region.m
@@ -40,7 +40,7 @@ function [x,check,info] = trust_region(fcn,x0,j1,j2,jacobian_flag,gstep,tolf,tol
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 %
 % Initial author: Jaroslav Hajek <highegg@gmail.com>, for GNU Octave
 
diff --git a/matlab/unfold_g3.m b/matlab/unfold_g3.m
index 619e181cb2c75f6f64a290d5f99522759da72155..03d649988ec301070b5cfbdd045ecde6ae0bc9b5 100644
--- a/matlab/unfold_g3.m
+++ b/matlab/unfold_g3.m
@@ -19,7 +19,7 @@ function g3_unfolded = unfold_g3(g3, ny)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [i, j, v] = find(g3);
 
diff --git a/matlab/unfold_g4.m b/matlab/unfold_g4.m
index ba379e8554c4d712450723d59331ca9d73c2f4d9..af259c6419eabfd72adaca6a0ae9ba2e8880cdbb 100644
--- a/matlab/unfold_g4.m
+++ b/matlab/unfold_g4.m
@@ -19,7 +19,7 @@ function g4_unfolded = unfold_g4(g4, ny)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [i, j, v] = find(g4);
 
diff --git a/matlab/uniform_specification.m b/matlab/uniform_specification.m
index 19b3b1468dbeaf821fa5e20e83634a5650079726..f5b3cb6b2bc3bda4235b70d0e55250e52f33905e 100644
--- a/matlab/uniform_specification.m
+++ b/matlab/uniform_specification.m
@@ -32,7 +32,7 @@ function [m,s,p6,p7,error_indicator] = uniform_specification(m,s,p3,p4)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 error_indicator=0;
 if ~(isnan(p3) || isnan(p4))
     p6 = p3;
diff --git a/matlab/update_all_parameters_in_workspace.m b/matlab/update_all_parameters_in_workspace.m
index 64e1515ee601e111a6b215d3c14833cd946505f8..b2e5fba892bb27cdb3949af62864030e053e1cab 100644
--- a/matlab/update_all_parameters_in_workspace.m
+++ b/matlab/update_all_parameters_in_workspace.m
@@ -17,7 +17,7 @@ function update_all_parameters_in_workspace(DynareModel)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 for i=1:length(DynareModel.params)
     assignin('base', DynareModel.param_names{i}, DynareModel.params(i));
diff --git a/matlab/update_last_mh_history_file.m b/matlab/update_last_mh_history_file.m
index a0e2d4a9691c74a9b7e50a2811cbc128ecc9ab02..972d5f43e6a24401d7ba5dc3f7087622b47390b6 100644
--- a/matlab/update_last_mh_history_file.m
+++ b/matlab/update_last_mh_history_file.m
@@ -22,7 +22,7 @@ function update_last_mh_history_file(MetropolisFolder, ModelName, record)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 BaseName = [MetropolisFolder filesep ModelName];
 
diff --git a/matlab/uperm.m b/matlab/uperm.m
index 3322af96b688bf8fa58d2f91bba01c9292127289..e2d3e2f21783838a77e3226c4f889b99496cb25a 100644
--- a/matlab/uperm.m
+++ b/matlab/uperm.m
@@ -17,7 +17,7 @@ function p = uperm(a)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 % Original author: Bruno Luong <brunoluong@yahoo.com>, April 20, 2014
 % https://groups.google.com/d/msg/comp.soft-sys.matlab/yQKVPTYrv6Q/gw1MzNd9sYkJ
diff --git a/matlab/user_has_matlab_license.m b/matlab/user_has_matlab_license.m
index de5475ae06cb46153d92f638bebf5e00bc4fd88d..c9b1dbcf270bd737ab23ba7448fc7a30789d931e 100644
--- a/matlab/user_has_matlab_license.m
+++ b/matlab/user_has_matlab_license.m
@@ -26,7 +26,7 @@ function [hasLicense] = user_has_matlab_license(toolbox)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [hasLicense, ~] = license('checkout',toolbox);
 
diff --git a/matlab/user_has_octave_forge_package.m b/matlab/user_has_octave_forge_package.m
index e67e511118a1ba082631a75f6f7957ca3e363f37..adfd409c48b4279a68ff673ad01a878994995f39 100644
--- a/matlab/user_has_octave_forge_package.m
+++ b/matlab/user_has_octave_forge_package.m
@@ -17,7 +17,7 @@ function [hasPackage] = user_has_octave_forge_package(package, min_version)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [desc,flag] = pkg("describe", package);
 
diff --git a/matlab/utilities/dataset/describe_missing_data.m b/matlab/utilities/dataset/describe_missing_data.m
index f13bb6c7aaeb6621bdbf945faff6c96e0e37a2e2..96f4f17c43d880b6b8b19f72fa1c203ee27608ea 100644
--- a/matlab/utilities/dataset/describe_missing_data.m
+++ b/matlab/utilities/dataset/describe_missing_data.m
@@ -42,7 +42,7 @@ function [i,n,s,j] = describe_missing_data(data)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/utilities/dataset/descriptive_statistics.m b/matlab/utilities/dataset/descriptive_statistics.m
index 79d3241414db6bb52caade9eff7f35ee97b6530d..c7c61aed2e5ec629c77782eb5047d4a403befc21 100644
--- a/matlab/utilities/dataset/descriptive_statistics.m
+++ b/matlab/utilities/dataset/descriptive_statistics.m
@@ -60,7 +60,7 @@ function dataset_ = descriptive_statistics(dataset_,statistic,varagin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/utilities/dataset/initialize_dataset.m b/matlab/utilities/dataset/initialize_dataset.m
index d7e3ed3842559ba5d85692c4d1557ccd30c9e28b..ca594dd20bba549943492a3c6a4f06fde2a31ed3 100644
--- a/matlab/utilities/dataset/initialize_dataset.m
+++ b/matlab/utilities/dataset/initialize_dataset.m
@@ -16,7 +16,7 @@ function dataset_ = initialize_dataset(datafile,varobs,first,nobs,logged_data_fl
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(datafile)
     error('Estimation::initialize_dataset: You have to declare a dataset file!')
diff --git a/matlab/utilities/dataset/lagged.m b/matlab/utilities/dataset/lagged.m
index 276f6b785ec49761fc319f04e60be63d0aa0b67f..96154b2a576d22df77a3d2cea0705a51469774d3 100644
--- a/matlab/utilities/dataset/lagged.m
+++ b/matlab/utilities/dataset/lagged.m
@@ -24,7 +24,7 @@ function xlag = lagged(x, n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin==1
     n=1;
diff --git a/matlab/utilities/dataset/makedataset.m b/matlab/utilities/dataset/makedataset.m
index d5140bd414863d2320042aa4b2079f034576cf7e..2d3e9d9064e12eef636a227fa316308e35ba7d72 100644
--- a/matlab/utilities/dataset/makedataset.m
+++ b/matlab/utilities/dataset/makedataset.m
@@ -39,7 +39,7 @@ function [DynareDataset, DatasetInfo, newdatainterface] = makedataset(DynareOpti
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if nargin<3
diff --git a/matlab/utilities/dataset/nanautocovariance.m b/matlab/utilities/dataset/nanautocovariance.m
index eb7a81ab2b54e7bf13672f51db0a37b565bb4441..b75c58cd6654d03b79f1b690011b623e0ea47597 100644
--- a/matlab/utilities/dataset/nanautocovariance.m
+++ b/matlab/utilities/dataset/nanautocovariance.m
@@ -51,7 +51,7 @@ function autocov = nanautocovariance(data,order)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 n = size(data,2);
 missing = isanynan(data);
diff --git a/matlab/utilities/dataset/nancovariance.m b/matlab/utilities/dataset/nancovariance.m
index 09f2a38af6d0ad16fe8f84576de60373f43b92c7..bc57042a3a65d9232fdb8aa414c64afb87af8bd6 100644
--- a/matlab/utilities/dataset/nancovariance.m
+++ b/matlab/utilities/dataset/nancovariance.m
@@ -45,7 +45,7 @@ function CovarianceMatrix = nancovariance(data)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Initialize the output.
 CovarianceMatrix = zeros(size(data,2));
diff --git a/matlab/utilities/dataset/nanmoments.m b/matlab/utilities/dataset/nanmoments.m
index 78e95e9b09f242cfcc91addcad094db965cfc420..a2a5a86e9656ce77eec801549f9e71b8f11126f8 100644
--- a/matlab/utilities/dataset/nanmoments.m
+++ b/matlab/utilities/dataset/nanmoments.m
@@ -16,7 +16,7 @@ function m = nanmoments(data, n)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isanynan(data)
     m = transpose(nanmean(bsxfun(@power,nandemean(data),n)));
diff --git a/matlab/utilities/dataset/nanvariance.m b/matlab/utilities/dataset/nanvariance.m
index 121fb2ddafdeeb7a26d5c804b2ae0c35329c45f9..9c78faf24c1b81c0613ff72c3d8d89f88cbb986c 100644
--- a/matlab/utilities/dataset/nanvariance.m
+++ b/matlab/utilities/dataset/nanvariance.m
@@ -45,7 +45,7 @@ function variances = nanvariance(data)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isanynan(data)
     variances = transpose(nanmean(bsxfun(@power,nandemean(data),2)));
diff --git a/matlab/utilities/dataset/quarterly2annual.m b/matlab/utilities/dataset/quarterly2annual.m
index 3b3599c5683f34574ba9e0b2dfa346788d17ffe3..e0a238c1ed0c4f44103fc839f9343d6381b04cda 100644
--- a/matlab/utilities/dataset/quarterly2annual.m
+++ b/matlab/utilities/dataset/quarterly2annual.m
@@ -42,7 +42,7 @@ function [ya, yass, gya, gyass] = quarterly2annual(y,yss,GYTREND0,type,islog,aux
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin ==0
     disp('[ya, yass, gya, gyass] = quarterly2annual(y,yss,GYTREND0,type,islog);')
diff --git a/matlab/utilities/doc/dynInfo.m b/matlab/utilities/doc/dynInfo.m
index 85c9649740fbfe2b2e554921a6c570c3297b4b0f..6259534866a16d47dfd6ffc2fde3d6e2aec7596d 100644
--- a/matlab/utilities/doc/dynInfo.m
+++ b/matlab/utilities/doc/dynInfo.m
@@ -46,7 +46,7 @@ function dynInfo(fun)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/utilities/doc/get_internal_doc_block.m b/matlab/utilities/doc/get_internal_doc_block.m
index 96dda6d6f1248d77d6403237b950127a6e03ef4e..59d5807f428b87268858e2a0ab0cd79e26f695d6 100644
--- a/matlab/utilities/doc/get_internal_doc_block.m
+++ b/matlab/utilities/doc/get_internal_doc_block.m
@@ -16,7 +16,7 @@ function block = get_internal_doc_block(fname,fpath)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/utilities/general/clean_current_folder.m b/matlab/utilities/general/clean_current_folder.m
index df7e7bf790855bb53fcf43cad532ec4b357a649f..68641cdb98c3892e464de04b86a124387092c168 100644
--- a/matlab/utilities/general/clean_current_folder.m
+++ b/matlab/utilities/general/clean_current_folder.m
@@ -15,7 +15,7 @@ function clean_current_folder()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 a = dir('*.mod');
 
diff --git a/matlab/utilities/general/compare_vectors.m b/matlab/utilities/general/compare_vectors.m
index 00ea0c11e24199008af1b1f04a64fac6e52a9844..97a051f303fd43b0ec6f2fcc634f8b595e26d373 100644
--- a/matlab/utilities/general/compare_vectors.m
+++ b/matlab/utilities/general/compare_vectors.m
@@ -28,7 +28,7 @@ function C = compare_vectors(f, A, B)  % --*-- Unitary tests --*--
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isvector(A) || ~isvector(B)
     error('compare_vectors:: Input arguments a and b must be vectors!')
diff --git a/matlab/utilities/general/delete_stale_file.m b/matlab/utilities/general/delete_stale_file.m
index d5e9951e45dd23b3844b05a97f5f1b23d572869f..fa7cb90af5d0b814ab0d636b9b1aca0e1bb70aaa 100644
--- a/matlab/utilities/general/delete_stale_file.m
+++ b/matlab/utilities/general/delete_stale_file.m
@@ -17,7 +17,7 @@ function delete_stale_file(fname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 Files_info = dir(fname);
 if length(Files_info)>0
diff --git a/matlab/utilities/general/demean.m b/matlab/utilities/general/demean.m
index 74c6a5510aee371405de9b90f265778a62373023..b68a46e2f0eddbba9753333c1b4a08f8f4b28847 100644
--- a/matlab/utilities/general/demean.m
+++ b/matlab/utilities/general/demean.m
@@ -23,7 +23,7 @@ function c = demean(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ndim(x)>2
     error('This function is not implemented for arrays with dimension greater than two!')
diff --git a/matlab/utilities/general/disp_verbose.m b/matlab/utilities/general/disp_verbose.m
index 6ea4e702e55be49ffe82c0515362b8ac72a8a49b..988be58a9fd20fa7c29b63aaf1405293511b663a 100644
--- a/matlab/utilities/general/disp_verbose.m
+++ b/matlab/utilities/general/disp_verbose.m
@@ -17,7 +17,7 @@ function disp_verbose(input_string,Verbose)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 if Verbose
diff --git a/matlab/utilities/general/get_all_variables_but_lagged_leaded_exogenous.m b/matlab/utilities/general/get_all_variables_but_lagged_leaded_exogenous.m
index 1e092e0ac0c58f50895ea21add5eed72a180f16a..6bb7a0fff4af27a19a4cf1aa7abc63f01f87d623 100644
--- a/matlab/utilities/general/get_all_variables_but_lagged_leaded_exogenous.m
+++ b/matlab/utilities/general/get_all_variables_but_lagged_leaded_exogenous.m
@@ -24,7 +24,7 @@ function k = get_all_variables_but_lagged_leaded_exogenous(M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(M.aux_vars)
     k = 1:M.endo_nbr;
diff --git a/matlab/utilities/general/get_labels_transformed_vars.m b/matlab/utilities/general/get_labels_transformed_vars.m
index 6c57c68ca63a0c435fc13c2f8952ddde1185eb06..8372d9bd3db2034e5a6e497615c1fa23fcca81bf 100644
--- a/matlab/utilities/general/get_labels_transformed_vars.m
+++ b/matlab/utilities/general/get_labels_transformed_vars.m
@@ -26,7 +26,7 @@ function labels=get_labels_transformed_vars(endo_names,var_indices,options_,TeX)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if nargin<4
     TeX=0;
diff --git a/matlab/utilities/general/indices_lagged_leaded_exogenous_variables.m b/matlab/utilities/general/indices_lagged_leaded_exogenous_variables.m
index a199b4b0fbba51c919136a3c01c2498e13473d4b..e95c1a2e4d092ded90f6cd2b1545c05d4ae36f81 100644
--- a/matlab/utilities/general/indices_lagged_leaded_exogenous_variables.m
+++ b/matlab/utilities/general/indices_lagged_leaded_exogenous_variables.m
@@ -27,7 +27,7 @@ function [il,l1,ik,k1] = indices_lagged_leaded_exogenous_variables(k,M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 il = [];
 l1 = [];
diff --git a/matlab/utilities/general/isaletter.m b/matlab/utilities/general/isaletter.m
index f562a320ac95b410a00457344310f396cda1d8ea..61d75c4f7eac2c8dfde87ec919f12ec8aedba6bf 100644
--- a/matlab/utilities/general/isaletter.m
+++ b/matlab/utilities/general/isaletter.m
@@ -16,6 +16,6 @@ function info = isaletter(str)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = any(isletter(str));
\ No newline at end of file
diff --git a/matlab/utilities/general/isanynan.m b/matlab/utilities/general/isanynan.m
index 7a16419d007fb84332e1eaf0aa368fe5e1af7234..5701df1d36f1099c3440d61562585e2c20887f6f 100644
--- a/matlab/utilities/general/isanynan.m
+++ b/matlab/utilities/general/isanynan.m
@@ -16,6 +16,6 @@ function yes = isanynan(array)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 yes = any(isnan(array(:)));
\ No newline at end of file
diff --git a/matlab/utilities/general/isconst.m b/matlab/utilities/general/isconst.m
index e17a39b9296c0c61cd986f12231a879f7878cd15..58ba8a4bb2ffe61228fc11d1ccc2cb9bfd6e8dcb 100644
--- a/matlab/utilities/general/isconst.m
+++ b/matlab/utilities/general/isconst.m
@@ -23,7 +23,7 @@ function A = isconst(B)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>
 
 A = false(1, size(B, 2));
 
diff --git a/matlab/utilities/general/iseven.m b/matlab/utilities/general/iseven.m
index fe15bc3b1355388c6e96a719c9977a48ba9545a0..4b4f281396043084e42d06d2700a989a71e89bd2 100644
--- a/matlab/utilities/general/iseven.m
+++ b/matlab/utilities/general/iseven.m
@@ -15,6 +15,6 @@ function a= iseven(b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 a = ~mod(b,2);
\ No newline at end of file
diff --git a/matlab/utilities/general/isinestimationobjective.m b/matlab/utilities/general/isinestimationobjective.m
index 690a186691fb96e8329539cc948efb48bb6d8c3a..48786f9540d599b8e53e6dbce6e738c0f61c4b92 100644
--- a/matlab/utilities/general/isinestimationobjective.m
+++ b/matlab/utilities/general/isinestimationobjective.m
@@ -17,7 +17,7 @@ function b = isinestimationobjective()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 b = false;
 
diff --git a/matlab/utilities/general/isint.m b/matlab/utilities/general/isint.m
index 01f403d5df436fcfa699d34d33be5bda11e164a3..a0c8a63955b6c020824d4caa80dce474c9efbb07 100644
--- a/matlab/utilities/general/isint.m
+++ b/matlab/utilities/general/isint.m
@@ -30,7 +30,7 @@ function [l,c,d] = isint(a)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isnumeric(a)
     l = false;
diff --git a/matlab/utilities/general/isodd.m b/matlab/utilities/general/isodd.m
index 93f0e0aa0913e12654c36477da8383138e91577a..1d3c7de04e4c453409a75a4d4877b82519a74192 100644
--- a/matlab/utilities/general/isodd.m
+++ b/matlab/utilities/general/isodd.m
@@ -15,6 +15,6 @@ function a = isodd(b)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 a = mod(b,2);
\ No newline at end of file
diff --git a/matlab/utilities/general/ispd.m b/matlab/utilities/general/ispd.m
index 7ddd73e8af6aecad9011870916b03ebcb8d6f2f6..be77d24bd6ebbfa22ae6fcaedee4632a6c7db43b 100644
--- a/matlab/utilities/general/ispd.m
+++ b/matlab/utilities/general/ispd.m
@@ -39,7 +39,7 @@ function [test, penalty] = ispd(A)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~isquare(A)
     error(['ispd:: Input argument ' inputname(1) ' has to be a square matrix!'])
diff --git a/matlab/utilities/general/isquare.m b/matlab/utilities/general/isquare.m
index edd2ad1ab4b639884e8f2a34af480125b5cf1bae..227183c1c0174b59a1fed2d5daff46bb890ccc52 100644
--- a/matlab/utilities/general/isquare.m
+++ b/matlab/utilities/general/isquare.m
@@ -23,7 +23,7 @@ function info = isquare(A)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 info = false;
 if ismatrix(A) && isequal(size(A, 1), size(A, 2))
diff --git a/matlab/utilities/general/log_variable.m b/matlab/utilities/general/log_variable.m
index 98956a77cf7793b947d890d1e818547c1a5301c9..179cf963ce3e25546270cb40b9f6219ab3a4a37d 100644
--- a/matlab/utilities/general/log_variable.m
+++ b/matlab/utilities/general/log_variable.m
@@ -27,7 +27,7 @@ function y = log_variable(ivar,x,M)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 orig_endo_nbr = M.orig_endo_nbr;
 aux_vars = M.aux_vars;
diff --git a/matlab/utilities/general/nandemean.m b/matlab/utilities/general/nandemean.m
index ad6c715e9b1d189d22f95662c18725cd28af4c28..f80d5545c22e9236e2bf9f8b68f46a9b39bb78a0 100644
--- a/matlab/utilities/general/nandemean.m
+++ b/matlab/utilities/general/nandemean.m
@@ -45,7 +45,7 @@ function c = nandemean(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/utilities/general/ndim.m b/matlab/utilities/general/ndim.m
index 95dda019d0c2062cc1dce21092cf3e00f0d57af2..368b65f434fa8e2bcac6a1e9e1d9372ce533b191 100644
--- a/matlab/utilities/general/ndim.m
+++ b/matlab/utilities/general/ndim.m
@@ -42,7 +42,7 @@ function n = ndim(x)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Original author: stephane DOT adjemian AT univ DASH lemans DOT fr
 
diff --git a/matlab/utilities/general/remove_fractional_xticks.m b/matlab/utilities/general/remove_fractional_xticks.m
index 5cf6f33fda5252f7c0cdd01aeda3743eda4d12da..3f7633fdc50f9c2247f1dfd80f14a209fb90c89f 100644
--- a/matlab/utilities/general/remove_fractional_xticks.m
+++ b/matlab/utilities/general/remove_fractional_xticks.m
@@ -17,7 +17,7 @@ function remove_fractional_xticks
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 xticks=get(gca,'xtick');
 fractional_periods=find(rem(xticks,1)~=0);
diff --git a/matlab/utilities/tests b/matlab/utilities/tests
index bc4df1c1ec89a338424b5eb617fa568a76f14b45..730078525361fb2896b04384ef4bc49a02a04c1c 160000
--- a/matlab/utilities/tests
+++ b/matlab/utilities/tests
@@ -1 +1 @@
-Subproject commit bc4df1c1ec89a338424b5eb617fa568a76f14b45
+Subproject commit 730078525361fb2896b04384ef4bc49a02a04c1c
diff --git a/matlab/var_sample_moments.m b/matlab/var_sample_moments.m
index f9d4f8b022f429aaf57866916a03811f96c5ac10..d5769f35554a03ebfcf84c5002190341f76a249d 100644
--- a/matlab/var_sample_moments.m
+++ b/matlab/var_sample_moments.m
@@ -67,7 +67,7 @@ function var_sample_moments(nlag, var_trend_order, dataset_)%datafile,varobs,xls
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 LastObservation = dataset_.dates(end);
 FirstObservation = dataset_.dates(1)+nlag;
diff --git a/matlab/variance_decomposition_ME_mc_analysis.m b/matlab/variance_decomposition_ME_mc_analysis.m
index 95bf8389939815449933a21dbbde52bd3ed90a28..f5b692faab1fb3775fd507a78fdc316258a8a3a0 100644
--- a/matlab/variance_decomposition_ME_mc_analysis.m
+++ b/matlab/variance_decomposition_ME_mc_analysis.m
@@ -40,7 +40,7 @@ function oo_ = variance_decomposition_ME_mc_analysis(NumberOfSimulations,type,dn
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if strcmpi(type,'posterior')
     TYPE = 'Posterior';
diff --git a/matlab/variance_decomposition_mc_analysis.m b/matlab/variance_decomposition_mc_analysis.m
index ffdc755cbe2bd119dcadc768333cd0fe41284573..440f353b8bc5145711e7b687f65d2ef1c8b27176 100644
--- a/matlab/variance_decomposition_mc_analysis.m
+++ b/matlab/variance_decomposition_mc_analysis.m
@@ -40,7 +40,7 @@ function oo_ = variance_decomposition_mc_analysis(NumberOfSimulations,type,dname
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if strcmpi(type,'posterior')
     TYPE = 'Posterior';
diff --git a/matlab/varlist_indices.m b/matlab/varlist_indices.m
index 8eab1cf8d28472d37be7ec9d27cd10f5f0821795..04775955195acf20ff3d4375e64bbf73fd763b13 100644
--- a/matlab/varlist_indices.m
+++ b/matlab/varlist_indices.m
@@ -29,7 +29,7 @@ function [i_var, nvar, index_uniques] = varlist_indices(sublist, list)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if isempty(sublist)
     check = [];
diff --git a/matlab/vnorm.m b/matlab/vnorm.m
index 5d3cdadd66d6a46948a853b31c19b8873ed909f2..426305fa8ffc6aab87f0fb385940ce1b4f1144d5 100644
--- a/matlab/vnorm.m
+++ b/matlab/vnorm.m
@@ -50,7 +50,7 @@ function y = vnorm(A,varargin)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 dim = [];
 ntype = [];
 
diff --git a/matlab/warning_config.m b/matlab/warning_config.m
index b72c7ae064c50c2bce5b483594cb5cf3e6de229c..930e72db061ebfbb8f978630d6c24ab1d5d7d84f 100644
--- a/matlab/warning_config.m
+++ b/matlab/warning_config.m
@@ -25,7 +25,7 @@ function warning_config()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 warning on;
 
diff --git a/matlab/writeVarExpectationFunction.m b/matlab/writeVarExpectationFunction.m
index 0e9a9d8d690661217ef804720a4cd40952d4ebf8..78a099041bce3bdc4a6cb596262cddcc00c641a7 100644
--- a/matlab/writeVarExpectationFunction.m
+++ b/matlab/writeVarExpectationFunction.m
@@ -27,7 +27,7 @@ function writeVarExpectationFunction(var_model_name, horizon)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 %%
 global M_;
diff --git a/matlab/write_expectations.m b/matlab/write_expectations.m
index 273ebded3cb6d60147b29900bc64de279845bb65..0b04e3237b7fb9014b559313fe5a0f68ed782759 100644
--- a/matlab/write_expectations.m
+++ b/matlab/write_expectations.m
@@ -27,7 +27,7 @@ function [expression, growthneutralitycorrection] = write_expectations(eqname, e
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/write_latex_definitions.m b/matlab/write_latex_definitions.m
index 5f009b3b00ea57ae3a4b04718f30b0293d5dbf42..9786e479a836524656693df12772476888d0ff9a 100644
--- a/matlab/write_latex_definitions.m
+++ b/matlab/write_latex_definitions.m
@@ -27,7 +27,7 @@ function write_latex_definitions
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_;
 
diff --git a/matlab/write_latex_parameter_table.m b/matlab/write_latex_parameter_table.m
index 6441a0410704de400812ca0272dadb2ef9a8ca71..430faa0f9d8da5867d237dc2805571ba0dd0b396 100644
--- a/matlab/write_latex_parameter_table.m
+++ b/matlab/write_latex_parameter_table.m
@@ -27,7 +27,7 @@ function write_latex_parameter_table
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/write_latex_prior_table.m b/matlab/write_latex_prior_table.m
index 5129597f5a264670afaac2af7e7c54777a0ffc91..0c1420026807a1d8227becc2a83e4f16fdf73bb4 100644
--- a/matlab/write_latex_prior_table.m
+++ b/matlab/write_latex_prior_table.m
@@ -26,7 +26,7 @@ function write_latex_prior_table
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ options_ bayestopt_ estim_params_
 
diff --git a/matlab/write_mh_history_file.m b/matlab/write_mh_history_file.m
index 72ce6a22e32f819414c67a29995b36bee30ce109..252fbfa92001db8797227b531219bc4401349842 100644
--- a/matlab/write_mh_history_file.m
+++ b/matlab/write_mh_history_file.m
@@ -23,7 +23,7 @@ function i = write_mh_history_file(MetropolisFolder, ModelName, record)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Set base name for the mh-history files.
 BaseName = [MetropolisFolder filesep ModelName '_mh_history_'];
diff --git a/matlab/writecellofchar.m b/matlab/writecellofchar.m
index c08f4bb508b82f169b4fb622a8fb67052c80133f..0367a2867ed6406921a03d748704b35f95df1895 100644
--- a/matlab/writecellofchar.m
+++ b/matlab/writecellofchar.m
@@ -36,7 +36,7 @@ function str = writecellofchar(c)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 str = '{';
 for i=1:size(c, 1)
diff --git a/matlab/writedata.m b/matlab/writedata.m
index 759b011823983a07604ae8c8ea7a2c9c0d8cb64e..c9df9d10d579f69c39a078b743265bb1fd5f64b7 100644
--- a/matlab/writedata.m
+++ b/matlab/writedata.m
@@ -25,7 +25,7 @@ function writedata(fname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/writedata_text.m b/matlab/writedata_text.m
index 293bdee87fe8de3fe858189f6ea9dbbd95940b2a..3af2ab141aa132d445eb2e9d069bbb07b6bf3840 100644
--- a/matlab/writedata_text.m
+++ b/matlab/writedata_text.m
@@ -25,7 +25,7 @@ function writedata_text(fname)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 global M_ oo_
 S=[fname '_endo.dat'];
diff --git a/matlab/writematrixofchar.m b/matlab/writematrixofchar.m
index 5f3f26359a8054f2f5224abc092816363c598f5b..0706d2842c1d9d02c649baa09d5139835950d87f 100644
--- a/matlab/writematrixofchar.m
+++ b/matlab/writematrixofchar.m
@@ -32,7 +32,7 @@ function str = writematrixofchar(m)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~(ischar(m) && ismatrix(m))
     error('Input has to be a matrix of char!')
diff --git a/mex/build/matlab/configure.ac b/mex/build/matlab/configure.ac
index 63ddf61a248bc148386998481fbc171d3b553e71..b6ab2178e64ce458483f95005c1e02b9b714fa06 100644
--- a/mex/build/matlab/configure.ac
+++ b/mex/build/matlab/configure.ac
@@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
 AC_INIT([dynare], [4.7-unstable])
diff --git a/mex/build/octave/configure.ac b/mex/build/octave/configure.ac
index 1ce99dbb646ccb22ff9d82ca341b134dd5854312..7df4785c35c60a99f98c11f7cd930adc7fc957c5 100644
--- a/mex/build/octave/configure.ac
+++ b/mex/build/octave/configure.ac
@@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl
 dnl You should have received a copy of the GNU General Public License
-dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
 AC_INIT([dynare], [4.7-unstable])
diff --git a/mex/sources/blas_lapack.F08 b/mex/sources/blas_lapack.F08
index 8db606a262648c50d4fa26b51e213398dabeb6d3..8df746a17734744deab6fc495044168483a9706f 100644
--- a/mex/sources/blas_lapack.F08
+++ b/mex/sources/blas_lapack.F08
@@ -13,7 +13,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 module blas
   use iso_fortran_env
diff --git a/mex/sources/block_kalman_filter/block_kalman_filter.cc b/mex/sources/block_kalman_filter/block_kalman_filter.cc
index 0ad1f60c80f17b9549d97dc4593fcc85ee644d4a..e6ea916cc1fbc40efdec65e602705af4796a13ac 100644
--- a/mex/sources/block_kalman_filter/block_kalman_filter.cc
+++ b/mex/sources/block_kalman_filter/block_kalman_filter.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <cmath>
diff --git a/mex/sources/block_kalman_filter/block_kalman_filter.hh b/mex/sources/block_kalman_filter/block_kalman_filter.hh
index 18c79c975e5c22b393f82548dbef5d5a9276053f..8ea8e5737185b740afca68fafae113b608252047 100644
--- a/mex/sources/block_kalman_filter/block_kalman_filter.hh
+++ b/mex/sources/block_kalman_filter/block_kalman_filter.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef BLOCK_KALMAN_FILTER
diff --git a/mex/sources/block_trust_region/dulmage_mendelsohn.f08 b/mex/sources/block_trust_region/dulmage_mendelsohn.f08
index 56122bedb62f9f8d427318993e2cffddd8870408..aa49c472807790569a18f464135035f17462aa38 100644
--- a/mex/sources/block_trust_region/dulmage_mendelsohn.f08
+++ b/mex/sources/block_trust_region/dulmage_mendelsohn.f08
@@ -16,7 +16,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 module dulmage_mendelsohn
   use iso_fortran_env
diff --git a/mex/sources/block_trust_region/matlab_fcn_closure.f08 b/mex/sources/block_trust_region/matlab_fcn_closure.f08
index d6fc00ea8c4705a1ee56844225ba6324d27cf4b1..f414fadbad0aef074fb249669f56f158d17aa589 100644
--- a/mex/sources/block_trust_region/matlab_fcn_closure.f08
+++ b/mex/sources/block_trust_region/matlab_fcn_closure.f08
@@ -26,7 +26,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 module matlab_fcn_closure
   use iso_c_binding
diff --git a/mex/sources/block_trust_region/mexFunction.f08 b/mex/sources/block_trust_region/mexFunction.f08
index 20dad114345993e342392bdd30e254da80b8b575..507f477146df8b451348de2bc7b2e328cbb96aa3 100644
--- a/mex/sources/block_trust_region/mexFunction.f08
+++ b/mex/sources/block_trust_region/mexFunction.f08
@@ -13,7 +13,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 subroutine mexFunction(nlhs, plhs, nrhs, prhs) bind(c, name='mexFunction')
   use iso_fortran_env
diff --git a/mex/sources/block_trust_region/trust_region.f08 b/mex/sources/block_trust_region/trust_region.f08
index 60e737d3cf2fa7119419ce9fc019194594fc92f7..8ad879a170d26c88a39be0dd263c69414c70199a 100644
--- a/mex/sources/block_trust_region/trust_region.f08
+++ b/mex/sources/block_trust_region/trust_region.f08
@@ -17,7 +17,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 module trust_region
   use iso_fortran_env
diff --git a/mex/sources/bytecode/ErrorHandling.hh b/mex/sources/bytecode/ErrorHandling.hh
index 24c6bac7bc0bcf987b6c1b0d7767232a953206c4..c28410a0d0fa4f7b63592944a4c03c7efaba2b90 100644
--- a/mex/sources/bytecode/ErrorHandling.hh
+++ b/mex/sources/bytecode/ErrorHandling.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef ERROR_HANDLING
diff --git a/mex/sources/bytecode/Evaluate.cc b/mex/sources/bytecode/Evaluate.cc
index ce65868cd9e9f7a79c03d5b3b22aa7f4190a1509..46f84bc3e5ddcfc2930f0d8e1b4c880d1fb23b00 100644
--- a/mex/sources/bytecode/Evaluate.cc
+++ b/mex/sources/bytecode/Evaluate.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <sstream>
diff --git a/mex/sources/bytecode/Evaluate.hh b/mex/sources/bytecode/Evaluate.hh
index eb1e8307eb823bc91bfea8cc34e1d59ea7a84f2f..c498dff28c31580d5186ccea9d6d7bde31f8840d 100644
--- a/mex/sources/bytecode/Evaluate.hh
+++ b/mex/sources/bytecode/Evaluate.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef EVALUATE_HH_INCLUDED
diff --git a/mex/sources/bytecode/Interpreter.cc b/mex/sources/bytecode/Interpreter.cc
index c02fe3a4bf6af2cb4ffaf4e3f5373593ee5f8a0c..be7d4be866d62ad8903ec4f825a882d4e1a87cb5 100644
--- a/mex/sources/bytecode/Interpreter.cc
+++ b/mex/sources/bytecode/Interpreter.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <sstream>
diff --git a/mex/sources/bytecode/Interpreter.hh b/mex/sources/bytecode/Interpreter.hh
index bd29bd67d5177a129a9744a971d8ecb1553e2689..bf385e19f452d506c45d0167d1c74d56b6a35c09 100644
--- a/mex/sources/bytecode/Interpreter.hh
+++ b/mex/sources/bytecode/Interpreter.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef INTERPRETER_HH_INCLUDED
diff --git a/mex/sources/bytecode/Mem_Mngr.cc b/mex/sources/bytecode/Mem_Mngr.cc
index de6c92dede15d4e72d0db65f031830679617ef01..446c018e991c738de9df38f2736b19eaf3bfe28a 100644
--- a/mex/sources/bytecode/Mem_Mngr.cc
+++ b/mex/sources/bytecode/Mem_Mngr.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "Mem_Mngr.hh"
diff --git a/mex/sources/bytecode/Mem_Mngr.hh b/mex/sources/bytecode/Mem_Mngr.hh
index 58420a9a681aeb4f7d0780ae05b9ed9a79058bbb..8d3f4cb25ede5a017343ec67ad2ac49337530f66 100644
--- a/mex/sources/bytecode/Mem_Mngr.hh
+++ b/mex/sources/bytecode/Mem_Mngr.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef MEM_MNGR_HH_INCLUDED
diff --git a/mex/sources/bytecode/SparseMatrix.cc b/mex/sources/bytecode/SparseMatrix.cc
index ef790d8c5d9198caa96834c96018efbe452667ba..f52cd63062ee5d20df07f8209a32a2984cef83a7 100644
--- a/mex/sources/bytecode/SparseMatrix.cc
+++ b/mex/sources/bytecode/SparseMatrix.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <sstream>
diff --git a/mex/sources/bytecode/SparseMatrix.hh b/mex/sources/bytecode/SparseMatrix.hh
index a259558838fa1eaae6dbd763f03fa6b8b1051e6c..dd3be23963d8fcd4603c3f3de1e85a3d93431f89 100644
--- a/mex/sources/bytecode/SparseMatrix.hh
+++ b/mex/sources/bytecode/SparseMatrix.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef SPARSEMATRIX_HH_INCLUDED
diff --git a/mex/sources/bytecode/bytecode.cc b/mex/sources/bytecode/bytecode.cc
index e9296004f5befa16f7d43f486556b87f2883c530..e05fb853b286074e8e7dfc9fb688218190d80ba7 100644
--- a/mex/sources/bytecode/bytecode.cc
+++ b/mex/sources/bytecode/bytecode.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <ctime>
diff --git a/mex/sources/disclyap_fast/disclyap_fast.f08 b/mex/sources/disclyap_fast/disclyap_fast.f08
index f33ee303ff8e4619d269d0c9b559c8c1f5e10335..16cb43eceb23c428201a51984ef0ebd8601f252c 100644
--- a/mex/sources/disclyap_fast/disclyap_fast.f08
+++ b/mex/sources/disclyap_fast/disclyap_fast.f08
@@ -35,7 +35,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 subroutine mexFunction(nlhs, plhs, nrhs, prhs) bind(c, name='mexFunction')
   use iso_fortran_env
diff --git a/mex/sources/dynare_simul_/dynare_simul_.cc b/mex/sources/dynare_simul_/dynare_simul_.cc
index faaf146b0383e743b3441757547173a3ba33adbc..99c8a8e41c1833c16230ec88e9633dd1e7fa1025 100644
--- a/mex/sources/dynare_simul_/dynare_simul_.cc
+++ b/mex/sources/dynare_simul_/dynare_simul_.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // This is the mexFunction providing interface to
diff --git a/mex/sources/dynblas.h b/mex/sources/dynblas.h
index 8215dd2ad31fe6467a26931a214d99d6b8fb7dce..be0586b061b45a9545c967e62df6f9f1840c3057 100644
--- a/mex/sources/dynblas.h
+++ b/mex/sources/dynblas.h
@@ -23,7 +23,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNBLAS_H
diff --git a/mex/sources/dynlapack.h b/mex/sources/dynlapack.h
index c824570a7e4f38474c0ebf4076f873f209e404f2..2b95919e0c646e691888bb48792b743312455775 100644
--- a/mex/sources/dynlapack.h
+++ b/mex/sources/dynlapack.h
@@ -23,7 +23,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNLAPACK_H
diff --git a/mex/sources/dynmex.h b/mex/sources/dynmex.h
index 4bb0ca7391278d0b7f38bdbc65880b24ec251750..2bd07760c91e93de87ec0cc8256220c9a85dc453 100644
--- a/mex/sources/dynmex.h
+++ b/mex/sources/dynmex.h
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNMEX_H
diff --git a/mex/sources/dynumfpack.h b/mex/sources/dynumfpack.h
index f09514bedc02eada3fb11abad352fff7869a6f1e..4da0fb04af687733828a27bea9edf002cc4ed76a 100644
--- a/mex/sources/dynumfpack.h
+++ b/mex/sources/dynumfpack.h
@@ -18,7 +18,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNUMFPACK_H
diff --git a/mex/sources/gensylv/gensylv.cc b/mex/sources/gensylv/gensylv.cc
index c71f295f92fd3c4a0dc20c10154140f76344f226..51a18feaefb89a7471efb0673778590f449ff89e 100644
--- a/mex/sources/gensylv/gensylv.cc
+++ b/mex/sources/gensylv/gensylv.cc
@@ -15,7 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "dynmex.h"
diff --git a/mex/sources/k_order_perturbation/dynamic_abstract_class.hh b/mex/sources/k_order_perturbation/dynamic_abstract_class.hh
index e1f8c3709e5807473d4163d59c19783634bf8b9d..eed772c56561c58ff3120606ea79525d87fa9115 100644
--- a/mex/sources/k_order_perturbation/dynamic_abstract_class.hh
+++ b/mex/sources/k_order_perturbation/dynamic_abstract_class.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNAMICMODELAC_HH
diff --git a/mex/sources/k_order_perturbation/dynamic_dll.cc b/mex/sources/k_order_perturbation/dynamic_dll.cc
index c9a44c6d29d7dd47e798462ecdd8abe85bb29aca..afd732c3c7445863da7af2e4ab860b18f17c7580 100644
--- a/mex/sources/k_order_perturbation/dynamic_dll.cc
+++ b/mex/sources/k_order_perturbation/dynamic_dll.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "dynamic_dll.hh"
diff --git a/mex/sources/k_order_perturbation/dynamic_dll.hh b/mex/sources/k_order_perturbation/dynamic_dll.hh
index e9d9aa8a6ff9c3afb7242139944db24ee8432b15..f31f2ec5b267ff08b7e1e426528839c4c590a508 100644
--- a/mex/sources/k_order_perturbation/dynamic_dll.hh
+++ b/mex/sources/k_order_perturbation/dynamic_dll.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNAMIC_DLL_HH
diff --git a/mex/sources/k_order_perturbation/dynamic_m.cc b/mex/sources/k_order_perturbation/dynamic_m.cc
index c0ff5c2ca5b131eafd8a6ec911496e04083d42a7..ab5264d5ee9e75702bfb71ffddb73a4c6f546980 100644
--- a/mex/sources/k_order_perturbation/dynamic_m.cc
+++ b/mex/sources/k_order_perturbation/dynamic_m.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <algorithm>
diff --git a/mex/sources/k_order_perturbation/dynamic_m.hh b/mex/sources/k_order_perturbation/dynamic_m.hh
index c7b815399d640613d7f8b0866f8d8c04273f5fd2..40c04d0bfb32f9fda6359e97da9a47a11371b821 100644
--- a/mex/sources/k_order_perturbation/dynamic_m.hh
+++ b/mex/sources/k_order_perturbation/dynamic_m.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _DYNAMIC_M_HH
diff --git a/mex/sources/k_order_perturbation/k_ord_dynare.cc b/mex/sources/k_order_perturbation/k_ord_dynare.cc
index bb25138c12284e191ce63ce33cbcba05f2ee34c9..63bb7d0a682dd7b81e26072f62a10a5da7dbe394 100644
--- a/mex/sources/k_order_perturbation/k_ord_dynare.cc
+++ b/mex/sources/k_order_perturbation/k_ord_dynare.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 // GP, based on work by O.Kamenik
diff --git a/mex/sources/k_order_perturbation/k_ord_dynare.hh b/mex/sources/k_order_perturbation/k_ord_dynare.hh
index 09c1aa5251ec87cda25b9d49d27fb11443651b6d..4f82d46c55b776be0eb9eb023281e09a69418bf2 100644
--- a/mex/sources/k_order_perturbation/k_ord_dynare.hh
+++ b/mex/sources/k_order_perturbation/k_ord_dynare.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef K_ORD_DYNARE3_H
diff --git a/mex/sources/k_order_perturbation/k_order_perturbation.cc b/mex/sources/k_order_perturbation/k_order_perturbation.cc
index 25c4885f9f8e2f7ea2114ea3acceae00aca2f444..58dbfb5bd0a0071dd071cac3cffc92996f90b8f8 100644
--- a/mex/sources/k_order_perturbation/k_order_perturbation.cc
+++ b/mex/sources/k_order_perturbation/k_order_perturbation.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 /* Defines the entry point for the k-order perturbation application DLL.
diff --git a/mex/sources/k_order_perturbation/tests/first_order.m b/mex/sources/k_order_perturbation/tests/first_order.m
index f46631c220260266dc87fcb98ad22cf34c9c872c..d02119cec60d3ae6aeec25c55fd76e6fc1668a63 100644
--- a/mex/sources/k_order_perturbation/tests/first_order.m
+++ b/mex/sources/k_order_perturbation/tests/first_order.m
@@ -16,7 +16,7 @@ function [gy]=first_order(M_, dr, jacobia)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % fd = jacobia_
 % reorder jacobia_
diff --git a/mex/sources/k_order_perturbation/tests/k_order_test_main.cc b/mex/sources/k_order_perturbation/tests/k_order_test_main.cc
index 114e1e1e7c951e7dd3d4ec07ae7d1bd0e3b5179a..4541baf79b0261fedb07c662c3d759ce34d8755f 100644
--- a/mex/sources/k_order_perturbation/tests/k_order_test_main.cc
+++ b/mex/sources/k_order_perturbation/tests/k_order_test_main.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 /*************************************
diff --git a/mex/sources/kalman_steady_state/kalman_steady_state.cc b/mex/sources/kalman_steady_state/kalman_steady_state.cc
index 14b61015b34e4ead9bb980c70cb30f296af684a6..50aa8354dc011d626670a669e8f8b4d2f2078c15 100644
--- a/mex/sources/kalman_steady_state/kalman_steady_state.cc
+++ b/mex/sources/kalman_steady_state/kalman_steady_state.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  *
  * This mex file calls fortran routines from the Slicot library.
  */
diff --git a/mex/sources/kronecker/A_times_B_kronecker_C.f08 b/mex/sources/kronecker/A_times_B_kronecker_C.f08
index 5c91fe4dd0a03dac57397e4223d7c30cac2bf14e..cbf0336e0c394c26e0f4c92ecd637e55c02ba2e5 100644
--- a/mex/sources/kronecker/A_times_B_kronecker_C.f08
+++ b/mex/sources/kronecker/A_times_B_kronecker_C.f08
@@ -16,7 +16,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 subroutine mexFunction(nlhs, plhs, nrhs, prhs) bind(c, name='mexFunction')
   use iso_fortran_env, only: real64
diff --git a/mex/sources/kronecker/sparse_hessian_times_B_kronecker_C.cc b/mex/sources/kronecker/sparse_hessian_times_B_kronecker_C.cc
index f15e512231b54abb425d3f520638ab62475d3699..8dd74b4791257462efc1fb5f766ef1799a6c030f 100644
--- a/mex/sources/kronecker/sparse_hessian_times_B_kronecker_C.cc
+++ b/mex/sources/kronecker/sparse_hessian_times_B_kronecker_C.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 /*
diff --git a/mex/sources/local_state_space_iterations/local_state_space_iteration_2.cc b/mex/sources/local_state_space_iterations/local_state_space_iteration_2.cc
index d0dc82e163f630eaf6a1ef016a95b66a5d888b3b..bf2209f0fca47f4de91654b399a3dbf298ce321d 100644
--- a/mex/sources/local_state_space_iterations/local_state_space_iteration_2.cc
+++ b/mex/sources/local_state_space_iterations/local_state_space_iteration_2.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 /*
diff --git a/mex/sources/local_state_space_iterations/local_state_space_iteration_k.cc b/mex/sources/local_state_space_iterations/local_state_space_iteration_k.cc
index d370cb36ed862a23b33907cc7168ae8b3683f715..6eb1c5fb4b37e70d86828edeb67a624bcb2b05d4 100644
--- a/mex/sources/local_state_space_iterations/local_state_space_iteration_k.cc
+++ b/mex/sources/local_state_space_iterations/local_state_space_iteration_k.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <memory>
diff --git a/mex/sources/matlab_mex.F08 b/mex/sources/matlab_mex.F08
index fae9fd595867190eae2ac174d751238241d1723b..c8e90c973291609be45abf826324637bbe783260 100644
--- a/mex/sources/matlab_mex.F08
+++ b/mex/sources/matlab_mex.F08
@@ -43,7 +43,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 #ifdef MATLAB_MEX_FILE
 # if MATLAB_VERSION >= 0x0904
diff --git a/mex/sources/mjdgges/mjdgges.F08 b/mex/sources/mjdgges/mjdgges.F08
index 5d67e41fd3aea9fe74c574de7b9db1573940a2e4..f6200163f0e25d2915f19a38d18a8c32d3c88c79 100644
--- a/mex/sources/mjdgges/mjdgges.F08
+++ b/mex/sources/mjdgges/mjdgges.F08
@@ -33,7 +33,7 @@
 ! GNU General Public License for more details.
 !
 ! You should have received a copy of the GNU General Public License
-! along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+! along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 #include "defines.F08"
 
diff --git a/mex/sources/ms-sbvar/mex_top_level.cc b/mex/sources/ms-sbvar/mex_top_level.cc
index 5022d9501a0cdb541a7907fa7a113eb1a148c397..0db65d833553ccbbc2693e3a28385a1fe0de4a19 100644
--- a/mex/sources/ms-sbvar/mex_top_level.cc
+++ b/mex/sources/ms-sbvar/mex_top_level.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <cstdlib>
diff --git a/mex/sources/ms-sbvar/modify_for_mex.cc b/mex/sources/ms-sbvar/modify_for_mex.cc
index bdcf2a85d34481814b5b8b2842ade0b6a410609a..f9acd4e29f4299c944caa3fa86012cd337054d22 100644
--- a/mex/sources/ms-sbvar/modify_for_mex.cc
+++ b/mex/sources/ms-sbvar/modify_for_mex.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #if defined(MATLAB_MEX_FILE) || defined(OCTAVE_MEX_FILE)
diff --git a/mex/sources/ms-sbvar/modify_for_mex.h b/mex/sources/ms-sbvar/modify_for_mex.h
index 351692e0d2ebc861b18b8424e5ac3e09dac7165e..af77bbaf713706736d02d80b233d9fa4ea466d08 100644
--- a/mex/sources/ms-sbvar/modify_for_mex.h
+++ b/mex/sources/ms-sbvar/modify_for_mex.h
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef _MEXMOD
diff --git a/mex/sources/num_procs/num_procs.cc b/mex/sources/num_procs/num_procs.cc
index 83698d661ae8a143529cda92ed00af976967e0c0..40e69da70571e3d09a9894c66e21e5c902d72e46 100644
--- a/mex/sources/num_procs/num_procs.cc
+++ b/mex/sources/num_procs/num_procs.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <thread>
diff --git a/mex/sources/perfect_foresight_problem/DynamicModelCaller.cc b/mex/sources/perfect_foresight_problem/DynamicModelCaller.cc
index 4e7e819fdbddc744d9f4b1f0f198dc058f8f8c31..9349cfbcb4a561c71df18cf9f69f8c9cfc98e8f9 100644
--- a/mex/sources/perfect_foresight_problem/DynamicModelCaller.cc
+++ b/mex/sources/perfect_foresight_problem/DynamicModelCaller.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <dynmex.h>
diff --git a/mex/sources/perfect_foresight_problem/DynamicModelCaller.hh b/mex/sources/perfect_foresight_problem/DynamicModelCaller.hh
index abfc019f197169db036fa22de1c8e586125fcb62..fa482965c4d237cb10a12380a21a53c49e5dfecc 100644
--- a/mex/sources/perfect_foresight_problem/DynamicModelCaller.hh
+++ b/mex/sources/perfect_foresight_problem/DynamicModelCaller.hh
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <string>
diff --git a/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc b/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc
index 52fa7e88ed4c7135fb5e33e7504533fff98d95f4..c6244b09996530c28209a4668115c144d66371c9 100644
--- a/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc
+++ b/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <string>
diff --git a/mex/sources/sobol/gaussian.hh b/mex/sources/sobol/gaussian.hh
index a259c66a99e46739c4f82d0cf7911ab31c00e3dc..4339161143ac923b2b96a1e4951dd62b6612fcab 100644
--- a/mex/sources/sobol/gaussian.hh
+++ b/mex/sources/sobol/gaussian.hh
@@ -17,7 +17,7 @@
 ** GNU General Public License for more details.
 **
 ** You should have received a copy of the GNU General Public License
-** along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+** along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 **
 ** AUTHOR(S): stephane DOT adjemian AT univ DASH lemans DOT fr
 */
diff --git a/mex/sources/sobol/initialize_v_array.hh b/mex/sources/sobol/initialize_v_array.hh
index 8e7b21ab0b36f9fb72fd6238ff3362034331d902..a5b367193855f24febe0553a108abbc6d1bd52d7 100644
--- a/mex/sources/sobol/initialize_v_array.hh
+++ b/mex/sources/sobol/initialize_v_array.hh
@@ -20,7 +20,7 @@ initialize_v_array(int dim_max, int log_max, T **v)
 ** GNU Lesser General Public License for more details.
 **
 ** You should have received a copy of the GNU Lesser General Public License
-** along with this program.  If not, see <http://www.gnu.org/licenses/>.
+** along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
 {
 #include "initialize_v_array.inc"
diff --git a/mex/sources/sobol/initialize_v_array.inc b/mex/sources/sobol/initialize_v_array.inc
index 0866fa387f2f3a7c5ee20670d34b79ea84088f55..24259bf8656d916a8353b34f0c3baceeca3d3a6d 100644
--- a/mex/sources/sobol/initialize_v_array.inc
+++ b/mex/sources/sobol/initialize_v_array.inc
@@ -13,7 +13,7 @@
 ** GNU Lesser General Public License for more details.
 **
 ** You should have received a copy of the GNU Lesser General Public License
-** along with this program.  If not, see <http://www.gnu.org/licenses/>.
+** along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
 
   for (int i = 0; i < dim_max; i++)
diff --git a/mex/sources/sobol/qmc_sequence.cc b/mex/sources/sobol/qmc_sequence.cc
index 21a03dc1f9bf5cea6a4914f363a31f0158acadbf..0d7b0ec9626b7f2d9c78901d4767e57d39c561fb 100644
--- a/mex/sources/sobol/qmc_sequence.cc
+++ b/mex/sources/sobol/qmc_sequence.cc
@@ -16,7 +16,7 @@
 ** GNU General Public License for more details.
 **
 ** You should have received a copy of the GNU General Public License
-** along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+** along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 **/
 
 #include <string>
diff --git a/mex/sources/sobol/sobol.hh b/mex/sources/sobol/sobol.hh
index a6f29d9f7f2ee88f5d2a72ee3d780e6605d7a093..ca8fe3df62f1df8b1db107627b251ff0ed7dea43 100644
--- a/mex/sources/sobol/sobol.hh
+++ b/mex/sources/sobol/sobol.hh
@@ -16,7 +16,7 @@
 ** GNU Lesser General Public License for more details.
 **
 ** You should have received a copy of the GNU Lesser General Public License
-** along with this program.  If not, see <http://www.gnu.org/licenses/>.
+** along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
 
 #include <cstdlib>
diff --git a/preprocessor b/preprocessor
index 86b2b4c2dadcbb07fd425f2178db27cd52c6113e..74ef3457b4805099ee9885b34173a0d0fd6aca61 160000
--- a/preprocessor
+++ b/preprocessor
@@ -1 +1 @@
-Subproject commit 86b2b4c2dadcbb07fd425f2178db27cd52c6113e
+Subproject commit 74ef3457b4805099ee9885b34173a0d0fd6aca61
diff --git a/scripts/diffFuncNames.py b/scripts/diffFuncNames.py
index 121c0faf7da150db5bb0af47ea5a61b4a4b7c8d1..2388d888e853f9bb2946a442422df8aefc5c0184 100644
--- a/scripts/diffFuncNames.py
+++ b/scripts/diffFuncNames.py
@@ -21,7 +21,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 ##
 
 import os
diff --git a/scripts/dynare.el b/scripts/dynare.el
index 4c302c5146da920f33b78074c72a0b43b179e18c..6e1c1722470d791752ee0e61b80213a85c8a54c1 100644
--- a/scripts/dynare.el
+++ b/scripts/dynare.el
@@ -15,7 +15,7 @@
 ;;
 ;; You should have received a copy of the GNU General Public License
 ;; along with this program.  If not, see
-;; <http://www.gnu.org/licenses/>.
+;; <https://www.gnu.org/licenses/>.
 
 ;;; Installation:
 ;;
diff --git a/scripts/functionDifferences.py b/scripts/functionDifferences.py
index 29d03ddb7df1008ec35b69895e309cfb6dccf74f..96dc63a5b3d8b9c237b6a020c7eaae3d1f18721b 100644
--- a/scripts/functionDifferences.py
+++ b/scripts/functionDifferences.py
@@ -25,7 +25,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 ##
 
 import os
diff --git a/tests/TeX/fs2000_corr_ME.mod b/tests/TeX/fs2000_corr_ME.mod
index 1558d2c6ed3ed74bf34445b5ef27e6b25e07a8c6..efb79485f118850b9627a2488d4dd07f378d7e05 100644
--- a/tests/TeX/fs2000_corr_ME.mod
+++ b/tests/TeX/fs2000_corr_ME.mod
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m ${m}$ (long_name='Money Stock')
diff --git a/tests/analytic_derivatives/BrockMirman_PertParamsDerivs.mod b/tests/analytic_derivatives/BrockMirman_PertParamsDerivs.mod
index 4d2809c678de29a29c072787d44f063a911c88f4..f0a611ffedbcf85aba120c33cdfdbccbc3d8a84a 100644
--- a/tests/analytic_derivatives/BrockMirman_PertParamsDerivs.mod
+++ b/tests/analytic_derivatives/BrockMirman_PertParamsDerivs.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 
diff --git a/tests/analytic_derivatives/burnside_3_order_PertParamsDerivs.mod b/tests/analytic_derivatives/burnside_3_order_PertParamsDerivs.mod
index c6285c24b2e7a5751f8f6370c5951a64bc780eda..3ad9f86d075b5801b5f3f862e59a18cc2db02c13 100644
--- a/tests/analytic_derivatives/burnside_3_order_PertParamsDerivs.mod
+++ b/tests/analytic_derivatives/burnside_3_order_PertParamsDerivs.mod
@@ -14,7 +14,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 
diff --git a/tests/bgp/fs2000/fs2000.mod b/tests/bgp/fs2000/fs2000.mod
index bbe593f348cba72909b9c7705ca817b58ce8c4fd..fa9a36edf816323f20caf90ae4b3ce6b51ee304f 100644
--- a/tests/bgp/fs2000/fs2000.mod
+++ b/tests/bgp/fs2000/fs2000.mod
@@ -22,7 +22,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var gM M;
diff --git a/tests/block_bytecode/run_ls2003.m b/tests/block_bytecode/run_ls2003.m
index 518150814bb54e9ebb4e774a89b85dab22f4bacc..867da8667e896712062e9028177bf3ff5cc82545 100644
--- a/tests/block_bytecode/run_ls2003.m
+++ b/tests/block_bytecode/run_ls2003.m
@@ -15,7 +15,7 @@ function run_ls2003(block, storage, solve_algo, stack_solve_algo)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
   disp(['TEST: ls2003 (block=' num2str(block) ', bytecode=' ...
         num2str(storage==2) ', use_dll=' num2str(storage==1) ...
diff --git a/tests/decision_rules/example1.mod b/tests/decision_rules/example1.mod
index e566f355b39c3dbcb064c847735f63495299fa63..fe818ec6646a247fd06e6ff29893994638789775 100644
--- a/tests/decision_rules/example1.mod
+++ b/tests/decision_rules/example1.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/decision_rules/third_order/FV2011.mod b/tests/decision_rules/third_order/FV2011.mod
index 1d9dda95fd227510891b8de5c7f885372ba197d9..4fe714a1a580bebeb61af95ec5071a58eed67879 100644
--- a/tests/decision_rules/third_order/FV2011.mod
+++ b/tests/decision_rules/third_order/FV2011.mod
@@ -26,7 +26,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var sigma_r sigma_tb eps_r eps_tb X D K lambda C H Y I phi r;
diff --git a/tests/discretionary_policy/Gali_2015_chapter_3.mod b/tests/discretionary_policy/Gali_2015_chapter_3.mod
index ac48a5eee9f744ebc8c1fa88a7c2777387e61de9..2ddcea5dfd8ef1217d0b2e26169a33445756c321 100644
--- a/tests/discretionary_policy/Gali_2015_chapter_3.mod
+++ b/tests/discretionary_policy/Gali_2015_chapter_3.mod
@@ -30,7 +30,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/discretionary_policy/Gali_2015_chapter_3_nonlinear.mod b/tests/discretionary_policy/Gali_2015_chapter_3_nonlinear.mod
index d9153977c64fb557fbf779a77786487c0525bb45..26ecf95d73565449ff75f63027cbfe684dd8f5e7 100644
--- a/tests/discretionary_policy/Gali_2015_chapter_3_nonlinear.mod
+++ b/tests/discretionary_policy/Gali_2015_chapter_3_nonlinear.mod
@@ -33,7 +33,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 var C               ${C}$           (long_name='Consumption')
diff --git a/tests/discretionary_policy/Gali_discretion.mod b/tests/discretionary_policy/Gali_discretion.mod
index af32cfa54916ae68cd1e4cd66781ae825cc5e09a..a368462b175ead1bf392b273018e68c62db85e6e 100644
--- a/tests/discretionary_policy/Gali_discretion.mod
+++ b/tests/discretionary_policy/Gali_discretion.mod
@@ -22,7 +22,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/estimation/MH_recover/fs2000.common.inc b/tests/estimation/MH_recover/fs2000.common.inc
index bbcc293f9ba9ecb9991b51c7f94893381a0481d9..316fb6f580eea02f4136397015f4aa2a69b8cdf2 100644
--- a/tests/estimation/MH_recover/fs2000.common.inc
+++ b/tests/estimation/MH_recover/fs2000.common.inc
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/estimation/TaRB/fs2000_tarb.mod b/tests/estimation/TaRB/fs2000_tarb.mod
index c22ed58c068afb482fb6c7001107830b35014c79..5be1411ef467e9a15387c69ebc13e76ae9d14c3d 100644
--- a/tests/estimation/TaRB/fs2000_tarb.mod
+++ b/tests/estimation/TaRB/fs2000_tarb.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/estimation/fs2000_estimated_params_init.mod b/tests/estimation/fs2000_estimated_params_init.mod
index 1452c92ff7df7a2698fbe7684a50efdffe4fc837..5061932efbe83a955e9619a95e0f34c950771338 100644
--- a/tests/estimation/fs2000_estimated_params_init.mod
+++ b/tests/estimation/fs2000_estimated_params_init.mod
@@ -16,7 +16,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/estimation/fs2000_mixed_ML_xfail.mod b/tests/estimation/fs2000_mixed_ML_xfail.mod
index 0ab1245b87204e884ba7d663536549fb299f56ad..3e14858af3368a9ff9f1830fc80ea4945d3fe983 100644
--- a/tests/estimation/fs2000_mixed_ML_xfail.mod
+++ b/tests/estimation/fs2000_mixed_ML_xfail.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/estimation/method_of_moments/AFVRR/AFVRR_M0.mod b/tests/estimation/method_of_moments/AFVRR/AFVRR_M0.mod
index ea4342672f6594aefce90584586dc1678d837d77..d10f2e441c16cae7eb60763c595eed5dcec38692 100644
--- a/tests/estimation/method_of_moments/AFVRR/AFVRR_M0.mod
+++ b/tests/estimation/method_of_moments/AFVRR/AFVRR_M0.mod
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % This is the benchmark model with no feedback M_0
diff --git a/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB.mod b/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB.mod
index 6686c5f29efc02d8ee66cc51f8f9e6372354b45a..0950d7378ce6f55fd7b05aac6ce710a5ff0f03d7 100644
--- a/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB.mod
+++ b/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB.mod
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % This is the model with Feedback M_FB
diff --git a/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB_RRA.mod b/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB_RRA.mod
index f299d7f8a328fa090d639521e1d6438f637d39e0..80a1153b5bd79891474e3e12aa9f46e527411ce6 100644
--- a/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB_RRA.mod
+++ b/tests/estimation/method_of_moments/AFVRR/AFVRR_MFB_RRA.mod
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % This is the model with feedback and calibrated RRA
diff --git a/tests/estimation/method_of_moments/AFVRR/AFVRR_common.inc b/tests/estimation/method_of_moments/AFVRR/AFVRR_common.inc
index 76aea9e0b0104df02664e55bc65fedb338af2376..1e7bbf7b2647d389c1393ba8e65d5e4d39206d19 100644
--- a/tests/estimation/method_of_moments/AFVRR/AFVRR_common.inc
+++ b/tests/estimation/method_of_moments/AFVRR/AFVRR_common.inc
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 %--------------------------------------------------------------------------
diff --git a/tests/estimation/method_of_moments/AFVRR/AFVRR_steady_helper.m b/tests/estimation/method_of_moments/AFVRR/AFVRR_steady_helper.m
index b8289d48488efd077fcd83461454b319a6f93fc0..1b248e8906999ed2b48b925bbf9d16514e757de5 100644
--- a/tests/estimation/method_of_moments/AFVRR/AFVRR_steady_helper.m
+++ b/tests/estimation/method_of_moments/AFVRR/AFVRR_steady_helper.m
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % This is a helper function to compute steady state values and endogenous parameters
diff --git a/tests/estimation/method_of_moments/AnScho/AnScho_MoM.mod b/tests/estimation/method_of_moments/AnScho/AnScho_MoM.mod
index 3d0e718c9e1285de51c194f88a95a28cb3e5dea6..fc662d5450ed32bef2dea85fc80bbd925b515b3f 100644
--- a/tests/estimation/method_of_moments/AnScho/AnScho_MoM.mod
+++ b/tests/estimation/method_of_moments/AnScho/AnScho_MoM.mod
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % Define testscenario
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_Andreasen.mod b/tests/estimation/method_of_moments/RBC/RBC_MoM_Andreasen.mod
index b9191a1f7dd7af6070570855915edfc2f65b8b0b..7e30988c1308859bd36dc276e791c118638c44ee 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_Andreasen.mod
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_Andreasen.mod
@@ -15,7 +15,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % Define testscenario
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_GMM_gradient_optim.mod b/tests/estimation/method_of_moments/RBC/RBC_MoM_GMM_gradient_optim.mod
index f58c9de046600a242317a4712178232ac413de6c..6b680714904df1e801dae1b194fcc77a347dae6a 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_GMM_gradient_optim.mod
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_GMM_gradient_optim.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 @#include "RBC_MoM_common.inc"
 
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_SMM_ME.mod b/tests/estimation/method_of_moments/RBC/RBC_MoM_SMM_ME.mod
index b407cd28a515c8027d586ed46f9d00fd522ff2e9..133c73867648485ca897718ee2de6c771b2ef19f 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_SMM_ME.mod
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_SMM_ME.mod
@@ -14,7 +14,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % Define testscenario
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_common.inc b/tests/estimation/method_of_moments/RBC/RBC_MoM_common.inc
index 330dd2fcf0d026c9f9bc1653d699d18b32885b16..d3a19f8b2fc8d623e93afef7fa6e518f9e738801 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_common.inc
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_common.inc
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var k   $K$
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_optimizer.mod b/tests/estimation/method_of_moments/RBC/RBC_MoM_optimizer.mod
index b9d9dc96c612671f4735c677e62be67453fcacd3..aaaaeec594e933a8b3899147672bc7c155affb84 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_optimizer.mod
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_optimizer.mod
@@ -15,7 +15,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 % TO DO
 % [ ] fix optimizers 11 and 12; 
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_prefilter.mod b/tests/estimation/method_of_moments/RBC/RBC_MoM_prefilter.mod
index 326badcd585f01fc16ca0040655cf21aaa85b2c2..e6c713769bf2be261017694d5352d5016d45da2a 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_prefilter.mod
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_prefilter.mod
@@ -15,7 +15,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % Define testscenario
diff --git a/tests/estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m b/tests/estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m
index 9c43619d7682489f8f278ac04df1f5b4766aa62b..c322248253c055146d0bbed79c55dd7c77915eb7 100644
--- a/tests/estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m
+++ b/tests/estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m
@@ -14,7 +14,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 function [N, info]= RBC_MoM_steady_helper(THETA,ETAl,ETAc,BETTA,B,C_O_N,W)
 info=0;
diff --git a/tests/estimation/t_proposal/fs2000_student.mod b/tests/estimation/t_proposal/fs2000_student.mod
index a7483741b4c905dfed76db3a22049bbf27dd3475..818507833880b56e0c968a7a86411513a37cbb5d 100644
--- a/tests/estimation/t_proposal/fs2000_student.mod
+++ b/tests/estimation/t_proposal/fs2000_student.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/estimation/tune_mh_jscale/fs2000.inc b/tests/estimation/tune_mh_jscale/fs2000.inc
index 976c2c5842d09f1baf8cc1c43902b14e332ebd00..60d44c7956f950ec07f202c3d1b2e4e0ff084b87 100644
--- a/tests/estimation/tune_mh_jscale/fs2000.inc
+++ b/tests/estimation/tune_mh_jscale/fs2000.inc
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/estimation/tune_mh_jscale/fs2000.mod b/tests/estimation/tune_mh_jscale/fs2000.mod
index a44fa544acb62845a65de7806474614432475278..9dacfed62333c444aabed9b046c68a0ac8d28146 100644
--- a/tests/estimation/tune_mh_jscale/fs2000.mod
+++ b/tests/estimation/tune_mh_jscale/fs2000.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000.inc"
diff --git a/tests/estimation/tune_mh_jscale/fs2000_1_xfail.mod b/tests/estimation/tune_mh_jscale/fs2000_1_xfail.mod
index d8ee3d16f433ff951b88d1d590f9a6b3ef850ae8..d42d06595bbcd181b138ea8a6c87a53b98442776 100644
--- a/tests/estimation/tune_mh_jscale/fs2000_1_xfail.mod
+++ b/tests/estimation/tune_mh_jscale/fs2000_1_xfail.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000.inc"
diff --git a/tests/estimation/tune_mh_jscale/fs2000_2_xfail.mod b/tests/estimation/tune_mh_jscale/fs2000_2_xfail.mod
index dfb311b0af022180e9df759cd6481025b30f6359..69b1e3b862b63254378bfff3cd2b9bf4989416a1 100644
--- a/tests/estimation/tune_mh_jscale/fs2000_2_xfail.mod
+++ b/tests/estimation/tune_mh_jscale/fs2000_2_xfail.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000.inc"
diff --git a/tests/filter_step_ahead/fs2000_filter_step_ahead_ML.mod b/tests/filter_step_ahead/fs2000_filter_step_ahead_ML.mod
index a7ddcecbb22dac07d0542af6be63a86e2ab55569..4468a6336c79b5cd66d1f1ce075b5f89b9190b0a 100644
--- a/tests/filter_step_ahead/fs2000_filter_step_ahead_ML.mod
+++ b/tests/filter_step_ahead/fs2000_filter_step_ahead_ML.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/filter_step_ahead/fs2000_filter_step_ahead_bayesian.mod b/tests/filter_step_ahead/fs2000_filter_step_ahead_bayesian.mod
index e977f10e12dbb39a93fc3de2ba7eb1be3402ed80..7fcd6d5f88fa80fac1918174b340021897a203fa 100644
--- a/tests/filter_step_ahead/fs2000_filter_step_ahead_bayesian.mod
+++ b/tests/filter_step_ahead/fs2000_filter_step_ahead_bayesian.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/forecast/Hansen_exo_det_forecast.mod b/tests/forecast/Hansen_exo_det_forecast.mod
index a8dd12e8db3e56311466327936e10a9fea9b633f..cb6dba4e889098fe701829b8bd80338bc74652db 100644
--- a/tests/forecast/Hansen_exo_det_forecast.mod
+++ b/tests/forecast/Hansen_exo_det_forecast.mod
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/identification/BrockMirman/BrockMirman.mod b/tests/identification/BrockMirman/BrockMirman.mod
index 46b76aa6167200e4e8e3216ea8af8c2e685719c5..2674a79841598a0fb7bff3027e0c11c4ce83d21d 100644
--- a/tests/identification/BrockMirman/BrockMirman.mod
+++ b/tests/identification/BrockMirman/BrockMirman.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var
diff --git a/tests/identification/LindeTrabandt/LindeTrabandt2019_xfail.mod b/tests/identification/LindeTrabandt/LindeTrabandt2019_xfail.mod
index 1dcf57b2de8d2c1e4be552f04ce536cd160e4a3d..dae9cb604aba8a41520cb0d75d008812b304e276 100644
--- a/tests/identification/LindeTrabandt/LindeTrabandt2019_xfail.mod
+++ b/tests/identification/LindeTrabandt/LindeTrabandt2019_xfail.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 % =========================================================================
 % Declare endogenous variables
diff --git a/tests/identification/as2007/as2007.mod b/tests/identification/as2007/as2007.mod
index bdae07a4b7eaa37a27be0f6b5f4209d107c0409d..66f631f53d3e3e867f575995dc795130b4b184dd 100644
--- a/tests/identification/as2007/as2007.mod
+++ b/tests/identification/as2007/as2007.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var pie y R g z YGR INFL INT;
diff --git a/tests/identification/as2007/as2007_QT.mod b/tests/identification/as2007/as2007_QT.mod
index 4f0d9d3db90ce7797b7b4003f9afe182f2785b52..6b5fb0c6ebc63d6dc8a9d87d0441c8d398db6fbf 100644
--- a/tests/identification/as2007/as2007_QT.mod
+++ b/tests/identification/as2007/as2007_QT.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 @#define TOL_RANK = 1e-10
diff --git a/tests/identification/as2007/as2007_kronflags.mod b/tests/identification/as2007/as2007_kronflags.mod
index 33ff9a0b8487cb6195a139014b9201977a64efea..1f358730c416113f9f00d49fda849dd48d1bbc24 100644
--- a/tests/identification/as2007/as2007_kronflags.mod
+++ b/tests/identification/as2007/as2007_kronflags.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var y R g z c dy p YGR INFL INT;
diff --git a/tests/identification/as2007/as2007_order_1_2_3.mod b/tests/identification/as2007/as2007_order_1_2_3.mod
index 012c7e00dbce4f42d7f642cf16bae4a8d6034ed3..cb9d20a7413a4b431b493a9e8d94b3a550756083 100644
--- a/tests/identification/as2007/as2007_order_1_2_3.mod
+++ b/tests/identification/as2007/as2007_order_1_2_3.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var y R g z c dy p YGR INFL INT;
diff --git a/tests/identification/cgg/cgg_criteria_differ.mod b/tests/identification/cgg/cgg_criteria_differ.mod
index bc6f588767e0e508ce33720d42a82e31aeb12a53..ecacb7875dc4ec4ff9363680d57304c412c92d6d 100644
--- a/tests/identification/cgg/cgg_criteria_differ.mod
+++ b/tests/identification/cgg/cgg_criteria_differ.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var 
diff --git a/tests/identification/correlated_errors/fs2000_corr.mod b/tests/identification/correlated_errors/fs2000_corr.mod
index ac7e3e037f6cf8251e7a2492a8e779be7620d0c7..4f5049edae29ed5cb998ad8ab5a41357c74ae5dc 100644
--- a/tests/identification/correlated_errors/fs2000_corr.mod
+++ b/tests/identification/correlated_errors/fs2000_corr.mod
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m ${m}$ (long_name='Money Stock')
diff --git a/tests/identification/forward_looking/forward_looking.mod b/tests/identification/forward_looking/forward_looking.mod
index bf7c18d3b815524679928d1f833872cc4884400d..baff1a794989d18fb4f3678f06050b51a1330099 100755
--- a/tests/identification/forward_looking/forward_looking.mod
+++ b/tests/identification/forward_looking/forward_looking.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 var r x p;
 varexo e_M e_D e_S;
diff --git a/tests/identification/ident_unit_root/ident_unit_root.mod b/tests/identification/ident_unit_root/ident_unit_root.mod
index 0a3b105eee54eca5f9c7b1c19111a69282524304..041676b9289072ae00dca133932b58af1273bbc6 100644
--- a/tests/identification/ident_unit_root/ident_unit_root.mod
+++ b/tests/identification/ident_unit_root/ident_unit_root.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 var y delta_y x z;
 
diff --git a/tests/identification/ident_unit_root/ident_unit_root_xfail.mod b/tests/identification/ident_unit_root/ident_unit_root_xfail.mod
index 029b11e414ae18808c08a1c972e90a054fb30380..42a2de4e9b94249571dc926cc7f01c61b6f2c4a0 100644
--- a/tests/identification/ident_unit_root/ident_unit_root_xfail.mod
+++ b/tests/identification/ident_unit_root/ident_unit_root_xfail.mod
@@ -17,7 +17,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 var y x z delta_y;
 
diff --git a/tests/identification/kim/kim2.mod b/tests/identification/kim/kim2.mod
index 57a7faff469a70741c7ae86feff62cd030df7f37..a7247e6310b6b62e4d77b54576aaa5b1f87c3ff5 100644
--- a/tests/identification/kim/kim2.mod
+++ b/tests/identification/kim/kim2.mod
@@ -15,7 +15,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var c k i a lam;
diff --git a/tests/identification/rbc_ident/rbc_ident_std_as_structural_par.mod b/tests/identification/rbc_ident/rbc_ident_std_as_structural_par.mod
index 15faf7403d0d346a90c5cb2e413358e4e4b2afe6..44040243dc565580cd9d42e863dc9dc334118c71 100644
--- a/tests/identification/rbc_ident/rbc_ident_std_as_structural_par.mod
+++ b/tests/identification/rbc_ident/rbc_ident_std_as_structural_par.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 close all;
diff --git a/tests/identification/rbc_ident/rbc_ident_varexo_only.mod b/tests/identification/rbc_ident/rbc_ident_varexo_only.mod
index c78bff3c75f1367bd5a7a7aa94403b8d8968d37f..a20c3428ae184fff9d206f35624c95f279cb5fc5 100644
--- a/tests/identification/rbc_ident/rbc_ident_varexo_only.mod
+++ b/tests/identification/rbc_ident/rbc_ident_varexo_only.mod
@@ -16,7 +16,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 close all;
diff --git a/tests/irfs/example1_unit_std.mod b/tests/irfs/example1_unit_std.mod
index 9c6da3cc0b1fa9ed9e0792e1c692b563a82f0b41..af273ec0aba65719758e95caff327260d54fbf28 100644
--- a/tests/irfs/example1_unit_std.mod
+++ b/tests/irfs/example1_unit_std.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/kalman/lik_init/fs2000_common.inc b/tests/kalman/lik_init/fs2000_common.inc
index ba353c20deba1992022627f850ac23fb84bc27e0..03193ee5a252006031cb803768e996adb09c5ffe 100644
--- a/tests/kalman/lik_init/fs2000_common.inc
+++ b/tests/kalman/lik_init/fs2000_common.inc
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman/lik_init/fs2000_lik_init_1.mod b/tests/kalman/lik_init/fs2000_lik_init_1.mod
index 693cad39ca47ab76b47e80e50640ce79d5dcdcf3..a9f64476fed4fa8299e6635310927deabce158d1 100644
--- a/tests/kalman/lik_init/fs2000_lik_init_1.mod
+++ b/tests/kalman/lik_init/fs2000_lik_init_1.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_lik_init_2.mod b/tests/kalman/lik_init/fs2000_lik_init_2.mod
index 2f96618a4170e78ed0b7176f35a246c4fdfef256..d4b342f1fcc5b0b4a66df8219a0c4b839cea22b5 100644
--- a/tests/kalman/lik_init/fs2000_lik_init_2.mod
+++ b/tests/kalman/lik_init/fs2000_lik_init_2.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_lik_init_3.mod b/tests/kalman/lik_init/fs2000_lik_init_3.mod
index d7cffb5b15d0a9e96d35b71db6bf6c341424bc5d..550358d296ef36874b861d795fe652888cc53e78 100644
--- a/tests/kalman/lik_init/fs2000_lik_init_3.mod
+++ b/tests/kalman/lik_init/fs2000_lik_init_3.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_lik_init_4.mod b/tests/kalman/lik_init/fs2000_lik_init_4.mod
index eab0360125a8a1d4a02d2078ccf6a5e71ef6f5af..bfd4439767cbc905c579cad3cc70f5f7fa348bfa 100644
--- a/tests/kalman/lik_init/fs2000_lik_init_4.mod
+++ b/tests/kalman/lik_init/fs2000_lik_init_4.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_lik_init_5.mod b/tests/kalman/lik_init/fs2000_lik_init_5.mod
index 9409befa958e123a558436383d28d95d30376bbf..02931099b46b28279557aea3e7274cd55c992675 100644
--- a/tests/kalman/lik_init/fs2000_lik_init_5.mod
+++ b/tests/kalman/lik_init/fs2000_lik_init_5.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_ns_common.inc b/tests/kalman/lik_init/fs2000_ns_common.inc
index b756771c0d80d7b4272a57a435d335786551b5e0..b3c7ee0edb9eb81ea0b332810c0abfdb50248226 100644
--- a/tests/kalman/lik_init/fs2000_ns_common.inc
+++ b/tests/kalman/lik_init/fs2000_ns_common.inc
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs Y_obs P_obs y dA;
diff --git a/tests/kalman/lik_init/fs2000_ns_lik_init_2.mod b/tests/kalman/lik_init/fs2000_ns_lik_init_2.mod
index f2c5f1aba73a3cdb36e688815ed5abe7dce45463..2e6bcb0c66dd21f7c02146f808d896800cf42a83 100644
--- a/tests/kalman/lik_init/fs2000_ns_lik_init_2.mod
+++ b/tests/kalman/lik_init/fs2000_ns_lik_init_2.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_ns_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_ns_lik_init_3.mod b/tests/kalman/lik_init/fs2000_ns_lik_init_3.mod
index 4e13049da8ec79259c68f9ddf00f006d4165d7b9..01906b6841af1d9fff23c6d9f79d93becc843ea0 100644
--- a/tests/kalman/lik_init/fs2000_ns_lik_init_3.mod
+++ b/tests/kalman/lik_init/fs2000_ns_lik_init_3.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_ns_common.inc"
diff --git a/tests/kalman/lik_init/fs2000_ns_lik_init_5.mod b/tests/kalman/lik_init/fs2000_ns_lik_init_5.mod
index cdbb0273c9f89206e2e515eef00756a3c6fcc0e1..151199acead07006c66af1127500affae5367423 100644
--- a/tests/kalman/lik_init/fs2000_ns_lik_init_5.mod
+++ b/tests/kalman/lik_init/fs2000_ns_lik_init_5.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 @#include "fs2000_ns_common.inc"
diff --git a/tests/kalman/likelihood_from_dynare/fs2000_model.inc b/tests/kalman/likelihood_from_dynare/fs2000_model.inc
index 9d5a87975d716c163700e83d1cdabc0c92bfc4fa..817687c6b792c67828fd5a0391caeed2f2c8dd86 100644
--- a/tests/kalman/likelihood_from_dynare/fs2000_model.inc
+++ b/tests/kalman/likelihood_from_dynare/fs2000_model.inc
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman/likelihood_from_dynare/fs2000ns_model.inc b/tests/kalman/likelihood_from_dynare/fs2000ns_model.inc
index a9cf2d463eda1a071bf90e836d2d315f6ed1bbbc..f6b9869826746aeb579e7479720a616392a2ddab 100644
--- a/tests/kalman/likelihood_from_dynare/fs2000ns_model.inc
+++ b/tests/kalman/likelihood_from_dynare/fs2000ns_model.inc
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA Y_obs P_obs;
diff --git a/tests/kalman/lyapunov/fs2000_lyap.mod b/tests/kalman/lyapunov/fs2000_lyap.mod
index 10e1ed1f96abe0a9b7b02961157deed3eb240573..4d0162779e934a564d507f11496b82fbcacbe121 100644
--- a/tests/kalman/lyapunov/fs2000_lyap.mod
+++ b/tests/kalman/lyapunov/fs2000_lyap.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/check_variable_dimensions/fs2000.mod b/tests/kalman_filter_smoother/check_variable_dimensions/fs2000.mod
index f13639d24fb268f7ed63e6e600afe7a1a5a2e3be..50b716de5463d2878efe81ab8bb137c9aeb9ce13 100644
--- a/tests/kalman_filter_smoother/check_variable_dimensions/fs2000.mod
+++ b/tests/kalman_filter_smoother/check_variable_dimensions/fs2000.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/check_variable_dimensions/fs2000_ML.mod b/tests/kalman_filter_smoother/check_variable_dimensions/fs2000_ML.mod
index 19d5c5c1a24da0f247a95628c7450bc1fa4fa02e..bfe23cbc86f0cf8e204f7b2b84df01bad33d981a 100644
--- a/tests/kalman_filter_smoother/check_variable_dimensions/fs2000_ML.mod
+++ b/tests/kalman_filter_smoother/check_variable_dimensions/fs2000_ML.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/compare_results_simulation/fs2000.mod b/tests/kalman_filter_smoother/compare_results_simulation/fs2000.mod
index 9892b9520160b18e6ffbc37beab5b2436aa21f34..0d2482d77b4e8a999ef37981b2b3700ddb1651a1 100644
--- a/tests/kalman_filter_smoother/compare_results_simulation/fs2000.mod
+++ b/tests/kalman_filter_smoother/compare_results_simulation/fs2000.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML.mod b/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML.mod
index fcc76dd2e2fed15c53529914026731579a30bb79..4dc2d616b5cc393162b06cdad14c10594f361f6c 100644
--- a/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML.mod
+++ b/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML_loglinear.mod b/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML_loglinear.mod
index 13de5707551de77c052951a6ecb734cb73ecd07f..601ba275d8251cce1a13ab189eb88ab717a7fe8a 100644
--- a/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML_loglinear.mod
+++ b/tests/kalman_filter_smoother/compare_results_simulation/fs2000_ML_loglinear.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/compare_results_simulation/fs2000_loglinear.mod b/tests/kalman_filter_smoother/compare_results_simulation/fs2000_loglinear.mod
index 1395ddfd469acdd213b019ef6abe068e42d32f2a..7a79cb7edf4cbf1bbbfa5686444e29a04adf183a 100644
--- a/tests/kalman_filter_smoother/compare_results_simulation/fs2000_loglinear.mod
+++ b/tests/kalman_filter_smoother/compare_results_simulation/fs2000_loglinear.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/fs2000_smoother_only.mod b/tests/kalman_filter_smoother/fs2000_smoother_only.mod
index 70e4f6bc48a7c115b2f1e90c6eae71a590465635..89bfee48bee5c30b7a21cb15603fc71eb02689e0 100644
--- a/tests/kalman_filter_smoother/fs2000_smoother_only.mod
+++ b/tests/kalman_filter_smoother/fs2000_smoother_only.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/kalman_filter_smoother/fs2000_smoother_only_ns.mod b/tests/kalman_filter_smoother/fs2000_smoother_only_ns.mod
index 29fb1d9235e0ccd9bd804a32edb9b9d4f6b3240a..901fd6fb2fbf17b8e962278a33e68f0d51b2829c 100644
--- a/tests/kalman_filter_smoother/fs2000_smoother_only_ns.mod
+++ b/tests/kalman_filter_smoother/fs2000_smoother_only_ns.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs Y_obs P_obs y dA;
diff --git a/tests/kalman_initial_state/fs2000_ns_smoother_only_initial_state.mod b/tests/kalman_initial_state/fs2000_ns_smoother_only_initial_state.mod
index eeda7159f917d8195592ff838daf65a205d4c229..7a006fbbb554a4c7a53c862831008b1e9c6dcc32 100644
--- a/tests/kalman_initial_state/fs2000_ns_smoother_only_initial_state.mod
+++ b/tests/kalman_initial_state/fs2000_ns_smoother_only_initial_state.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs Y_obs P_obs y dA;
diff --git a/tests/kronecker/test_kron.m b/tests/kronecker/test_kron.m
index 27e80877e04251e7e206b9ad633cc904726a39fb..956e69652c9184502ba85cf5c380d62423fbf3fd 100644
--- a/tests/kronecker/test_kron.m
+++ b/tests/kronecker/test_kron.m
@@ -14,7 +14,7 @@ function info = test_kron(test,number_of_threads)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if ~nargin
     test = 2;
diff --git a/tests/load_octave_packages.m b/tests/load_octave_packages.m
index 886bf644b0b07cd11e9afcc3e50c813e2af1913e..d65010f1dfa000f8aa6c836d7bd05697c1d2f09a 100644
--- a/tests/load_octave_packages.m
+++ b/tests/load_octave_packages.m
@@ -13,7 +13,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 pkg load io
 pkg load optim
diff --git a/tests/loglinear/example4_exp.mod b/tests/loglinear/example4_exp.mod
index 1e1dc30bc4754d048aedd7dee028f81317e8b89b..40b6613886a2421e272871ac1a568bc4f93450ba 100644
--- a/tests/loglinear/example4_exp.mod
+++ b/tests/loglinear/example4_exp.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/loglinear/example4_exp_histval.mod b/tests/loglinear/example4_exp_histval.mod
index 7c4940d20311fdb8de4f0f688390a166035f221b..d0b7a90bc7139e298c719ff94842ab997edf2c85 100644
--- a/tests/loglinear/example4_exp_histval.mod
+++ b/tests/loglinear/example4_exp_histval.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/loglinear/example4_loglinear.mod b/tests/loglinear/example4_loglinear.mod
index d84c80b42da7e8f534ba1360f8d23d553729c90f..e0f7a6f1d69eed18cfc2c52f86c33e7c9f7622b9 100644
--- a/tests/loglinear/example4_loglinear.mod
+++ b/tests/loglinear/example4_loglinear.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/loglinear/example4_loglinear_histval.mod b/tests/loglinear/example4_loglinear_histval.mod
index de380a6d93ca2e4d65c08c7415afe3bd0dc92fa9..c5617e12bf09afd865ba0885af5e42cfb08b2386 100644
--- a/tests/loglinear/example4_loglinear_histval.mod
+++ b/tests/loglinear/example4_loglinear_histval.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/loglinear/example4_loglinear_lagged_exogenous.mod b/tests/loglinear/example4_loglinear_lagged_exogenous.mod
index 8ed2242a9b15a0b447df7890c8fd3438edef02a7..bab55772462a291cba116b51fc0aed4855bb7137 100644
--- a/tests/loglinear/example4_loglinear_lagged_exogenous.mod
+++ b/tests/loglinear/example4_loglinear_lagged_exogenous.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/loglinear/example4_loglinear_lagged_exogenous_a.mod b/tests/loglinear/example4_loglinear_lagged_exogenous_a.mod
index 2130c27341490dd27745ac64272af4be1a2af267..cf93edac98cdc410e251c3e1c5eaaefe3abe6f65 100644
--- a/tests/loglinear/example4_loglinear_lagged_exogenous_a.mod
+++ b/tests/loglinear/example4_loglinear_lagged_exogenous_a.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME.mod b/tests/measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME.mod
index e3234e1a0848064aa448519259a1de59e03432ff..5fb0709964e7a8a742ac0d529a38dc94d0beae11 100644
--- a/tests/measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME.mod
+++ b/tests/measurement_errors/fs2000_corr_me_ml_mcmc/fs2000_corr_ME.mod
@@ -29,7 +29,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/minimal_state_space_system/as2007_minimal.mod b/tests/minimal_state_space_system/as2007_minimal.mod
index 788a70ca02c132621cdc8586e14b4c7760da9ab4..9810f74364788e6bbcbab83029a90a9039a6e0d0 100644
--- a/tests/minimal_state_space_system/as2007_minimal.mod
+++ b/tests/minimal_state_space_system/as2007_minimal.mod
@@ -18,7 +18,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 var y R g z c dy p YGR INFL INT;
diff --git a/tests/minimal_state_space_system/sw_minimal.mod b/tests/minimal_state_space_system/sw_minimal.mod
index 387db71322dfdc96fbd988d039ce50fb880a5324..19ef5f85d3e99c32aacc562e4797fedac65e6750 100644
--- a/tests/minimal_state_space_system/sw_minimal.mod
+++ b/tests/minimal_state_space_system/sw_minimal.mod
@@ -64,7 +64,7 @@
  * GNU General Public License for more details.
  *
  * You can receive a copy of the GNU General Public License
- * at <http://www.gnu.org/licenses/>.
+ * at <https://www.gnu.org/licenses/>.
  */
 
 var labobs      ${lHOURS}$      (long_name='log hours worked') 
diff --git a/tests/missing/simulate_data_with_missing_observations.m b/tests/missing/simulate_data_with_missing_observations.m
index 2a87b4a786d44da1d4692014f9f607480e4e28ab..192b3da3e5e12c727bc24a58ee784472813c301f 100644
--- a/tests/missing/simulate_data_with_missing_observations.m
+++ b/tests/missing/simulate_data_with_missing_observations.m
@@ -37,7 +37,7 @@ function data = simulate_data_with_missing_observations(n,m,S,options)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 if n<=m
     error('n must be greater than m!')
diff --git a/tests/moments/example1_bp_test.mod b/tests/moments/example1_bp_test.mod
index 429040b1c55b3e8562fa4608b4b14c2ab1dacd3f..df7ad03001562e391c9f4664a9e6d3079a4b1036 100644
--- a/tests/moments/example1_bp_test.mod
+++ b/tests/moments/example1_bp_test.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/moments/example1_hp_test.mod b/tests/moments/example1_hp_test.mod
index be200e60667f73cdf67487409fe333cc89c33789..b7dc0d906658c035ff5f9ec54d9b356b4f17d034 100644
--- a/tests/moments/example1_hp_test.mod
+++ b/tests/moments/example1_hp_test.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/moments/example1_one_sided_hp_test.mod b/tests/moments/example1_one_sided_hp_test.mod
index c87763ff06c2a01f9a1572c2945cd56f781d0345..5982f8d475c350b641781d347df9f849fe1a7e5e 100644
--- a/tests/moments/example1_one_sided_hp_test.mod
+++ b/tests/moments/example1_one_sided_hp_test.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/moments/example1_var_decomp.mod b/tests/moments/example1_var_decomp.mod
index 5ad95f14b7e1dd001cc9fa934a699b5a64979804..cf278f6b9496dd4c9e4e9a58f835ecc2028e8620 100644
--- a/tests/moments/example1_var_decomp.mod
+++ b/tests/moments/example1_var_decomp.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/moments/fs2000_post_moments.mod b/tests/moments/fs2000_post_moments.mod
index fce555f413c5c50a86e4267c5a0ca679ca4509f6..a28deb64e7b17cdd94927ccc109f75ddd5659a85 100644
--- a/tests/moments/fs2000_post_moments.mod
+++ b/tests/moments/fs2000_post_moments.mod
@@ -40,7 +40,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/optimal_policy/Ramsey/Gali_commitment.mod b/tests/optimal_policy/Ramsey/Gali_commitment.mod
index ce68001b9b69084dbb8b6079d39e0d6f83eef064..9569b2bada7e5f825d3c5ebc412e9e6f4689cf7c 100644
--- a/tests/optimal_policy/Ramsey/Gali_commitment.mod
+++ b/tests/optimal_policy/Ramsey/Gali_commitment.mod
@@ -31,7 +31,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/optimal_policy/Ramsey/Ramsey_Example_estimation.mod b/tests/optimal_policy/Ramsey/Ramsey_Example_estimation.mod
index 4b7845c17a985bb32512c41f9aaa0c7263bc5ffa..cc391d0b663283727765b8da422ce30cc384acfc 100644
--- a/tests/optimal_policy/Ramsey/Ramsey_Example_estimation.mod
+++ b/tests/optimal_policy/Ramsey/Ramsey_Example_estimation.mod
@@ -61,7 +61,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 //**********Define which monetary policy setup to use *********** 
diff --git a/tests/optimal_policy/neo_growth.mod b/tests/optimal_policy/neo_growth.mod
index 2b6afa29ecc8db26108b12efd1c192f135fd9faf..00a16609a8c507ab61c0e9887f29a1a02dc58f50 100644
--- a/tests/optimal_policy/neo_growth.mod
+++ b/tests/optimal_policy/neo_growth.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 /*
  * This file computes a second-order approximation of the neo-classical growth model.
diff --git a/tests/optimal_policy/neo_growth_foresight.mod b/tests/optimal_policy/neo_growth_foresight.mod
index c1b43937fc1f8c27cf044b6fc3f2feabfbf5a9eb..68f421e9189c31b0c8846e25b9090b6b8ad7980d 100644
--- a/tests/optimal_policy/neo_growth_foresight.mod
+++ b/tests/optimal_policy/neo_growth_foresight.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
  /*
  * This file simulates the neo-classical growth model in a perfect foresight framework.
diff --git a/tests/optimal_policy/neo_growth_ramsey.mod b/tests/optimal_policy/neo_growth_ramsey.mod
index 2258e7012427a04286c887552e16245efd580d1f..2c8ea07dc9bfb024fa19dbbf6604f8c8783617de 100644
--- a/tests/optimal_policy/neo_growth_ramsey.mod
+++ b/tests/optimal_policy/neo_growth_ramsey.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 /*
  * This file computes a second-order approximation of the neo-classical growth model.
diff --git a/tests/optimal_policy/neo_growth_ramsey_foresight.mod b/tests/optimal_policy/neo_growth_ramsey_foresight.mod
index df9c5ef2aac1df218060f808b8d11f858467410a..57c34056b3a6ef948376bda130fe4612079b92c2 100644
--- a/tests/optimal_policy/neo_growth_ramsey_foresight.mod
+++ b/tests/optimal_policy/neo_growth_ramsey_foresight.mod
@@ -14,7 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
  /*
  * This file simulates a perfect-foresight version of the neo-classical growth model.
diff --git a/tests/optimizers/fs2000.common.inc b/tests/optimizers/fs2000.common.inc
index ee8510a3b26c24af61cc91aebc94e583da4c5634..15dcdd0abd5ffbbec418242ac0266c4a24a3c535 100644
--- a/tests/optimizers/fs2000.common.inc
+++ b/tests/optimizers/fs2000.common.inc
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/pac/run_all_tests.m b/tests/pac/run_all_tests.m
index 2c6d20a3bb7d8c0cdcaa6fa3050b4212ed762748..32717f04b1f48ffb282899de461a53fedc0bb33d 100644
--- a/tests/pac/run_all_tests.m
+++ b/tests/pac/run_all_tests.m
@@ -15,7 +15,7 @@ function run_all_tests()
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 r = [];
 
diff --git a/tests/prior_posterior_function/fs2000_prior_posterior_function.mod b/tests/prior_posterior_function/fs2000_prior_posterior_function.mod
index e10481dfd9c98421c2bef4956fec6a995c1f92f7..a86a48466be7ca5a11e73de0315edc411402e7ea 100644
--- a/tests/prior_posterior_function/fs2000_prior_posterior_function.mod
+++ b/tests/prior_posterior_function/fs2000_prior_posterior_function.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var m P c e W R k d n l gy_obs gp_obs y dA;
diff --git a/tests/prior_posterior_function/posterior_function_demo.m b/tests/prior_posterior_function/posterior_function_demo.m
index 2b12ca3aa7a2790767f47483454ca8a8568b10f7..1b8f8d881c288ecc2c0f2bda899dd6bf96b5184b 100644
--- a/tests/prior_posterior_function/posterior_function_demo.m
+++ b/tests/prior_posterior_function/posterior_function_demo.m
@@ -39,7 +39,7 @@ function output_cell =posterior_function_demo(xparam1,M_,options_,oo_,estim_para
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 
 %% store the mean of the parameter draw
diff --git a/tests/pruning/AnSchorfheide_pruned_state_space.mod b/tests/pruning/AnSchorfheide_pruned_state_space.mod
index 4858f73182499d0df44536d94b81dc085fb1fdb9..a4afa3aed0194bd1b0bc53b590f6dda1ee61894d 100644
--- a/tests/pruning/AnSchorfheide_pruned_state_space.mod
+++ b/tests/pruning/AnSchorfheide_pruned_state_space.mod
@@ -26,7 +26,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 % =========================================================================
 
 % set this to 1 if you want to recompute using the Andreasen et al toolbox
diff --git a/tests/reporting/AnnualTable.m b/tests/reporting/AnnualTable.m
index 304cc3fe9809124ff16c4f0e222b014866093299..579c3eadac4df1ba42e5e87afa15736dcc678da2 100644
--- a/tests/reporting/AnnualTable.m
+++ b/tests/reporting/AnnualTable.m
@@ -14,7 +14,7 @@ function rep = AnnualTable(rep, db_a, dc_a, seriesRootName, arange)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 shortNames = {'US', 'EU', 'JA', 'EA6', 'LA6', 'RC6'};
 longNames  = {'Coca Cola', 'Kinder Bueno', 'Pizza', ...
diff --git a/tests/reporting/CommResidTablePage.m b/tests/reporting/CommResidTablePage.m
index b215d74ccca10441460ae2fe550786284af95441..ee4defad4a598d533bc9262dc451b226d6517623 100644
--- a/tests/reporting/CommResidTablePage.m
+++ b/tests/reporting/CommResidTablePage.m
@@ -14,7 +14,7 @@ function rep = CommResidTablePage(rep, db_q, dc_q, trange, vline_after)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 seriesNames = {{'RES_LRPOIL_GAP_WORLD'}, ...
                {'RES_LRPOIL_BAR_WORLD'}, ...
diff --git a/tests/reporting/CountryGraphPage.m b/tests/reporting/CountryGraphPage.m
index c3b03d188ea56133ab63de18e069ecc05e0938ac..ae8ae14433f826d5e92730e1a926e1d264e34b71 100644
--- a/tests/reporting/CountryGraphPage.m
+++ b/tests/reporting/CountryGraphPage.m
@@ -14,7 +14,7 @@ function rep = CountryGraphPage(rep, countryAbbr, db_q, dc_q, prange, srange)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 startpoint = strings(prange(1));
 shaded = strings(srange(1));
diff --git a/tests/reporting/CountryTablePage.m b/tests/reporting/CountryTablePage.m
index bf0087587939da500f616a3654a74564cc219ec9..16e24509c18a9b99e2228ea6494356eb769d8126 100644
--- a/tests/reporting/CountryTablePage.m
+++ b/tests/reporting/CountryTablePage.m
@@ -14,7 +14,7 @@ function rep = CountryTablePage(rep, countryAbbr, countryName, db_q, dc_q, db_a,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 seriesNames = {{'RS_', 'Short Term Interest Rate'}, ...
                {'RR_', 'Real Interest Rate'}, ...
diff --git a/tests/reporting/ResidTablePage.m b/tests/reporting/ResidTablePage.m
index c283429a0db649ba90ed408de7ce11cfffccdc5d..9a14bef42c855f53a214b4acc77c7d96f1ab726b 100644
--- a/tests/reporting/ResidTablePage.m
+++ b/tests/reporting/ResidTablePage.m
@@ -14,7 +14,7 @@ function rep = ResidTablePage(rep, countryAbbr, countryName, db_q, dc_q, trange,
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 seriesNames = {{'RES_RS_'}, ...
                {'RES_RR_BAR_'}, ...
diff --git a/tests/reporting/runDynareReport.m b/tests/reporting/runDynareReport.m
index 20450916ab203b85bd0e8c497edbcc215c4ef86e..02996c3332a8ef5a25d68d3ed73585c7ee2b718f 100644
--- a/tests/reporting/runDynareReport.m
+++ b/tests/reporting/runDynareReport.m
@@ -14,7 +14,7 @@ function runDynareReport(dc_a, dc_q, db_a, db_q)
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 tic
 larange= dates('2007a'):dates('2014a');
diff --git a/tests/run_all_unitary_tests.m b/tests/run_all_unitary_tests.m
index e9722569f8cef9fb2cf00579be0668f9087b89b6..37b192ad90da7ad0ed4c455447dc03bd302225d2 100644
--- a/tests/run_all_unitary_tests.m
+++ b/tests/run_all_unitary_tests.m
@@ -13,7 +13,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 top_test_dir = getenv('TOP_TEST_DIR');
 addpath([top_test_dir filesep '..' filesep 'matlab']);
diff --git a/tests/run_block_byte_tests_matlab.m b/tests/run_block_byte_tests_matlab.m
index 3765ef8572a8998cef1af6f7b2be8cf6efcdd71d..5fe94b3d2aac221798072cdc139f595e80570820 100644
--- a/tests/run_block_byte_tests_matlab.m
+++ b/tests/run_block_byte_tests_matlab.m
@@ -13,7 +13,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 % Implementation notes:
 %
diff --git a/tests/run_block_byte_tests_octave.m b/tests/run_block_byte_tests_octave.m
index 4ff8a1145a0929740bde661f2e4de7544b44285a..9c52eebbd1c8cb697927eaa485dd05c2ae7c4e13 100644
--- a/tests/run_block_byte_tests_octave.m
+++ b/tests/run_block_byte_tests_octave.m
@@ -13,7 +13,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ## Implementation notes:
 ##
diff --git a/tests/run_m_script.m b/tests/run_m_script.m
index 6085fd5d09ea02fbc50e0381ecf2669b8c6ee843..b8650ca1abc142c2ca2260911395a5dcaf653ebf 100644
--- a/tests/run_m_script.m
+++ b/tests/run_m_script.m
@@ -13,7 +13,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 top_test_dir = getenv('TOP_TEST_DIR');
 addpath([top_test_dir filesep 'utils']);
diff --git a/tests/run_o_script.m b/tests/run_o_script.m
index 6e0ec09fbbd304235254446d98651b92e9d12ee6..a4e665c06fd685be3e9d38ec9fec3485c29ac28a 100644
--- a/tests/run_o_script.m
+++ b/tests/run_o_script.m
@@ -13,7 +13,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 load_octave_packages
 
diff --git a/tests/run_reporting_test_matlab.m b/tests/run_reporting_test_matlab.m
index 5ab4e82b97363e56d8ebfa129a52fa48e9f12781..23dd54feb96e89b3b2234eee5d8baf913bce84be 100644
--- a/tests/run_reporting_test_matlab.m
+++ b/tests/run_reporting_test_matlab.m
@@ -13,7 +13,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 top_test_dir = getenv('TOP_TEST_DIR');
 addpath([top_test_dir filesep '..' filesep 'matlab']);
diff --git a/tests/run_reporting_test_octave.m b/tests/run_reporting_test_octave.m
index 2fdc085f1ef1ddb32803e01ecc877b700ea31af7..96ea7e35ac97ea2c226ca42bac3855f8e1e521a1 100644
--- a/tests/run_reporting_test_octave.m
+++ b/tests/run_reporting_test_octave.m
@@ -13,7 +13,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 load_octave_packages
 
diff --git a/tests/run_test_matlab.m b/tests/run_test_matlab.m
index 6873df9c4acd54ad75c7a55c672831198bae91fa..2f2cdbea4ba0aad5cb113ba4a2b0458bc8ebae49 100644
--- a/tests/run_test_matlab.m
+++ b/tests/run_test_matlab.m
@@ -13,7 +13,7 @@
 % GNU General Public License for more details.
 %
 % You should have received a copy of the GNU General Public License
-% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+% along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 top_test_dir = getenv('TOP_TEST_DIR');
 addpath([top_test_dir filesep 'utils']);
diff --git a/tests/run_test_octave.m b/tests/run_test_octave.m
index c6624dd6032538448c4051e3dc4753dc7d881aba..e628fa1880b806c50556aa793e4b13da463974a5 100644
--- a/tests/run_test_octave.m
+++ b/tests/run_test_octave.m
@@ -13,7 +13,7 @@
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+## along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 ## Implementation notes:
 ##
diff --git a/tests/shock_decomposition/example1_calib_shock_decomp.mod b/tests/shock_decomposition/example1_calib_shock_decomp.mod
index 73e15ebc9d000526519423ea13d5490fdb122c5e..07f0e6a8639508e15bc434fe12a6ec7b747231f2 100644
--- a/tests/shock_decomposition/example1_calib_shock_decomp.mod
+++ b/tests/shock_decomposition/example1_calib_shock_decomp.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/simul/Solow_no_varexo.mod b/tests/simul/Solow_no_varexo.mod
index f790061d0ec6b22d5018d7a77cea05231f36f096..42de8ec69cad656588b8e23254828c6f592f0b66 100644
--- a/tests/simul/Solow_no_varexo.mod
+++ b/tests/simul/Solow_no_varexo.mod
@@ -20,7 +20,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/steady_state/Gali_2015_chapter_6_4.mod b/tests/steady_state/Gali_2015_chapter_6_4.mod
index 64c5df3c05c35a371124759049cf6c9072b187dd..5d1b91a02d7107a513fc645a9dc535599b61474d 100644
--- a/tests/steady_state/Gali_2015_chapter_6_4.mod
+++ b/tests/steady_state/Gali_2015_chapter_6_4.mod
@@ -32,7 +32,7 @@
  * GNU General Public License for more details.
  *
  * For a copy of the GNU General Public License,
- * see <http://www.gnu.org/licenses/>.
+ * see <https://www.gnu.org/licenses/>.
  */
 
 %define whether to use interest rate or money growth rate rule 
diff --git a/tests/stochastic_simulations/example1_noprint.mod b/tests/stochastic_simulations/example1_noprint.mod
index 11d48a0cf3761b47dc10f26f76594abdada7f75c..8e7e453fbc66c37e458feae6977b05f70eee65f8 100644
--- a/tests/stochastic_simulations/example1_noprint.mod
+++ b/tests/stochastic_simulations/example1_noprint.mod
@@ -19,7 +19,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 
diff --git a/tests/trend_var/fs2000_log_nonstationary.mod b/tests/trend_var/fs2000_log_nonstationary.mod
index 51d9a7bdcbf26d775ee19ea560eb39032f20d4e2..38935b099188eafa4db7016df4b65b7527b9d6fa 100644
--- a/tests/trend_var/fs2000_log_nonstationary.mod
+++ b/tests/trend_var/fs2000_log_nonstationary.mod
@@ -23,7 +23,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var gM gA;
diff --git a/tests/trend_var/fs2000_nonstationary.mod b/tests/trend_var/fs2000_nonstationary.mod
index 575e0bb2e1abff6a927ddbdb06bf4fcaf337fc34..be1355b7e9a7bbb534c327d27789bc681d299433 100644
--- a/tests/trend_var/fs2000_nonstationary.mod
+++ b/tests/trend_var/fs2000_nonstationary.mod
@@ -23,7 +23,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 var gM gA;
diff --git a/windows/Makefile b/windows/Makefile
index 0bf0eac67b65718bd7168926bead924de957a301..8b0ba1abb67db78fb8924530bb11ab1d07fcb82e 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -13,7 +13,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 .PHONY: all deps clean-deps clean clean-all install build
 
diff --git a/windows/build.sh b/windows/build.sh
index d930f9624ae90eacfd327dddb23121724083a8db..07a7af5a0a063a2127bc7546e0549b3a3c984ae0 100755
--- a/windows/build.sh
+++ b/windows/build.sh
@@ -20,7 +20,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 # Exit on first error and print commands as they are executed
 set -ex
diff --git a/windows/deps/Makefile b/windows/deps/Makefile
index 487ff5c000659a9e7f1fa9c79a9ac6ffc5c8fd69..0eebb1a19002f86fdd2d183d44cd8abca5531493 100644
--- a/windows/deps/Makefile
+++ b/windows/deps/Makefile
@@ -13,7 +13,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 include versions.mk
 
diff --git a/windows/install-packages.sh b/windows/install-packages.sh
index db70175fcaa58b231ab3af55c52dc08b4b6a15e2..458942ba8f5a6a9e3e71a19f42a612c3cab93bd6 100755
--- a/windows/install-packages.sh
+++ b/windows/install-packages.sh
@@ -18,7 +18,7 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+# along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 [[ $(id -u) == 0 ]] || { echo "You must be root" >&2; exit 1; }