Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FWPH does not warn that it can't linearize the objective #274

Open
Matthew-Signorotti opened this issue Sep 15, 2022 · 1 comment
Open

Comments

@Matthew-Signorotti
Copy link
Collaborator

On the latest development commit, I expect running

mpiexec \
    --mca orte_base_help_aggregate 0 \
    --mca mpi_warn_on_fork 0 \
    --np 2 \
    python -m mpi4py farmer_cylinders.py \
        --solver-name=glpk \
        --default-rho 1 \
        --num-scens 3 \
        --linearize-proximal-terms \
        --fwph

should result in some warning that FWPH cannot linearize the objective. FWPH._options_checks_fw can raise such warnings. Instead, optimization proceeds without warning and fails as the solver encounters the quadratic objective. The options created for the FWPH by the vanilla shared_options helper do not include the argument --linearize-proximal-terms which was passed.

@bknueven
Copy link
Collaborator

FWPH should have mip_solver_name and qp_solver_name as options, as opposed to just solvename like it has now.

Then you could use glpk/cbc with ipopt for FWPH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants