Refine by Content Type

Refine by Time Frame

image thumbnail

updated 1 year ago

Optimization in MATLAB: An Introduction to Quadratic Programming by Seth DeLand

Files used in "An Introduction to Quadratic Programming" Webinar (optimization, quadratic programming, nonlinear optimizatio...)

Hess(in1)

calculateValue(s0,price,inFlow,turbFlow,spillFlow,C2A,n)

createPlots(turbFlow,spillFlow,inFlow,price,s0,C2A,n)

image thumbnail

updated 1 year ago

Natural Gas Storage Optimization & Intrinsic Valuation by Ameya Deoras

Calculate optimal injection/withdrawal schedules for gas storage facility (energy trading)

createConstraints(facility, N, daysInMonth, startVol, end...

monthDays(dates)

plotResults(solution, facility, startVol, endVol)

image thumbnail

updated 1 year ago

Neither "Normal" not "Lognormal": Modeling Interest Rates Across all Regimes by Attilio Meucci

Inverse Call Transformation to compute shadow rates (portfolio management, risk management, quantitative finance)

InverseCallTransformation(rates, tau, eta, zeta)

S_AnalyzeJGBrates.m

image thumbnail

updated 1 year ago

Bayesian Linear Classifier by James Barrett

Linear binary classification. (binary classification, linear separator, bayesian classificati...)

blc_Lw(w,alpha,model)

blc_initialise(X,sigma)

blc_predict(X,w,w0)

image thumbnail

updated 1 year ago

Algorithmic Trading | Moving Average Crossover Strategy with WFAToolbox by WFAToolbox

The classical technical analysis strategy for an advanced algorithmic trading GUI - WFAToolbox (finance, gui, trading)

MAcross_strategy(x,price)

image thumbnail

updated 1 year ago

Chen correlation wall temperature calculation by Danyal Mohaddes Khorassani

Calculation of pipe wall temperature using the 1963 Chen correlation for subcooled boiling flow (heat mass, thermodynamics, chen correlation)

WallTempCalc(A,B,C,Pin,guessPwall)

image thumbnail

updated 1 year ago

Algorithmic Trading with Bloomberg EMSX and MATLAB by Nicole Wilson

Files used in the webinar which can be viewed at http://www.optinum.co.za/webinars/contact_main.php (finance, demo, webinar)

constructTradingSignal(Data,M,N)

executeTrades(c, equity, signal)

generateSpacedInts(lb, ub, number)

image thumbnail

updated 1 year ago

Magnetic position sensing using Levenberg-Marquardt by Padraig

Levenberg-Marquardt is used to calculate 3D position of a 3DOF pick-up coil in a simulated field. (levenbergmarquardt, magnetic sensor, 3d position sensing)

magnetic_field_circular_coil(x,y,z,x_p,y_p,z_p)

objective_function(in)

demo.m

image thumbnail

updated 1 year ago

DirLOT Toolbox by Shogo Muramatsu

MATLAB class definitions for directional lapped orthogonal transforms (optimization, image processing, genlot)

...

...

...

image thumbnail

updated 1 year ago

Content Based Image Retrieval by Chez

Simple content based image retrieval for demonstration purposes. Either using knn or classification (image retrieval, content based image r..., classification)

L1(numOfReturnedImages, queryImageFeatureVector, dataset)

L2(numOfReturnedImages, queryImageFeatureVector, dataset,...

[obj, overall]=confMatPlot(confMat, opt)

image thumbnail

updated 1 year ago

Camera calibation from a nonrigid moving object by Philip Tresadern

Scripts and functions to demonstrate multiple camera calibration from nonrigidly moving objects. (computer vision, camera calibration, image processing)

assign_cons.m

bundle_affine.m

bundle_persp.m

image thumbnail

updated 1 year ago

SpinEchoMLE by Lee Potter

Maximum likelihood estimator for spin echo time decay constant. (signal processing, chemistry, physics)

SpinEchoMLE(Y,two_tau,Avg,x,opt)

SpinEchoPeakEst(Y,loc,two_tau,opt)

ExampleSpinEchoMLE.m

image thumbnail

updated 1 year ago

Efficient Multidimensional Scaling (MDS) by Quan Wang

The is the source code of iterated Levenberg-Marquardt algorithm (ILMA) for solving MDS (mathematics, optimization, pattern recognition)

CM=confusion_matrix_reorder(CM)

[X, total_cost]=MDS_training(Dist,d,iter,strategy,display...

[X2]=MDS_encoding(X1,Dist,display_flag)

image thumbnail

updated 1 year ago

Fit 2D Gaussian with Optimization Toolbox by Nathan Orloff

Fit a 2D rotated gaussian. http://en.wikipedia.org/wiki/Gaussian_function (image processing, optimization, signal processing)

fmgaussfit(xx,yy,zz)

image thumbnail

updated 1 year ago

Truss Design Optimization Based on Generative Algorithms by James Allison

Supplementary material for a WCSMO publication regarding truss design optimization. (structural design, aerospace, automotive)

D=TrussData(Coord, Con)

GAcon(x)

JacobianStresscal(D, Area)

image thumbnail

updated 1 year ago

MPCC Solution of Genetic Regulatory Circuit Design Problems by James Allison

Demonstration of a novel MPCC-based technique for solving gene circuit design problems. (optimization, simulation, biotech)

MPCC_con()

constraint(xd,p)

master_genecircuit()

image thumbnail

updated 1 year ago

CORE: Conceptual Optimization of Rotorcraft Environment by Sky Sartorius

Facilitates optimization and design space exploration in the conceptual design phase of rotorcraft. (helicopter, aerospace, rotorcraft)

...

...

...

image thumbnail

updated 1 year ago

Building and Extending Portfolio Optimization Models with MATLAB by sri

Object-oriented implementations of the Portfo and the Black-Litterman approach (portfolio optimizatio..., finance, object oriented progr...)

View(varargin)

compareWeights( ExcessHistoricalReturns, ExcessImpliedRet...

PortfolioBL

image thumbnail

updated 1 year ago

Trinomial tree calibration by Francesco Paolo Esposito

This function calibrates the Hull-White trinomial tree. (finance)

trintree_calswaption( Curve, V, Period, coin )

image thumbnail

updated 1 year ago

Table Breakpoint Optimization by Tucker McClure

A set of tools for finding the best way to reduce the size of a table. (fitting, tables, breakpoints)

find_best_table_1d(x_0, z_0, ...

find_best_table_1de(...

find_best_table_2d(...

image thumbnail

updated almost 2 years ago

Risk-neutral density recovery via spectral analysis by Matthias Held

Implementation of Monnier (2013) "RND recovery via spectral analysis" (finance, statistics, risk neutral density)

spectralrecovery(X,bid,ask,F,r,tau,nopt)

spectralExample.m

image thumbnail

updated almost 2 years ago

Lognormal Perfusion Model by John Hudson

Fit disruption replenishment time-intensity data with the lognormal perfusion model (dynamic contrast enha..., dceus, ceus)

Wsinc(x,HW,Delay,Amp);

logperf_fit(signal_dat,t_dat,HW,guess,iterations,Fast);

logperf_model(A,mu,sigma,HW,Delay,t,Fast)

image thumbnail

updated almost 2 years ago

Simultaneous Plant and Control Design of an Active Automotive Suspension Using Direct Transcription by James Allison

A toolbox for using Direct Transcription to perform combined plant and control design. (aerospace, automotive, control design)

...

calc_state_constraints(t, xd, xu, stateCon)

calc_zdot(x, z, v)

image thumbnail

updated almost 2 years ago

Cavendish Balance Experiment by Robert Kost

This function to used for the undergraduation Cavendish gravitational experiment. (cavendish, undergraduate physics..., cavendish data reduct...)

cavendish_ver_2

image thumbnail

updated almost 2 years ago

Filter Bank Design by Iman

This function can be used to design uniform and non-uniform filter banks. (filter bank, perfect reconstructio..., uniform filter bank)

A=A_gerenator(x,Beta,Sigma_dictionary,M)

Beta=Beta_dictionary(M,nk)

M=Find_LCM(x)

image thumbnail

updated almost 2 years ago

Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox by Deepak Ramaswamy

files from the webinar (symbolic, eigenvalues, poles)

JetThrust(t)

Mass(time, rocketStartTime, engineOffTime)

aerodynamicDrag(v)

image thumbnail

updated almost 2 years ago

Black and Shcoles calculator by Hanan Kavitz

Graphical Black and Shcoles calculator for visualizing different sensetives (bls, black and shcoles, gui)

blscalculator(varargin)

image thumbnail

updated 2 years ago

Mining Economics with MATLAB by David Willingham

Simulates a distribution of Net Present Values of a mine via a forecasting model for Iron Ore Prices (commodities, mining, economics)

FitNPV(NPV)

cashflow(data,NTrials,SYear)

discounting(data,capex,NTrials,sales,discFactorY,salesb)

image thumbnail

updated 2 years ago

Optimal Control Using Control Vector Parameterization by Chang Duan

An example of using control vector parameterization to solve an optimal control problem (optimal control, direct sequential met..., control vector parame...)

[topt,xopt,uopt,thetaopt]=plotopt1( x0,N,ts,dvarO,beta,rh...

[topt,xopt,uopt,thetaopt]=plotopt2( x0,N,ts,dvarO,beta,rh...

animateopt( topt,xopt,uopt,thetaopt,beta,N,rho )

image thumbnail

updated 2 years ago

Analyzing Investment Strategies with CVaR Portfolio Optimization by Bob Taylor

Scripts and data to demonstrate the new PortfolioCVaR object in Financial Toolbox. (finance, portfolio, optimization)

covered_engine(X, T, mu, sigma, ...

gbm_calibration(t0, X, t)

gbm_call_price(X0, K, r0, T, sigma)

image thumbnail

updated 2 years ago

Genetic Packman by Hanan Kavitz

A simple demonstration of Genetic Algorithm using all times favorite game. (optimization, global optimization, genetic algorithm)

[x,fval,exitFlag]=geneticPackman(cubeSize,numOfMoves,pack...

mutate_permutation(parents ,options,NVARS, ...

val=greedyPackman(field,numOfSteps)

image thumbnail

updated 2 years ago

Files for the 2012 Webinar "Tips and Tricks - Getting Started Using Optimization with MATLAB" by Seth DeLand

These are the files that were used for the demonstrations in the webinar. (optimization, global optimization, fmincon)

RunThermistorExample()

ThOptimPlotCircuit(options,state,flag,Tdata,VData,Res,ThV...

VEMap(x)

image thumbnail

updated 2 years ago

Regime Switching Model with Time Varying Transition Probabilities by Zhuanxin Ding

Code for estimating a Markov Regime Switching Model with time varying transition probabilities. (statistics, econometrics and stat...)

[Simul_Out]=MS_Regress_Sim(nr,Coeff,k,distrib)

[Spec_Out]=param2spec_tvtp(param,Spec_Tag,constCoeff,type...

[Spec_Output]=MS_Regress_Fit_tvtp(dep,indep,px,k,S,advOpt)

image thumbnail

updated 2 years ago

Matrix Decomposition by Aleksander

Positive definite correlation matrix based on spectral decomposition. Now both for .m, C and Mex (cholesky, decomposition, correlation matrix)

SpectralDP(Correlation)

image thumbnail

updated 2 years ago

Image reconstruction by Hanan Kavitz

The purpose of this demo is to reconstruct a simple picture of several polygons. (genetic algorithm, global optimization, image reconstruction)

[state,options,optchanged]=drawBestSolution(options,state...

mygaplotbestf(options,state,flag)

pop=create_func(NVARS,~,options)

image thumbnail

updated 2 years ago

Markowitz Efficient Frontier by Luca Beldi

Calculates the Markowitz Efficient Frontier (efficient frontier, mean standard deviati..., finance)

EfficientFrontier( Assets , NumPoints, LongOnly)

image thumbnail

updated 2 years ago

Dig_Filter by Iman

This toolbox can be used to design a filter which satisfies prescribed specifications. (signal processing, optimization, digital filter)

Dig_Filter.m

N=N_Dig_Filter(wa,wp,eps_p,eps_a)

[a1 a2 b1 b2]=random_stable_initial_points

image thumbnail

updated 2 years ago

Uniform Filter Bank by Iman

This function can be used to design a uniform filter bank with M subbands. (optimization, signal processing, uniform filter bank)

P=P_NPR(M,m,m1)

PR_Nguyen.m

[c,ceq]=confun(h)

image thumbnail

updated 2 years ago

Surrogate Model Optimization Toolbox by Julie

Surrogate model optimization algorithm for computationally expensive global optimization problems (global optimization, surrogate model, derivativefree)

BumpinessMinSampling(Data, maxeval, Surrogate, lambda, ga...

CandValue=PredictFunctionValues(Data,Surrogate,CandPoint,...

CandidatePointSampling(Data,maxeval,Surrogate,lambda,gamm...

image thumbnail

updated 2 years ago

Co-Blade: Software for Analysis and Design of Composite Blades by Danny Sale

Analysis and design of composite blades for wind and hydrokinetic turbines (wind turbine, hydrokinetic turbine, composite blade)

...

...

...

image thumbnail

updated 2 years ago

Fit distributions to censored data by Leonidas Bantis

Fits distributions to data when left and/or right and/or interval censoring is present (distribution, fit, censoring)

evfitc.m

expfitc.m

gamfitc.m

image thumbnail

updated 2 years ago

Accelerated Failure Time (AFT) models by Leonidas Bantis

Fits accelerated failure time models in the presence of right and/or left censoring. (accelerated failure t..., aft, survival analysis)

[pars covpars SE CI Zscores pvalues gval exitflag hess fm...

[pars covpars SE CI Zscores pvalues gval exitflag hess fm...

[pars covpars SE CI Zscores pvalues gval exitflag hess fm...

image thumbnail

updated 2 years ago

Efficient Frontier using different risk return measures by Saurabh Yadav

Code for finding optimal portfolios and plotting efficient frontier for diff. risk return measures (efficient frontier, portfolio optimizatio..., var)

Sharpe( weights )

mnvarratio( weights )

Efficient_frontiers.m

image thumbnail

updated 2 years ago

SCOPE: interactively tabulate SEER excel variables by Rex Cheung

This takes SEER excel column data interactively, tabulate them, write back in table format. (data import, data export, optimization)

output=xls2tabulate2xls(xlsfilename)

image thumbnail

updated 2 years ago

Unbounded Resolution for Function Approximation by Alan Jennings

A continuous function is optimized for varying outputs and increasing parameterization dimension (functional, optimization, interpolation)

[Cost_out,CostGrad]=CostFunc_lwr_8(Pnt,Opt)

[Out_out,OutGrad]=OutputFunc_lwr_8(Pnt,Opt)

[PointsOut]=Fmin_ConditionNum(CovIn,N,Opt)

image thumbnail

updated 2 years ago

Vapor compression cycle component models by Muhammad Tauha Ali

Modeling of vapor compression cycle components (vapor compression cyc..., heat exchanger, compressor)

[Tcout Pcondtubein balance1 xdesuper xcond econd Vair]=fi...

[Tevapout Pevapplatein Twaterout balance1 xevap eevap Vwa...

[Tevapout Pevaptubein balance1 xevap eevap Vair]=fintubee...

image thumbnail

updated 2 years ago

Estimation of Nelson-Siegel and Svensson Models by Kamil Kladivko

Estimation of zero yield curve from coupon bond prices by Nelson-Siegel or Svensson model. (finance, nelson siegel, svensson)

NScurve(Params, Tau, Model)

NSerror.m

NSest(Bonds, ShortRates, Model, Optimization)

image thumbnail

updated 2 years ago

Numerically Design Power Complementary IIR(FIR) Filter by Shamail

One iir filter is given, design power (or magnitude) complementary filter numerically (filter, iir fir, power)

costFunctionIIR(coeff1, coeff2, freqPoints)

mainIIR.m

image thumbnail

updated 2 years ago

Demo: Finding an Optimal Path Using MATLAB and Optimization Toolbox by Teja Muppirala

Solve the path planning problem of going through a vector field of wind in the least possible time. (optimization, path planning, flight path)

PathOptimizationDemo.m

WayPoints_To_Path(p,METHOD,sizeX,sizeY,fineness)

calculateTimeIntermediate(x,W_x,W_y,x0,y0,AirSpeed,sizeX,...

image thumbnail

updated 2 years ago

Function for global minimization of a concave function by Kammoun

Program for global minimization of a concave function. (global minimization, concave function, branch and bound)

[x_c,LB,UB,iter]=min_concave(f,h,gradient_h,S,n,p,epsilon...

fibonacciNumber(n)

fibonacciSearch(functionToMinimise, a, b, tolerance)

Contact us