Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/kraketm/ConstrainedDMD
06 August 2026, 14:24:23 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    No releases to show
  • e660bed
  • /
  • replication
  • /
  • replication_fig_10.m
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:e526ceac32ac850ce09bd74178b83299eaf3cf06
origin badgedirectory badge
swh:1:dir:2c84a4fa67080b87e4954fa34921b700666b13e6
origin badgerevision badge
swh:1:rev:543b1af120732aa94738315eb75b8a4394caa951
origin badgesnapshot badge
swh:1:snp:3a2a144e060e76b48791aeb591bfbb26116f6bdd

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 543b1af120732aa94738315eb75b8a4394caa951 authored by timkrake on 24 November 2022, 08:36:43 UTC
Update README
Tip revision: 543b1af
replication_fig_10.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%% Constrained Dynamic Mode Decomposition %%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file replicates Fig. 10 (energy consumption dataset) of the 
% manuscript 'Constrained Dynamic Mode Decomposition'. It is based on an
% hourly multivariate time series that consists of three attributes:
% - energy consumption of San diego (in MWh)
% - dry bulb temperature (in Fahrenheit)
% - installed capacity of solar panels at customer sites (in kW)
% The time series mainly focus on San diego's energy consumption, however, 
% the other attributes are highly correlated.  

clear; close; clc;
addpath('../toolbox/', '../datasets/')


%% Input
DATA = IO_LoadData('energy_consumption');                       % load energy consumption dataset


%% Original DMD
DMDOrig = DMD_ConstrainedDMD(DATA);                     % compute original DMD (Algorithm 1, line 1-7)
DMDOrig = DMD_InfluenceComputation(DATA, DMDOrig);      % compute influence of DMD components (Eq. 20)
DMDOrig = VIS_Filtering(DMDOrig, 1e-3, 1e-2);           % use filtering technique


%% Constrained DMD - human-in-the-loop feedback
periods = [24; 12; 168; 84];
constrs = [exp(2*pi*1i./(periods)); conj(exp(2*pi*1i./(periods)))];
DMDCons = DMD_ConstrainedDMD(DATA, DMDOrig, constrs);   % compute constrained DMD (Algorithm 1, line 8-18)
DMDCons = DMD_InfluenceComputation(DATA, DMDCons);      % compute influence of DMD components (Eq. 20)
DMDCons = VIS_Filtering(DMDCons, 1e-3, 1e-2);           % use filtering technique


%% Replication of Fig. 10
MultiPlot(DATA, DMDOrig, DMDCons)

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API