gdxmrw_qp3.gms : QP solver M-file using GAMS and GDXMRW

Description

In this example we implement a QP solver using a Matlab M-file, GAMS,
and GDXMRW.  The call is very similar to the QP routines
from Mathworks and the QP vendors.

Intended use: interactive Matlab session

Contributor: Jagdish


Category : GAMS Data Utilities library


Main file : gdxmrw_qp3.gms   includes :  gdxmrw_qp3.gms  qp_model.gms  gamsqp.m  gamsqp_driver.m

$Title QP solver M-file using GAMS and GDXMRW

$ontext
In this example we implement a QP solver using a Matlab M-file, GAMS,
and GDXMRW.  The call is very similar to the QP routines
from Mathworks and the QP vendors.

Intended use: interactive Matlab session

Contributor: Jagdish


This file is mainly a placeholder. You should use this example from
Matlab. Files included with this example include:
  gdxmrw_qp3.gms: this file
  gamsqp.m: the M-file to call to solve a QP
  qp_model.gms: the GAMS implementation used by gamsqp.m
  gamsqp_driver.m: example driver for gamsqp.m

$offtext

*Run gamsqp_driver.m
$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%;gamsqp_driver" -nosplash -nodisplay
$endIf