Skip to content

How to construct constraints code? #3

Description

@ericzzj1989

Great work!

I am looking at the code here

constraint_indices = b.shape[0] + jnp.tile(jnp.arange(0, n-1)[:, None], (1, 3)).reshape(-1,)

I am wondering if you could provide some clarification on how the constraints in the QAP are constructed. Specifically, could you explain the logic or steps involved in defining the constraints at that point in the code?

Thanks!

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