plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
vigente/gerardus-master
fix_lines.m
.m
gerardus-master/matlab/ThirdPartyToolbox/ExportFigureToolbox/fix_lines.m
6,290
utf_8
8437006b104957762090e3d875688cb6
%FIX_LINES Improves the line style of eps files generated by print % % Examples: % fix_lines fname % fix_lines fname fname2 % fstrm_out = fixlines(fstrm_in) % % This function improves the style of lines in eps files generated by % MATLAB's print function, making them more similar to those seen on % screen. Grid ...
github
vigente/gerardus-master
conv_fft2.m
.m
gerardus-master/matlab/ThirdPartyToolbox/Conv2FFTToolbox/conv_fft2.m
4,610
utf_8
0bafe2cbdfaad645bd1b954b5c7fd63d
function y = conv_fft2(x, m, shape) %CONV_FFT2 Two dimensional convolution via the FFT. % Y = CONV_FFT2(X, M) performs the 2-D convolution of matrices X and M. % If [mx,nx] = size(X) and [mm,nm] = size(M), then size(Y) = % [mx+mm-1,nx+nm-1]. Values near the boundaries of the output array are % calculated as if ...
github
vigente/gerardus-master
exindex.m
.m
gerardus-master/matlab/ThirdPartyToolbox/Conv2FFTToolbox/exindex.m
9,558
utf_8
346f70c9838845286b1533cf6bcef65a
function arr = exindex(arr, varargin) %EXINDEX extended array indexing % ARROUT = EXINDEX(ARRIN, S1, S2, ...) indexes a virtual array made by % extending ARRIN with zeros in all directions, using subscripts S1, S2 % etc. % % ARROUT = EXINDEX(ARRIN, S1, R1, S2, R2, ...) extends ARRIN using rule % R1 on the fir...
github
vigente/gerardus-master
mirt3D_mexinterp.m
.m
gerardus-master/matlab/ThirdPartyToolbox/Mirt3DMexinterpToolbox/mirt3D_mexinterp.m
2,050
utf_8
d2620b5b36d39393e81a7af36fa3315e
%MIRT3D_MEXINTERP Fast 3D linear interpolation % % Output_image = mirt3D_mexinterp(Input_image, XI,YI,ZI) interpolates the 3D image 'Input_image' at % the points with coordinates X,Y,Z. Input_image is assumed to be defined at a regular grid 1:N, 1:M, 1:K, % where [M,N,K]=size(Input_images). Points outside t...
github
vigente/gerardus-master
tiffread.m
.m
gerardus-master/matlab/ThirdPartyToolbox/TiffreadToolbox/tiffread.m
25,857
utf_8
873fbad3339cea1dd5783370a831973d
function stack = tiffread(filename, indices) % TIFFREAD Reads 8,16,32 bits uncompressed grayscale and (some) color tiff % files, as well as stacks or multiple tiff images, for example those % produced by metamorph, Zeiss LSM or NIH-image % % tiffread, version 2.91 Nov 1, 2010 % % stack = tiffread; % stack = tiffread(f...
github
vigente/gerardus-master
opti_Install.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/opti_Install.m
8,427
utf_8
c26e784f52fff3679b43373dfc11e160
function opti_Install %% Installation File for OPTI % In order to run this tool, please run this file to setup the required % directories. You MUST be in the current directory of this file! % Copyright (C) 2012 Jonathan Currie (I2C2) cpath = cd; try cd('Utilities'); catch %#ok<CTCH> error('You don''t appea...
github
vigente/gerardus-master
VS_WriteProj.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Misc/VisualStudioBuilder/VS_WriteProj.m
20,118
utf_8
da4b9ccfece4f2154df7a38ac8feb1a9
function [projPath,guid] = VS_WriteProj(srcpath,projName,incpath,opts) %WRITEVS Create a Visual Studio Project from selected paths % % This function attempts to automatically create a Visual Studio Project % from a supplied source directory path (or paths). It works for me, but % may not for every project! Use w...
github
vigente/gerardus-master
VS_WriteSol.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Misc/VisualStudioBuilder/VS_WriteSol.m
4,625
utf_8
f204b4d15cd2d4670d04824a9c0ce94a
function solPath = VS_WriteSol(projStruct,toolset) %VS_WriteSol Create a Visual Studio Solution from Passed Project Structures % % This function attempts to automatically create a Visual Studio Solution % from supplied project description structures. if(~isstruct(projStruct)) error('The supplied argument must...
github
vigente/gerardus-master
VS_WriteFilters.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Misc/VisualStudioBuilder/VS_WriteFilters.m
4,200
utf_8
ac12576f37c119e98d26e36b9158ad37
function VS_WriteFilters(projPath,projName,upath,source,header) global fh; %Header docNode = com.mathworks.xml.XMLUtils.createDocument('Project'); p = docNode.getDocumentElement; p.setAttribute('ToolsVersion','4.0'); p.setAttribute('xmlns','http://schemas.microsoft.com/developer/msbuild/2003'); %Generate GUIDs cdir ...
github
vigente/gerardus-master
VS_BuildFileList.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Misc/VisualStudioBuilder/VS_BuildFileList.m
3,644
utf_8
550a1a0adb8911a4d8ac42dc2b5998aa
function [source,header] = VS_BuildFileList(directory,exFolder,mode) % Create a file list from a selected source directory. % Horribly memory inefficient code! Will think about rewriting if this % actually becomes useful to anyone. source = {}; j = 1; header = {}; k = 1; if(nargin < 2 || isempty(exFolder)) exFol...
github
vigente/gerardus-master
func2sym.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/Symbolic/func2sym.m
1,880
utf_8
d083120aa78e65e25e26b2e2b23da1c6
function [f,ind] = func2sym(fun,vars) %FUNC2SYM Convert a function handle to symbolic variable equation % % f = func2sym(fun) converts the function handle into a string, then % replaces any x(1) to x1, x(2) to x2, etc, and returns it as a symbolic % equation. % % [f,ind] = func2sym(fun) returns the indices of ...
github
vigente/gerardus-master
symPartialDer.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/Symbolic/symPartialDer.m
2,076
utf_8
b984f0f150df8602b1dfeac186350e8c
function symder = symPartialDer(symfun,var,ncol,ind,der2) %SYMPARTIALDER Solve for the Partial Derivative of a Supplied Symbolic Function % % jac = symPartialDer(fun,var) uses the symbolic toolbox to % automatically generate the partial derivative matrix of the symbolic % function fun. var specifies the variabl...
github
vigente/gerardus-master
sym2func.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/Symbolic/sym2func.m
1,511
utf_8
4e950dbbfcf6648c72556fc2dfc5384d
function f = sym2func(fun,args) %SYM2FUNC Convert a symbolic variable equation to function handle % % f = sym2func(fun) converts the symbolic equation into a string, then % replaces any x1 to x(1), x2 to x(2), etc, and returns it as a function % handle suitable for standard evaluation. % Copyright (C) 2013 Jo...
github
vigente/gerardus-master
symbset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/SymBuilder/symbset.m
4,868
utf_8
58d8ae5368ee2e40c2fd8785d05d1212
function options = symbset(varargin) %SYMBSET Create or alter the options for Optimization with SymBuilder % % options = symbset('param1',value1,'param2',value2,...) creates an % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the Sy...
github
vigente/gerardus-master
display.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/SymBuilder/@SymBuilder/display.m
4,167
utf_8
ceda95b9c994ae49bf4bd6b968896ce7
function displayBuilder(B) %Display Builder Problem Information % % Called By SYMBUILDER Class % Copyright (C) 2012 Jonathan Currie (I2C2) disp('------------------------------------------------------'); disp('SymBuilder Object'); %Display Based on Build Status switch(B.bldstat) case 'unbuilt' fprintf...
github
vigente/gerardus-master
buildMFun.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/SymBuilder/@SymBuilder/buildMFun.m
5,884
utf_8
55084b3700355f52e553936ae4a96e84
function buildMFun(name,mode,sobj,svar,opts) % BUILDMFUN Build a MATLAB function for nonlinear callbacks %Determine callback type switch(mode) case 'obj' title = 'Objective Function Callback'; fcall = sprintf('function j = %s(x)\n',name); var = 'j'; case 'grad' title = 'Objectiv...
github
vigente/gerardus-master
sym2fun.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/SymBuilder/@SymBuilder/sym2fun.m
1,172
utf_8
e0fdd03c7ca9e15b4c601dbdf3cb05c1
function fun = sym2fun(sobj,svar) % SYM2FUN Convert Symbolic Expression into Matlab Function Handle %Build cell array to store indexed vars ivar = convIndex(svar); %Subs out individual symbolic variables into our indexed list eq = subs(sobj,svar,ivar); %Build a MATLAB function str = char(eq); %Remove 'matrix' i...
github
vigente/gerardus-master
Results.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Differentiation/SymBuilder/@SymBuilder/Results.m
3,598
utf_8
285502e30fb5667fd64b4f5f127b5420
function res = Results(B,names) %RESULTS Pretty Print Results of a Solved SymBuilder Object if(isempty(B.Opt) || isempty(B.Opt.sol)) error('You cannot print results from an object which has not been solved!'); end fprintf('\n'); disp('------------------------------------------------------'); fprintf('SymBuilder ...
github
vigente/gerardus-master
csdpset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/csdpset.m
3,790
utf_8
91cafdef35f28a3062a64065d9139338
function options = csdpset(varargin) %CSDPSET Create or alter the options for Optimization with CSDP % % options = csdpset('param1',value1,'param2',value2,...) creates an CSDP % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the CSD...
github
vigente/gerardus-master
pswarmset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/pswarmset.m
2,383
utf_8
d4ecbf89d52a9f49576175da537d70f1
function options = pswarmset(varargin) %PSWARMSET Create or alter the options for Optimization with PSwarm % % options = pswarmset('param1',value1,'param2',value2,...) creates an % PSWARM options structure with the parameters 'param' set to their % corresponding values in 'value'. Parameters not specified will be set...
github
vigente/gerardus-master
ooqpset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/ooqpset.m
1,882
utf_8
650ce238159c8433157bef48572fe32a
function options = ooqpset(varargin) %OOQPSET Create or alter the options for Optimization with OOQP % % options = ooqpset('param1',value1,'param2',value2,...) creates an OOQP % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the OOQ...
github
vigente/gerardus-master
scipset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/scipset.m
1,850
utf_8
7463afb72c902aae151cc38793a67cd5
function options = scipset(varargin) %SCIPSET Create or alter the options for Optimization with SCIP % % options = scipset('param1',value1,'param2',value2,...) creates an SCIP % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the SCI...
github
vigente/gerardus-master
convIpopt.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/convIpopt.m
12,209
utf_8
536bc91422fd980780be99587b6561eb
function mprob = convIpopt(prob,opts) %CONVIPOPT Convert OPTI problem to IPOPT Nonlinear problem % % mprob = convIpopt(prob,opts) % Copyright (C) 2011 Jonathan Currie (I2C2) %Ensure all args passed if(nargin < 2) error('You must supply both the problem + options'); end if(~isstruct(prob) || ~isstruct(opts)) ...
github
vigente/gerardus-master
convBaron.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/convBaron.m
1,948
utf_8
43c4e30ca3d3491af98fba0effc376c3
function mprob = convBaron(prob,opts) %CONVBARON Convert OPTI problem to BARON Nonlinear problem % % mprob = convBaron(prob,opts) % Copyright (C) 2013 Jonathan Currie (I2C2) %Ensure all args passed if(nargin < 2) error('You must supply both the problem + options'); end if(~isstruct(prob) || ~isstruct(opts)) ...
github
vigente/gerardus-master
convMatlab.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/convMatlab.m
7,263
utf_8
e3b7cb75371ce54369f6bca677c82940
function mprob = convMatlab(prob,opts) %CONVMATLAB Convert OPTI problem to MATLAB Optimization Toolbox problem % % mprob = convMatlab(prob,opts) % Copyright (C) 2011 Jonathan Currie (I2C2) %Ensure all args passed if(nargin < 2) error('You must supply both the problem + options'); end if(~isstruct(prob) || ~is...
github
vigente/gerardus-master
ipoptset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/ipoptset.m
24,770
utf_8
7ee06db62340a0a218c9d7cca5731d73
function options = ipoptset(varargin) %IPOPTSET Create or alter the options for Optimization with IPOPT % % options = ipoptset('param1',value1,'param2',value2,...) creates an IPOPT % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to th...
github
vigente/gerardus-master
bonminset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/bonminset.m
16,289
utf_8
a79759dce1cbbef77121db54d09113b7
function options = bonminset(varargin) %BONMINSET Create or alter the options for Optimization with BONMIN % % options = bonminset('param1',value1,'param2',value2,...) creates an IPOPT % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set t...
github
vigente/gerardus-master
clpset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/clpset.m
3,425
utf_8
05921bf5c9bf1564a7ded974b9171ca2
function options = clpset(varargin) %CLPSET Create or alter the options for Optimization with CLP % % options = clpset('param1',value1,'param2',value2,...) creates an CLP % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the CLP % de...
github
vigente/gerardus-master
dsdpset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/dsdpset.m
3,857
utf_8
3cc053bee2ddd8fdaf20319ba8c365f9
function options = dsdpset(varargin) %DSDPSET Create or alter the options for Optimization with DSDP % % options = dsdpset('param1',value1,'param2',value2,...) creates an DSDP % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the DSD...
github
vigente/gerardus-master
nloptset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/nloptset.m
2,439
utf_8
2b61c823e0c4627e8477d19268701733
function options = nloptset(varargin) %NLOPTSET Create or alter the options for Optimization with NLOPT % % options = nloptset('param1',value1,'param2',value2,...) creates an NLOPT % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to th...
github
vigente/gerardus-master
convGMatlab.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/convGMatlab.m
3,702
utf_8
5284da3ef67f7bf538d41bf6e62b2918
function mprob = convGMatlab(prob,opts) %CONVGMATLAB Convert OPTI problem to MATLAB Global Optimization Toolbox problem % % mprob = convGMatlab(prob,opts) % Copyright (C) 2012 Jonathan Currie (I2C2) %Ensure all args passed if(nargin < 2) error('You must supply both the problem + options'); end if(~isstruct(pr...
github
vigente/gerardus-master
nloptSolver.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Configuration/nloptSolver.m
8,627
utf_8
8b409a7982f4cb0d1b0bd6f71d9eb96b
function [e,ineq,eq,uncon,glob,deriv,subprob] = nloptSolver(varargin) %NLOPTSOLVER Return enum for a NLOPT Solver % % [e,ineq,eq] = nloptSolver(name) returns the enumeration e, whether % the solver allows inequalities (ineq) and equality (eq) nonlinear % constraints. % % nloptSolver() prints a list of all enab...
github
vigente/gerardus-master
DNLS2NLS.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/DynamicOpt/DNLS2NLS.m
20,086
utf_8
fc9d53b602df3aaf2c2b3f9588855220
function prob = DNLS2NLS(prob,opts) %DNLS2NLS Converts a Dynamic NLS problem into a NLS problem % prob= DNLS2NLS(prob,opts) % Copyright (C) 2013 Jonathan Currie (I2C2) if(~isfield(prob,'type') || isempty(prob.type)) error('This function is not for user use, and should only be called from OPTI'); end %Get warn...
github
vigente/gerardus-master
optidynset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/DynamicOpt/optidynset.m
3,085
utf_8
c1d62b426f51196e258f0ed733bf22c2
function options = optidynset(varargin) %OPTIDYNSET Create or alter the options for Dynamic Optimization with OPTI % % options = optidynset('param1',value1,'param2',value2,...) creates an OPTI % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will ...
github
vigente/gerardus-master
opti_FindCplex.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Install/opti_FindCplex.m
2,702
utf_8
652632d2221d23e708f6df4e1da7a4b0
function [cplx_str,cplx_inc,cplx_lib,cplx_libname,cplx_ver] = opti_FindCplex() %Finds IBM ILOG CPLEX Libraries and returns path and version %Known CPLEX path locations (Modify to suit your system by adding to cell arrays, or create a new structure for other versions) CPLX125.x64 = {'C:\Program Files\IBM\ILOG\CPLEX_St...
github
vigente/gerardus-master
opti_FindMKL.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Install/opti_FindMKL.m
3,820
utf_8
2d9fb76865f7718c030fd3b8ce394c5f
function [mkl_link,mkl_forstr,mkl_inc,mkl_lib,mkl_cmplr,mkl_ver] = opti_FindMKL(seq) %Finds Intel MKL Libraries and returns path and version %Sequential build stuff if(nargin && strcmpi(seq,'seq')) seq = true; else seq = false; end %Known MKL path locations (Modify to suit your system by adding to cell arrays...
github
vigente/gerardus-master
opti_PreReqCheck.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Install/opti_PreReqCheck.m
4,494
utf_8
dd0f2a2eeb4df61cebeee0490ae89866
function str = opti_PreReqCheck(mode,verb) %Check for VC++ 2010 / VC++ 2012 on x86 and x64 systems if(nargin < 2), verb = 1; end if(nargin < 1), mode = 'VS2012'; end ROOTKEY = 'HKEY_LOCAL_MACHINE'; switch(lower(mode)) case {'2012','vs2012'} %VC++ 2012 Keys KEY32 = 'SOFTWARE\Wow6432Node\Microsoft\D...
github
vigente/gerardus-master
optiprob.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/optiprob.m
19,135
utf_8
1795f9d26a2df437f7c73bf8c3b487f3
function prob = optiprob(varargin) %OPTIPROB Create or alter a Problem for Optimization with OPTI % % problem = optiprob('param1',value1,'param2',value2,...) creates an OPTI % problem structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the OPTI ...
github
vigente/gerardus-master
checkSolver.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/checkSolver.m
25,443
utf_8
f8bae55476395a20102b8d7c4e01031d
function ret = checkSolver(instr,err) %CHECKSOLVER See if a solver is installed on your PC % % checkSolver() prints a list of OPTI interfaced solvers, their version % numbers and and whether they are available on your PC. % % checkSolver('matrix') prints a solver vs problem type matrix for % determining which ...
github
vigente/gerardus-master
optiset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/optiset.m
4,050
utf_8
8b420ee6116f4dbf03fe769dcd251873
function options = optiset(varargin) %OPTISET Create or alter the options for Optimization with OPTI % % options = optiset('param1',value1,'param2',value2,...) creates an OPTI % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set to the OPT...
github
vigente/gerardus-master
nrow2mix.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/nrow2mix.m
4,366
utf_8
ddeee2434c29bdb594e240c6c7d01165
function prob = nrow2mix(prob,warn,doJac) %NROW2MIX Convert Nonlinear Row bounds to Mixed Nonlinear Constraints % prob = nrow2mix(prob) % % e: -1 for <=, 0 for =, and 1 for >= % Copyright (C) 2012 Jonathan Currie (I2C2) if(nargin < 3), doJac = true; end if(nargin < 2), warn = 1; end %Assign common vars nl...
github
vigente/gerardus-master
opti2sedumi.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/opti2sedumi.m
2,305
utf_8
0d3bb99dbe83ca4961d423ab890d6cc0
function [At,b,c,K] = opti2sedumi(prob) %OPTI2SEDUMI Converts an OPTI Problem (f,A,b,sdcone) to SeDuMi Format % [At,b,c,K] = opti2sedumi(prob) % Copyright (C) 2013 Jonathan Currie (I2C2) %Check not already in sedumi format if(isfield(prob,'sdcone') && ~isempty(prob.sdcone) && isstruct(prob.sdcone)) At = getSDM...
github
vigente/gerardus-master
optiHessCheck.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/optiHessCheck.m
7,500
utf_8
b99da0372a14d436173f196490dda8e2
function ok = optiHessCheck(Hess,grad,Jac,x0,name,warn,pattern) %OPTIHESSCHECK Check User Supplied Hessian of the Lagrangian and Optionally Pattern against mklJac % % ok = optiHessCheck(Hess,grad,Jac,x0,name,warn,pattern) %Tolerance tol = 1e-3; %Default input args and checks if(nargin < 7), pattern = []; end if(na...
github
vigente/gerardus-master
optiDerCheck.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/optiDerCheck.m
4,468
utf_8
e256bbdcac56274c3a5b1ee84ff00cb7
function ok = optiDerCheck(fun,grad,x0,name,warn,pattern) %OPTIDERCHECK Check User Supplied Derivatives and Optionally Pattern against mklJac % % ok = optiDerCheck(fun,grad,x0,name,warn,pattern) %Tolerance tol = 1e-3; %Default input args and checks if(nargin < 6), pattern = []; end if(nargin < 5), warn = 1; end if...
github
vigente/gerardus-master
nestedfieldnames.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/nestedfieldnames.m
950
utf_8
7609256f4dc98085c4edefd9a7698a03
function fnames = nestedfieldnames(field,pre) %Return a cell array of strings containing nested structure args(recursive) fnames = {}; if(~isstruct(field)) error('This function only works on structures'); end fn = fieldnames(field); no = length(fn); if(no < 1) error('The supplied structure must have at least on...
github
vigente/gerardus-master
QCQP2NLP.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/QCQP2NLP.m
2,769
utf_8
5901f03f896b22605f625356accb9c14
function [prob,opts] = QCQP2NLP(prob,opts) %QCQP2NLP Converts a LP / BILP / MILP / QCQP / MIQP / MIQCQP to NLP / MINLP % [prob,opts] = QCQP2NLP(prob,opts) % Copyright (C) 2012 Jonathan Currie (I2C2) if(~isfield(prob,'type') || isempty(prob.type)) error('This function is not for user use, and should only be cal...
github
vigente/gerardus-master
optiBench.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/opti/optiBench.m
3,842
utf_8
f5f431cc5f9570e0f50f156f523676ef
function varargout = optiBench(varargin) %OPTIBENCH Benchmark a problem type against all available solvers % % optiBench(type) runs all available solvers for a given problem type % (e.g. LP, MILP) against all test problems. % % optiBench(type,no) specifies the maximum number of test problems to % run. If emp...
github
vigente/gerardus-master
optiReadMPS.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/File IO/optiReadMPS.m
13,891
utf_8
c6eb73ad9af79d092c93979b67203ebc
function prob = optiReadMPS(filename) %OPTIREADMPS Read an MPS/QPS file and convert to Matlab Values % % prob = optiReadMPS(filename) reads the file specified by filename and % converts it to an optiprob. If you do not specify a file a extension, it % will default to .mps, otherwise you can read .mps or .qps files usi...
github
vigente/gerardus-master
amplRead.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/File IO/amplRead.m
8,625
utf_8
ec1b97a84bcc02e985457b0d7d7b3041
function [prob,p] = amplRead(filename,extraArgs,amplPath,isNLP) %AMPLREAD Read an AMPL File and converts it to Matlab Values / Functions % % prob = amplRead(filename) reads the .nl or .mod file specified by filename % and converts it to an optiprob. If the file is a .mod the AMPL executable % is used to convert it to...
github
vigente/gerardus-master
optiWriteSDPA.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/File IO/optiWriteSDPA.m
6,971
utf_8
2377d02e0992d75876ab2e32f3717db5
function p = optiWriteSDPA(filename,f,A,b,lb,ub,sdcone,dense) %OPTIWRITESDPA Write an SDPA (.dat-s or .dat) file from Matlab Values % % optiWriteSDPA(filename,f,A,b,lb,ub,sdcone) writes the sparse SDPA file % specified by filename and f (objective), A,b, (linear inequalities), lb,ub % (bounds) and sdcone (semidefini...
github
vigente/gerardus-master
gamsWrite.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/File IO/gamsWrite.m
13,796
utf_8
fd6d5a9c724db0319863bdf4b32660e5
function gamsWrite(prob,filename) %gamsWrite Write a GAMS Model from MATLAB data % % gamsWrite(prob,filename) writes the OPTI problem to a GAMS model (.gms) % and optionally a GDX file if SCIP is not used. % % You may specify a full path to the file, or if you specify a filename % only, it will be written to the curre...
github
vigente/gerardus-master
detGrad.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Matlab Overloads/detGrad.m
957
utf_8
f8489d3f7ecfa5d124498d4b687bafe1
function [f,g] = detGrad(fun,x0,xdata) %DETGRAD Determine whether supplied function contains gradient information % Copyright (C) 2011 Jonathan Currie (I2C2) %Sort out gradient (unfortunately rather inefficient) no = nargout(fun); if(no == 1) f = fun; g = []; elseif(no == 2) f = @(x) fval(fun,x); ...
github
vigente/gerardus-master
detNlcon.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Matlab Overloads/detNlcon.m
542
utf_8
0e11bb4a90541a2cff65d475da163071
function [nlcon,nlrhs,nle] = detNlcon(nonlcon,x0) %DETNLCON Determine OPTI format Nonlinear Constraints % Copyright (C) 2011 Jonathan Currie (I2C2) %Sort out nonlinear constraints (unfortunately rather inefficient) if(isempty(nonlcon)) nlcon = []; nlrhs = []; nle = []; return; end [in,eq] = nonlcon(x0); n...
github
vigente/gerardus-master
plotOptiProb.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Plots/plotOptiProb.m
6,151
utf_8
aa9806b30a6ff1edc2ab3ed1b47f87ee
function plotOptiProb(prob,opts,xb,scale,dolog,npts,mode) %PLOTOPTIPROB Plot opti problem optimization surface with constraints % % plotOptiProb(prob,xb,scale) plots a contour plot of the optimization % surface where prob is an optiprob structure. xb is the solution vector, % and scale zooms the plot. % Copyr...
github
vigente/gerardus-master
plotMultiSearch.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Utilities/Plots/plotMultiSearch.m
2,335
utf_8
39640eb9c5ee6b783ec0d2ecafea29a4
function plotMultiSearch(prob,data) %PLOTMULTISEARCH Plot Multi-Start Search Space lbnd = prob.multi.lbnd; ubnd = prob.multi.ubnd; lbnd2 = prob.multi.lbnd2; ubnd2 = prob.multi.ubnd2; x_search = prob.multi.x_search; f_search = prob.multi.f_search; x_search2 = prob.multi.x_search2; f_search2 = prob.multi.f_search2; x_s...
github
vigente/gerardus-master
checkOptiSol.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/@opti/checkOptiSol.m
6,013
utf_8
7f51ef3e099bffb60c6b35eb0f8cdf74
function [ok,msg] = checkOptiSol(optObj,tol) %CHECKOPTISOL Check the solution to an optimization for errors % % Called by OPTI / checkSol % Copyright (C) 2011 Jonathan Currie (I2C2) ok = 1; msg = sprintf('Solver Status:'); if(nargin < 2), tol = 1e-6; end lintol = tol; quadtol = tol; nllintol = to...
github
vigente/gerardus-master
buildOpti.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/@opti/buildOpti.m
51,640
utf_8
14dedd30be2cd4e10e2850aa4ec80b1d
function [prob,opts] = buildOpti(varargin) %Build an OPTI object % % Called By OPTI Constructor % Copyright (C) 2011-2012 Jonathan Currie (I2C2) %API Change to make optiprob redundant (1/5/12) [prob,opts] = exPrbOpts(varargin{:}); %Check and correct problem size and setup errors [prob,opts] = checkOpt...
github
vigente/gerardus-master
solveOpti.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/@opti/solveOpti.m
20,741
utf_8
6f87d52c1249428e70a229031df1a515
function [x,fval,exitflag,info] = solveOpti(optObj,x0) %SOLVE an OPTI object % % Called By opti Solve % Copyright (C) 2011-2013 Jonathan Currie (I2C2) %Allocate input args prob = optObj.prob; opts = optObj.opts; nl = optObj.nlprob; %Check for solving via AMPL alone if(prob.ampl.useASL && ~isempty(p...
github
vigente/gerardus-master
multiSolveOpti.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/@opti/multiSolveOpti.m
15,187
utf_8
e1f649f0f8ca380a35a0e0e6fbbf238a
function [x,fval,exitflag,info] = multiSolveOpti(optObj,user_x0,ndivs,penalty,solveAll) %MULTISOLVESOPTI an OPTI object % % Called By opti multisolve % Very basic and naive implementation of a multi-start solver, using % pretty much an exhaustive search. However it has been very useful on % problems whe...
github
vigente/gerardus-master
buildConfig.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/@opti/buildConfig.m
34,842
utf_8
d5a41527345c13becf4c4e700760718f
function [prob,opts,nlprob] = buildConfig(prob,opts) %BUILDCONFIG Setup Solver Dependent Configuration % % This function builds the problem and options configuration suitable for % solving a problem with a specified solver. It is not designed to be % called by the user. % Copyright (C) 2011 Jonathan Cu...
github
vigente/gerardus-master
testProblem.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/@opti/testProblem.m
3,536
utf_8
f9bfa78673d2085cfdb7613392e6a0f7
function [tstop,res] = testProblem(optObj,solvers) %TESTPROBLEM Test an OPTI Problem against all available solvers % % [times,results] = testProblem(optObj) runs the supplied OPTI problem % against all available solvers for the given problem type. % % [times,results] = testProblems(optObj,solvers) runs onl...
github
vigente/gerardus-master
examplehs038.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/examplehs038.m
2,544
utf_8
f3bb807d1f00d1e9805debf9f63341e3
% Test the "ipopt" Matlab interface on the Hock & Schittkowski test problem % #38. See: Willi Hock and Klaus Schittkowski. (1981) Test Examples for % Nonlinear Programming Codes. Lecture Notes in Economics and Mathematical % Systems Vol. 187, Springer-Verlag. % % Copyright (C) 2008 Peter Carbonetto. All Rights Reserved...
github
vigente/gerardus-master
examplehs051.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/examplehs051.m
2,029
utf_8
8d5dd0450d9974af1ab8d426b6e561fc
% Test the "ipopt" Matlab interface on the Hock & Schittkowski test problem % #51. See: Willi Hock and Klaus Schittkowski. (1981) Test Examples for % Nonlinear Programming Codes. Lecture Notes in Economics and Mathematical % Systems Vol. 187, Springer-Verlag. % % Copyright (C) 2008 Peter Carbonetto. All Rights Reserved...
github
vigente/gerardus-master
examplehs071.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/examplehs071.m
2,355
utf_8
43b7820bab7b701f36f625fa5a0401e2
% Test the "ipopt" Matlab interface on the Hock & Schittkowski test problem % #71. See: Willi Hock and Klaus Schittkowski. (1981) Test Examples for % Nonlinear Programming Codes. Lecture Notes in Economics and Mathematical % Systems Vol. 187, Springer-Verlag. % % Copyright (C) 2008 Peter Carbonetto. All Rights Reserved...
github
vigente/gerardus-master
lasso.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/lasso.m
3,102
utf_8
0bc685952603b0c5d3dc756e6442163c
% This function executes IPOPT to find the maximum likelihood solution to % least squares regression with L1 regularization or the "Lasso". The inputs % are the data matrix A (in which each row is an example vector), the vector % of regression outputs y, and the penalty parameter lambda, a number % greater than zero. T...
github
vigente/gerardus-master
computeJGConstraints.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/computeJGConstraints.m
1,577
utf_8
fcbf285f4d5b9956f41c8f3507f1ec0b
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function g = computeJGConstraints (qR, qS, auxdata) [K C f Rv Rf Sv ...
github
vigente/gerardus-master
reshapemarginals.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/reshapemarginals.m
772
utf_8
c3d546bc40396a1522e27e234b6de0db
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function qR = reshapemarginals (q, R, K) nr = length(R); % The num...
github
vigente/gerardus-master
vectorize.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/vectorize.m
522
utf_8
9a1daa95f59125c59f9d1bb72b527a7a
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function v = vectorize (cells) n = length(cells); % The number of ce...
github
vigente/gerardus-master
multiplyfactors.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/multiplyfactors.m
1,840
utf_8
9ce6382364868258118561ddfbfba70b
% MULTIPLYFACTORS(FR,R,FS,S) returns the pointwise product of factors FR % and FS defined on sets R and S, respectively. We require that S be a % (non-strict and non-empty) subset of R. The resulting factor is defined % on set R. % % Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published un...
github
vigente/gerardus-master
spzeros.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/spzeros.m
309
utf_8
9bd459dc54e55be61e0d09b24a0b2db8
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function A = spzeros (m, n) A = sparse([],[],[],m,n,0);
github
vigente/gerardus-master
computeJGObjective.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/computeJGObjective.m
1,728
utf_8
b68faef636bce2a9aafeb726698dd092
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function F = computeJGObjective (qR, qS, auxdata) [K C f Rv Rf Sv Sf ...
github
vigente/gerardus-master
bopt.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/bopt.m
2,844
utf_8
cffff0b9e970246f48e4bd0371c84b2c
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function qR = bopt (K, C, f, Rv, Rf, Sv, Sf, NS, verbose) maxiter =...
github
vigente/gerardus-master
genericcallback.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/genericcallback.m
318
utf_8
ee6e4c5147c8eccbf37a03acf7427a5a
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function callbackHS038 (t, f, x) fprintf('%3d %0.3g \n', t, f);
github
vigente/gerardus-master
computeJGHessian.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/computeJGHessian.m
1,724
utf_8
0b5f22c975d54188653be6e7b346a666
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function H = computeJGHessian (qR, qS, sigma, lambda, ... ...
github
vigente/gerardus-master
computeJGGradient.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/computeJGGradient.m
1,460
utf_8
e5130101400415db3761724644e885a8
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function [dR, dS] = computeJGGradient (qR, qS, auxdata) [K C f Rv Rf ...
github
vigente/gerardus-master
margfactor.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/margfactor.m
1,220
utf_8
2be4ab67aee160ee7d57597298a6d7ba
% MARGFACTOR(F,R,S) takes as input a factor F defined on set R, and % another set S which must be a (non-strict and non-empty) subset of % R. The return value is a factor defined on the set S. % % Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Au...
github
vigente/gerardus-master
computeJGJacobian.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/ipopt/distribution/examples/bayesnet/computeJGJacobian.m
5,248
utf_8
e0bfde2e7dfa65d34c63c36dd48d9405
% Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. % This code is published under the Eclipse Public License. % % Author: Peter Carbonetto % Dept. of Computer Science % University of British Columbia % May 19, 2007 function J = computeJGJacobian (qR, qS, returnStructureOnly, auxdata) ...
github
vigente/gerardus-master
gammarnd.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lbfgsb/distribution/gammarnd.m
439
utf_8
6286f2e45c73973f1eb84325706d5978
% GAMMARND(A) produces a single random deviate from the Gamma % distribution with mean A and variance A. function x = gammarnd (a) reject = true; while reject y0 = log(a)-1/sqrt(a); c = a - exp(y0); y = log(rand).*sign(rand-0.5)/c + log(a); f = a*y-exp(y) - (a*y0 - exp...
github
vigente/gerardus-master
opti_cbc.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/cbc/opti_cbc.m
3,334
utf_8
fffdbfd56ce2420f81269e4755fb94b6
function [x,fval,exitflag,info] = opti_cbc(f,A,rl,ru,lb,ub,xtype,sos,opts) %OPTI_CBC Solve a MILP using CBC % % min f'*x subject to: rl <= A*x <= ru % x lb <= x <= ub % for i = 1..n: xi in Z % for j = 1..m: xj...
github
vigente/gerardus-master
opti_lpsolve.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lp_solve/opti_lpsolve.m
4,705
utf_8
68498146e7fc16f00ab816b8425ce934
function [x,fval,exitflag,info] = opti_lpsolve(f,A,b,Aeq,beq,lb,ub,int,sos,opts) %OPTI_LPSOLVE Solve a LP or MILP using LP_SOLVE % % [x,fval,exitflag,info] = opti_lpsolve(f,A,b,Aeq,beq,lb,ub,int,sos) solves % the linear program min f'x where A,b are the inequality constraints, Aeq, % beq are the equality constra...
github
vigente/gerardus-master
lp_maker.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lp_solve/distribution/lp_maker.m
2,307
utf_8
7c676edf3ffa0c82daefc48048b37bba
%LP_MAKER Makes mixed integer linear programming problems. % % SYNOPSIS: lp_handle = lp_maker(f,a,b,e,vlb,vub,xint,scalemode,setminim) % make the MILP problem % max v = f'*x % a*x <> b % vlb <= x <= vub % x(int) are integer % % ARGUMENTS: The first four arguments are required: %...
github
vigente/gerardus-master
lp_solve_obs.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lp_solve/distribution/lp_solve_obs.m
3,153
utf_8
45986aa5fed428e62f697e2a3ea31ee3
%LP_SOLVE Solves mixed integer linear programming problems. % % SYNOPSIS: [obj,x,duals,stat] = lp_solve(f,a,b,e,vlb,vub,xint,scalemode,keep) % % solves the MILP problem % % max v = f'*x % a*x <> b % vlb <= x <= vub % x(int) are integer % % ARGUMENTS: The ...
github
vigente/gerardus-master
ls_miip.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lipsol/ls_miip.m
12,817
utf_8
e123196a0b7e751318e947cc9d0a8217
function [x,y,z,s,w,info] = ls_miip(A,b,c,ub,opts) % MIIP - Main program for MIIP algorithm. % Yin Zhang, January, 1995 % Department of Mathematics and Statistics % University of Maryland Baltimore County % Modified J.Currie AUT May 2013 global probData verb = opts.verb; if(verb), fprintf('\n<<<<< This is t...
github
vigente/gerardus-master
lipsolset.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lipsol/lipsolset.m
2,741
utf_8
53f9b8c92262eb9356c350678476e3ee
function options = lipsolset(varargin) %LIPSOLSET Create or alter the options for Optimization with LIPSOL % % options = lipsolset('param1',value1,'param2',value2,...) creates an LIPSOL % options structure with the parameters 'param' set to their corresponding % values in 'value'. Parameters not specified will be set ...
github
vigente/gerardus-master
ls_stopping.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lipsol/ls_stopping.m
2,112
utf_8
d4859e0f0b4c654a3965179d7839b484
function [stop, converged] = ls_stopping(tol) % Yin Zhang, April, 1995 % Department of Mathematics and Statistics % University of Maryland Baltimore County % Modified J.Currie AUT May 2013 global probData Hist = probData.Hist; stop = 0; converged = 0; probData.message = []; iter = size(Hist,2); trerror = Hist(1,it...
github
vigente/gerardus-master
lipsol.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/lipsol/lipsol.m
5,163
utf_8
5dd78a627f3fccc1ee11aae48cc15274
function [xsol,objp,info,msg,times,x,y,z,s,w] = lipsol(A,b,c,lb,ub,opts) % LIPSOL - Main program for LIPSOL % Yin Zhang, January, 1995 % Department of Mathematics and Statistics % University of Maryland Baltimore County % Modified J.Currie AUT May 2013 global probData if(nargin < 6) opts = lipsolset; ...
github
vigente/gerardus-master
opti_cplex.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/cplex/opti_cplex.m
7,505
utf_8
8a9da0d03dd40cca417a996b22749d07
function [x,fval,exitflag,info] = opti_cplex(H,f,A,rl,ru,lb,ub,xint,sos,qc,x0,opts) %OPTI_CPLEX Solve a LP/MILP/QP/MIQP/QCQP/MIQCQP using CPLEX % % min 0.5*x'*H*x + f'*x subject to: rl <= A*x <= ru % x qrl <= x'Q'x + l'x <= qru % ...
github
vigente/gerardus-master
convertf.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/csdp/distribution/matlab/convertf.m
1,437
utf_8
0b4046d80e4b28167468bb63068caa95
% % [A,b,c,K]=convertf(A,b,c,K) % % converts free variables in a SeDuMi problem into nonnegative LP variables. % function [A,b,c,K]=convertf(A,b,c,K) % % Get the number of constraints. % m=length(b); % % Deal with the following special case. If A is transposed, transpose % it again so that it is of the right size. %...
github
vigente/gerardus-master
writesol.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/csdp/distribution/matlab/writesol.m
3,569
utf_8
284aba6bc74617f04a8a5f0a2fc2f40c
% % writesol(fname,x,y,z,K) % % Writes out a solution file in the format used by CSDP and % readsol. % % fname File name to read solution from. % x,y,z Solution. % K structure of the matrices. % % % function ret=writesol(fname,x,y,z,K); % % First, eliminate special cases that we don't handle. % ...
github
vigente/gerardus-master
csdp.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/csdp/distribution/matlab/csdp.m
5,774
utf_8
2fb0c4a11d80410075be952220c3c882
% % [x,y,z,info]=csdp(At,b,c,K,pars,x0,y0,z0) % % Uses CSDP to solve a problem in SeDuMi format. % % Input: % At, b, c, K SDP problem in SeDuMi format. % pars CSDP parameters (optional parameter.) % x0,y0,z0 Optional starting point. % % Output: % % x, y, z ...
github
vigente/gerardus-master
readsol.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/csdp/distribution/matlab/readsol.m
3,712
utf_8
47653eea25fcde6b27811c335d3a899b
% % [x,y,z]=readsol(fname,K,m) % % fname File name to read solution from. % K structure of the matrices. % m size of y vector. % % Modified 7/15/04, for greater MATLAB acceleration. % function [x,y,z]=readsol(fname,K,m) % % First, eliminate special cases that we don't handle. % % % Check fo...
github
vigente/gerardus-master
writesdpa.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/csdp/distribution/matlab/writesdpa.m
7,494
utf_8
c69970c8f2852fcc152f9eaa983d982c
% This function takes a problem in SeDuMi MATLAB format and writes it out % in SDPA sparse format. % % Usage: % % ret=writesdpa(fname,A,b,c,K,pars) % % fname Name of SDPpack file, in quotes % A,b,c,K Problem in SeDuMi form % pars Optional parameters. % ...
github
vigente/gerardus-master
readsdpa.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/csdp/distribution/matlab/readsdpa.m
3,062
utf_8
1801da4521b127a71051894d685de254
% % [At,b,c,K]=readsdpa(fname) % % Reads in a problem in SDPA sparse format, and returns it in SeDuMi % format. % % 7/20/07 Modified to handle comments and other cruft in the SDPA % file. In particular, % % 1. Initial comment lines beginning with " or * are ignored. % 2. In the first three lines, any extraneou...
github
vigente/gerardus-master
opti_glpk.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/glpk/opti_glpk.m
4,055
utf_8
9f0e98ba7e7b6268899d4c8ca2e8ef87
function [x,fval,exitflag,info] = opti_glpk(f,A,b,Aeq,beq,lb,ub,int,opts) %OPTI_GLPK Solve a LP using the GLPK % % [x,fval,exitflag,info] = opti_glpk(f,A,b,Aeq,beq,lb,ub,int) solves the % linear program min f'x where A,b are the inequality constraints, Aeq,beq % are the equality constraints and lb,ub are t...
github
vigente/gerardus-master
qpsolng.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/glpk/distribution/qpsolng.m
2,561
utf_8
c4826d8d8a8ce1ec539d09ec78811f55
% Core QP Solver. Use qpng.m instead. % % This routine solves the following optimization problem: % % min_x .5x' H x + q' x % s.t. Aeq x = beq % Ain x <= bin % % note that x0 is a feasible starting point. % % (C) Nicolo Giorgetti, 2006. function [x, lam, k, status]=qpsolng(H, q, Aeq, beq, Ain, bin, ...
github
vigente/gerardus-master
glpkmex.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/glpk/distribution/glpkmex.m
3,052
utf_8
33b5f8ff88c0469e04a4e77cd09ef9da
% ***OBSOLETE*** GLPKMEX interface. Use glpk instead. % % [xmin,fmin,status,extra]=glpkmex(sense,c,a,b,ctype,lb,ub,vartype,param,lp,solver,save) % % This function is provided for compatibility with the old Matlab % interface to the GNU GLPK library. You should use the glpk function % instead. % % See also: glpk, qpn...
github
vigente/gerardus-master
glpk_obs.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/glpk/distribution/glpk_obs.m
20,477
utf_8
daabe083b506cee47c342880b229d105
% Matlab MEX interface for the GLPK library % % [xopt, fmin, status, extra] = glpk (c, a, b, lb, ub, ctype, vartype, % sense, param) % % Solve an LP/MILP problem using the GNU GLPK library. Given three % arguments, glpk solves the following standard LP: % % min C'*x subject to A*x <= b % % but may also solve problems...
github
vigente/gerardus-master
opti_scipnl.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/scip/opti_scipnl.m
7,848
utf_8
6c62a959d8b9e0a6eccb7a021099b240
function [x,fval,exitflag,info] = opti_scipnl(fun,A,rl,ru,lb,ub,nlcon,cl,cu,xint,x0,opts) %OPTI_SCIPNL Solve a NLP/MINLP using SCIP to Global Optimality % % min fun(x) subject to: rl <= A*x <= ru % x lb <= x <= ub % ...
github
vigente/gerardus-master
opti_scipasl.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/scip/opti_scipasl.m
2,281
utf_8
67f8726d8b9e37c1a79981aaf0ff0588
function [x,fval,exitflag,info] = opti_scipasl(file,opts) %OPTI_SCIPASL Solve a NLP/MINLP using SCIP to Global Optimality using the % AMPL Interface % % min fun(x) subject to: rl <= A*x <= ru % x lb <= x <= ub % ...
github
vigente/gerardus-master
opti_scip.m
.m
gerardus-master/matlab/ThirdPartyToolbox/OptiToolbox/Solvers/scip/opti_scip.m
4,187
utf_8
4af07f99f424d363e08311d55e32dacb
function [x,fval,exitflag,info] = opti_scip(H,f,A,rl,ru,lb,ub,xint,sos,qc,opts) %OPTI_SCIP Solve a LP/MILP/QP/MIQP/QCQP/MIQCQP using SCIP % % min 0.5*x'*H*x + f'*x subject to: rl <= A*x <= ru % x qrl <= x'Qx + l'x <= qru % ...