Matlab/Octave scripts for generating coherence and avoiding sure loss constraints for lower previsions and for calculating downward corrections of incoherent lower previsions
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
asl_constraints_bensolve.m
asl_constraints_cddmex.m
asl_constraints_vertrays.m
asl_free_constraints.m
asl_free_constraints_file.m
asl_vertrays_file.m
coh_constraints_bensolve.m
coh_constraints_cddmex.m
coh_constraints_cddmex_test.m
coh_constraints_chain_test.m
coh_constraints_cmp_test.m
coh_constraints_vertrays.m
coh_constraints_vertrays_test.m
coh_free_constraints.m
coh_free_constraints_file.m
cohcorr_bensolve.m
cohcorr_pointwise.m
cohcorr_test.m
get_maximal_rows.m
ideal_glpk.m
natex_bensolve.m
natex_direct.m
natex_lenv.m
randlprs_asl.m
randlprs_asl_bnd.m
randlprs_bnd.m
randomK.m

README.md

mcohconstraints

Matlab/Octave functions for generating coherence and avoiding sure loss constraints for lower previsions and for calculating downward corrections of incoherent lower previsions

Code

Usage The functions are documented in the m-files, and this documentation can be accessed from the Matlab/Octave console with help <function_name>.

They have been tested with Octave 3.4.3 and a little bit with Matlab R2012a (i.e., 7.14.0.739) on 64bit Linux.

Licensing CC BY-SA 3.0, see https://creativecommons.org/licenses/by-sa/3.0/

External code

Some functions call some non-standard supporting functions, i.e., you need cddmex and/or bensolve:

Also, some functions use Octave's GLPK interface for linear programming. These are not compatible with Matlab, but should be easy to convert to linprog if needed. Another option would be to use glpkmex (http://glpkmex.sourceforge.net/).

Notes about cddmex and bensolve:

  • cddmex comes with precompiled mexfiles linked to cddlib; when using it on a recent linux distribution, my advice is to install cddlib using your package manager and then compile the included c-file into a mexfile yourself. For me, it sufficed to type the following on the Matlab/Octave command prompt: mex -v cddmex.c -lcdd

  • bensolve's code contains Matlabisms that Octave chokes on; to get it running in Octave sufficiently for mcohconstraints, just replace all occurences of display( by disp( in bensolve.m.

References & citing

This code has been used for my research. This research has been presented at a conference:

Quaeghebeur, Erik. 2010. “Characterizing coherence, correcting incoherence” Accepted for ISIPTA '13.

Please cite this paper if you use any material in this repository.