image thumbnail

updated 1 day ago

Solving Optimal Control Problems using Simscape Models for State Derivatives by Daniel Herber

This code replicates the results found in a tech report by the same name (brysondenham, design, control)

BrysonDenhamDerivative(t,y,u,p)

BrysonDenhamMain()

BrysonDenhamPlot(uMat,sMat,p)

image thumbnail

updated 22 days ago

Chebpack by Damian Trif

The MATLAB package Chebpack solves specific problems for differential or integral equations. (mathematics, differential equation..., integral equations)

A=fact(a,m)

B=Ex4_delay_main

Boussinesq.m

image thumbnail

updated 2 months ago

SaivDr Package by Shogo Muramatsu

System object definitions for sparsity-aware image (and volume data) restoration (image processing, nsolt, ista)

fcn_ksvdsdiclrn(params)

mytest(testCaseStr)

saivdr.dictionary.nsolt.mexsrcs.fcn_AtomConcatenationHori...

image thumbnail

updated 3 months ago

Sod_Shock_Tube.zip by Gogol

Computes the exact solution to Sod Shock Tube problem (aerospace, mathematics, test)

analytic_sod(t)

sod_func(P)

sod_demo.m

image thumbnail

updated 3 months ago

Hydraulic Valve Parameters From Data Sheets and Experimental Data by Steve Miller

Models and white paper on obtaining realistic parameter values from data sheets and measured data. (hydraulic, valve, optimization)

...

...

...

image thumbnail

updated 4 months ago

Another Particle Swarm Toolbox by Sam

Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. (optimization, particle swarm, pso)

...

...

...

image thumbnail

updated 7 months ago

Support Vector Regression by Ronnie Clark

A MATLAB implementation of Support Vector Regression (SVR). (regression, nonlinear, machine learning)

svr(xdata,ydata,x,alpha, b, c, epsilon)

svr_test.m

image thumbnail

updated 7 months ago

MATLAB for R Users in Computational Finance by Ameya Deoras

Learn how to use MATLAB and R together to tackle your computational needs (r, rstudio, time series)

blsapp()

