Description
This model shows how to model an equilbrium consisting of two VIs one of which has a non-trivial constraint set. Contributor: Michael C. Ferris, September 2012
Small Model of Type : VI
Category : GAMS EMP library
Main file : simplevi4.gms
$title Another simple VI example (SIMPLEVI4,SEQ=62)
$onText
This model shows how to model an equilbrium consisting of two VIs
one of which has a non-trivial constraint set.
Contributor: Michael C. Ferris, September 2012
$offText
set I / 1 * 2 /;
$macro FUN(I) ord(I)*(x(I) - 1) + 1.5
positive variables x(I);
variables y;
equations f(I), g, h;
f(I).. FUN(I) =N= 0;
g.. sum {I, x(I)} =G= 1;
h.. x('1') - y =e= 2;
model vi / f, g, h /;
file myinfo / '%emp.info%' /;
put myinfo 'equilibrium' /;
put 'vi f x g'/;
put 'vi h y'/;
putclose;
solve vi using emp;