[petsc-users] TaoSetVariableBounds in petsc4py
Matthew Knepley
knepley at gmail.com
Thu Sep 17 15:59:06 CDT 2015
On Thu, Sep 17, 2015 at 3:55 PM, Justin Chang <jychang48 at gmail.com> wrote:
> Hi all,
>
> I am attempting to use TaoSetVariableBounds via petsc4py. Is there a way
> to set only lower bounds or upper bounds and not both? In PETSc I could
> replace one of the Vecs with NULL, but how would I do that with
> tao.setVariableBounds(...)?
>
> It seems right now I can only do tao.setVariableBounds(lb_vec,ub_vec), and
> from inspection of the python source code, it seems I have to specify both?
>
Can you jsut give None?
Matt
> Thanks,
> Justin
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150917/30426051/attachment.html>
More information about the petsc-users
mailing list