%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% runminq8.m %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Matlab script for applying MINQ8
% - to a newly generated sparse problem (and store a .mat file),
% - to a problem from a .mat file, or
% - to one of the test functions from the CUTEr test set
%
clear; clear mex; clear all;
choice = 2; % = 0 generate new sparse problem
% = 1 load data from data file (old sparse problem)
% otherwise run a CUTEr function
if ~choice % generate new sparse problem
m = 6000; % number of rows of matrix A
n = 3000; % number of columns of matrix A
nn0 = 6; % number of nonzeros per row
rA=0;
while rA