You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: feasible.m
    path of file: ./repos/YALMIP/extras/@optproblem
    
    the code of the file until where you have to start completion: function diagnostics = feasible(OptimizationProblem,Options)
%FEASIBLE  Computes feasible solution of in an optimization problem
%

    
function diagnostics = feasible(OptimizationProblem,Options)
%FEASIBLE  Computes feasible solution of in an optimization problem
%
%   DIAGNOSTICS = FEASIBLE(P,Options)
%
%   Example
%
%    The following code creates an optimization problem, and then finds a
%    feasible solution
%
%    x = sdpvar(1);P = optproblem(1 >= x >= 0, x^2);feasible(P)

if nargin < 2
    diagnostics = solvesdp(OptimizationProblem.Constraints,[],OptimizationProblem.Options);
else
    diagnostics = solvesdp(OptimizationProblem.Constraints,[],Options);
end