diff scripts/deprecated/glpkmex.m @ 12304:c16ce72e0a22 release-3-4-x

Deprecate glpkmex function and remove from documentation.
author Rik <octave@nomad.inbox5.com>
date Sun, 30 Jan 2011 07:52:36 -0800
parents scripts/optimization/glpkmex.m@39bf9ee145a8
children
line wrap: on
line diff
copy from scripts/optimization/glpkmex.m
copy to scripts/deprecated/glpkmex.m
--- a/scripts/optimization/glpkmex.m
+++ b/scripts/deprecated/glpkmex.m
@@ -26,6 +26,13 @@
 
 function [xopt, fopt, status, extra] = glpkmex (varargin)
 
+  persistent warned = false;
+  if (! warned)
+    warned = true;
+    warning ("Octave:deprecated-function",
+             "glpkmex is obsolete and will be removed from a future version of Octave; please use glpk instead");
+  endif
+  
   ## If there is no input output the version and syntax
   if (nargin < 4 || nargin > 11)
     print_usage ();