emp14.gms : Test of EMP equilibrium model with vi func

Description

This model has one agent.
The agent solves   min_{t} obj
                   s.t.    t >= 0
In addition to this, z is perp to
  F(z,t) = 0

This was giving JAMS trouble since dL_dt is empty (i.e. zero).

Contributors: Steve Dirkse & Michael Ferris, February 2013


Small Model of Type : GAMS


Category : GAMS Test library


Main file : emp14.gms

$title Test of EMP equilibrium model with vi func (EMP14,SEQ=600)

$onText
This model has one agent.
The agent solves   min_{t} obj
                   s.t.    t >= 0
In addition to this, z is perp to
  F(z,t) = 0

This was giving JAMS trouble since dL_dt is empty (i.e. zero).

Contributors: Steve Dirkse & Michael Ferris, February 2013
$offText

variables obj, z;
positive variables t;

equations defF, defobj;

defobj.. obj =e= z;

defF..  z - sqr(t-1) =e= 0;

model empmod /all/;

file empinfo / 'empinfo.txt' /;
putclose empinfo 'equilibrium'
               / '  min obj t defobj'
               / 'vifunc defF z'
               / ;
file jamsopt / 'jams.op5' /;
putclose jamsopt 'EMPInfoFile empinfo.txt'
               / 'fileName mcpTmpScalar.gms'
               / 'dict dict.txt'
               /;
empmod.optfile = 5;

z.l = 2;
t.l = 5;
solve empmod using emp;

execute 'rm mcpTmpScalar*.* dict.txt empinfo.txt jams.op5';