This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Matlab class for Optimization Services instance | |
classdef OSinstance < handle | |
properties | |
document | |
instanceHeader | |
instanceData | |
end | |
methods | |
function instance = OSinstance | |
% default constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function out = datenum2unixmillis(in) | |
% convert Matlab datenum to unix milliseconds | |
% Matlab datenums are assumed to be in local time zone, unix ms are in UTC | |
[year, month, day, hour, minute, second] = datevec(in); | |
% java.util.GregorianCalendar constructor uses zero-based months and | |
% rounds seconds down to an integer, so handle seconds separately | |
time1 = java.util.GregorianCalendar(year(1), month(1)-1, ... | |
day(1), hour(1), minute(1), 0); | |
ms1 = time1.getTimeInMillis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Build a Windows dll of Bonmin MINLP solver in MinGW | |
# (https://projects.coin-or.org/svn/Bonmin/trunk/) | |
# run this script from the top-level Bonmin directory | |
# stop on error | |
set -e | |
# first go through the configure of each subfolder and replace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <acado_toolkit.hpp> | |
#include <include/acado_gnuplot/gnuplot_window.hpp> | |
int main( ){ | |
// planet parameters | |
double RBody = 600000.0; // meters | |
double MuBody = 3.5316e12; // gravitational parameter, m^3/s^2 | |
double RotPeriod = 21600.0; // sidereal rotation period, seconds | |
double AtmSLPressure = 1.0; // sea-level pressure, atm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private oListener as Object | |
Private CellRng as Object | |
Sub AddListener | |
Dim Doc, Sheet as Object | |
Doc = ThisComponent | |
Sheet = Doc.Sheets(0) | |
CellRng = Sheet.getCellRangeByName("C1:C6") |