I have been trying to specify inequality constraints to minimise a multi objective function. The constraints are:

> 0

>0

my code is as follows

`function y = objectivef(x)y(1) = x(1).^2 - x(2);y(2) = -0.5*x(1) - x(2) - 1;end clcclear allObjectiveFunction = @objectivef;nvars = 2; % Number of variables`

LB = [-7 -7]; % Lower bound

UB = [4 4]; % Upper bound

ConstraintFunction = @myconstraints;[x,fval] = gamultiobj(ObjectiveFunction,nvars,[],[],[],[],LB,UB, ... ConstraintFunction)%this is what I need help with

function [c ceq] = myconstraints(x)c = [6.5 -x(1)/6 -x(2);7.5 -0.5*x(1) -x(2);30 - 5*x(1) - x(2)];ceq = []end

## Best Answer