blsbtyval(SpotPrice, StrikePrice, RiskFreeRate, ...

blsmaincall2(Request)

image thumbnail

updated 8 months 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 8 months 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 11 months ago

DirLOT Toolbox by Shogo Muramatsu

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

...

...

...

image thumbnail

updated 11 months 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

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

Light Field Toolbox v0.2 by Donald Dansereau

A set of tools for working with light field (aka plenoptic) imagery in Matlab (light field, plenoptic, lytro)

...

...

...

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

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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 almost 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 almost 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 almost 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

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

Optimal Component Selection Using the Mixed-Integer Genetic Algorithm by Seth DeLand

Use the mixed-integer genetic algorithm to solve an engineering design problem. (optimization, mixed integer, genetic algorithm)

ThOptimPlot(options,state,flag,Tdata,VData,Res,ThVal,ThBe...

objectiveFunction(x,StdRes, StdTherm_Val, StdTherm_Beta,T...

tempCompCurve(x,Tdata)

image thumbnail

updated 2 years ago

Knapsack problem by Hanan Kavitz

A well known combinatorial problem (knapsack problem, optimization, linear programming)

knapsackGA

image thumbnail

updated 2 years ago

OptimPID: an optimal PID controller design interface by Dingyu Xue

OptimPID is a MATLAB based interface and it can be used to optimize PID parameters (pid controller, optimum pid, optimal control)

multi_step.m

optimpid(varargin)

mod_1R2009b

image thumbnail

updated 2 years ago

Demo Files for "Optimizing Lookup Tables" Seminar by Teja Muppirala

Demo Files for "Optimizing Lookup Tables" Seminar (presented at MATLAB Expo 2011) (optimization, lookup tables)

makeplot(x, optimValues, state)

model(x,y)

mokuteki.m

image thumbnail

updated 2 years ago

Improving MATLAB® performance when solving financial optimization problems by Jorge Paloschi

Jorge Paloschi,PHD and Sri Krishnamurthy,CFA May 2011, http://www.wilmott.com/magazine.cfm (optimization, finance, symbolic)

OptimizationWithSymbolicToolboxDemo()

vectorize(s)

image thumbnail

updated almost 3 years ago

Improving the convergence of Nelder-Mead (and so fminsearch) by Emile Simon

This highlights a (common) trick to improve the convergence of NM, and a problem within fminsearch. (optimization, neldermead, algorithm)

nmsmax(fun, x, stopit, savit, varargin)

BenchmarkXSquared.m

image thumbnail

updated almost 3 years ago

Minimum settling time control design through direct search optimization methods by Emile Simon

New approach for designing controllers explicitely minimizing the settling time of a time response. (optimization, control design, settling time)

ClosedLoop(Sol2,Ap,B1,B2,C1,C2,D11,D12,D21)

DrawImpactParameters.m

Fprelim(vec,Ap,B1,B2,C1,C2,D11,D12,D21,range)

image thumbnail

updated almost 3 years ago

Fitting complex analytic laws to data by means of Genetic Algorithms by Lorenzo Luini

The script allows to easily fit predefined complex analytical laws using Genetic Algorithms (optimization, fit, analytical laws)

[coeff,RMSout]=FitLaw_GA(X,y,fh,Int,LB,UB)

image thumbnail

updated 3 years ago

Optimization Tips and Tricks by John D'Errico

Tips and tricks for use of the optimization toolbox, linear and nonlinear regression. (optimization, examples, tutorial)

[x,fval,exitflag,output]=fminsearchbnd(fun,x0,LB,UB,optio...

consolidator(x,y,aggregation_mode,tol)

expfitfun3(coef,xdata,ydata)

image thumbnail

updated 3 years ago

Managing Diversification by Attilio Meucci

Entropy-based mean-diversification efficient frontier (portfolio management, financial engineering, quantitative finance)

GenFirstEigVect(S,A)

MaxEntropy(G,w_b,w_0,Constr)

[E,L,G]=GenPCBasis(S,A)

image thumbnail

updated 3 years ago

Using MATLAB to Optimize Portfolios with Financial Toolbox by Bob Taylor

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

part1_plot(varargin)

PortfolioDemo

part1_intro.m

image thumbnail

updated 3 years ago

Hybrid Genetic Optimizer for Grey-box Model Identification by Jie Hu

Matlab code of a hybrid genetic optimizer for Grey-box Model Identification. (optimization, modeling, system identification)

Abs_RI( RI )

Avg_Func(S21_RI, Opt)

AxisLim_Func(Min_In, Max_In, division)

image thumbnail

updated 3 years ago

Robust Face Recognition via Sparse Representation - Implementation by B H Sri Hari

Implementation of Robust Face Recognition via Sparse Representation (face recognition, image processing, sparse representation)

FaceRecognitionTool(varargin)

image thumbnail

updated 3 years ago

Web Server Demo by Stefan Duprey

How to deploy a MATLAB® made application on a web server (optimization, deployment, compiler)

CelltowerGUI()

circlesIntersect(x)

circlesIntersect(x)

image thumbnail

updated 3 years ago

n-person game by Bapi Chatterjee

The function npg solves an n-person finite non-co-operative game to compute one Nash Equilibrium. (matrix game, nperson game, non co operative game)

gamer(n,Us,p,I,s,ub,lb,x0,Aeq,beq,pay,U)

npg(M,U)

image thumbnail

updated 3 years ago

Portfolio Optimizer Tool by Patric Schenk

Portfolio Optimizer Tool (data import, finance, gui)

portfoliotool(varargin)

ExcelReport

Portfolio

image thumbnail

updated 3 years ago

LinStats by Michael Boedigheimer

Statistical analysis (ANOVA,…) and plotting of fixed and mixed effects models using modern methods (statistics, gui, optimization)

blkrepmat( type, c, q )

center(X, V, dim)

coeff2eqn( coeffs, var_names, skipzeros, parens )

image thumbnail

updated 3 years ago

Complex fsolve by Leonidas Georgopoulos

Computes numerically complex solutions of a system of equations (complex, imaginary, optimisation)

[cfsol fsol fval exitflag output jacob ]=cfsolve(funhandl...

Contact us