Get Problem

Get the model of a specific problem.

Args: request (ProblemGetRequest): the request containing the problem's id problem_id. user (Annotated[User, Depends): the current user. session (Annotated[Session, Depends): the database session.

Raises: HTTPException: could not find a problem with the given id.

Returns: ProblemInfo: detailed information on the requested problem.

post/problem/get

Request body

problem_idinteger required

Response

Successful Response

namestring required
descriptionstring required
is_convexboolean nullable required
is_linearboolean nullable required
is_twice_differentiableboolean nullable required
scenario_keysstring[] nullable required
variable_domain'continuous' | 'binary' | 'integer' | 'mixed' required

An enumerator for the possible variable type domains of a problem.

idinteger required
user_idinteger required

Changes