Skip to content

terminating with uncaught exception of type std::out_of_range: vector #1

@noorulhaq

Description

@noorulhaq

Problem

[METADATA]

name This is a small test problem
vars 2

[VARIABLES]

0 x1 inf
0 x2 inf

[CONSTRAINTS]

4 2 < 20000
6 10 < 48000
0 1 < 3500

[OBJECTIVE]

maximize 3600 5400

Output

Number of regular constraints: 3
4 2 <= 20000
6 10 <= 48000
0 1 <= 3500

Number of non-negativity constraints: 2
1 0 non-negative
0 1 non-negative

Objective function:
max ( 3600 5400 ) * x

Generating problem in standard form ... done.
Generating artificial problem ... done.
Solving artificial problem ...
Optimal found at step 1.
Done.
Base is clear about artificial variables, proceed ...
Solving problem ...
libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: vector

Reason

Changing the variable value to any other value in second constraint resolves the issue:

from 6 10 < 48000 to 6 10.5 < 48000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions