gdxmrw_qp4.gms : Calling GAMS model from Matlab

Description

This program is mainly a placeholder for the files:
do_qp.m, qp.gms

Intended use: interactive Matlab session

Contributor: Steve Dirkse


Category : GAMS Data Utilities library


Main file : gdxmrw_qp4.gms   includes :  gdxmrw_qp4.gms  do_qp.m  qp.gms

$Title Calling GAMS model from Matlab 

$ontext

This program is mainly a placeholder for the files:
do_qp.m, qp.gms

Intended use: interactive Matlab session

Contributor: Steve Dirkse

$offtext

$log
$log Running Matlab program do_qp.m solves a Quadratic programming(QP) problem.
$log You can run the driver below interactively from Matlab:
$log   >> do_qp
$log

*call Matlab
$set WHICH which
$if not %system.filesys% == UNIX $set WHICH where
$call %WHICH% matlab
$ifThen errorLevel 1
$clearError
$abort.noerror 'Matlab is not available!';
$else
$call.Async matlab -r "cd %GAMS.cdir%;do_qp" -nosplash -nodisplay
$endIf